Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
You also might wanna just use Whisky which does this automatically
This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!
In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.
This document outlines how to model a common organization-based permission system in Hasura. Let's assume that you have some table structure like the following:
| Table Name | Columns | Foreign Keys |
|---|---|---|
| User | id, name, email | |
| Organization User | id, user_id, organization_id | user_id -> user.id, organization_id -> organization.id |
| Organization | id, name |
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: postgresql | |
| stringData: | |
| db-user: postgres | |
| db-password: postgres | |
| --- | |
| apiVersion: v1 | |
| kind: ConfigMap |
| const https = require("https") | |
| const fetch = require("isomorphic-fetch") | |
| const Account = require("./models/account") | |
| const authenticated = require("./lib/auth") | |
| exports.handler = authenticated(async (event, context) => { | |
| const { id: shopId, shopifyToken } = context.account | |
| try { | |
| const resp = await fetch(`https://${shopId}/admin/api/2019-07/graphql.json`, { |
| title | subtitle | author | date | source |
|---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
| # Insomnia Configuration | |
| ## Run the test query | |
| { | |
| shop { | |
| id | |
| name | |
| } | |
| } | |
| # Query Structure Examples |
| require('dotenv').config() | |
| const cors = require('cors') | |
| const bodyParser = require('body-parser') | |
| const express = require('express') | |
| const expressJwt = require('express-jwt') | |
| const cookieSession = require('cookie-session') | |
| const jwt = require('jsonwebtoken') | |
| const passport = require('passport') | |
| const GoogleStrategy = require('passport-google-oauth20').Strategy | |
| const jwtSecret = Buffer.from('Zn8Q5tyZ/G1MHltc4F/gTkVJMlrbKiZt', 'base64') |
pip3 install awscli boto3(this step will fail but will install all deps exclude pyyaml for us)pip3 install pyyaml==4.2b4pip3 install --no-deps awscli boto3
See yaml/pyyaml#193 for what's happening with pyyaml
Project moved due to excessive amount of unicorns. Repo https://git.io/adminpldt
Our community of amazing people. Managed by a cat. Backspace https://discord.gg/C43625u
Gist here will not be updated anymore Discussion here on Gist is still allowed but I strongly recommend going over to the repository or Discord chat