Skip to content

Instantly share code, notes, and snippets.

View dayvough's full-sized avatar
🚀
Loading...

David Marquez dayvough

🚀
Loading...
View GitHub Profile

How to install game-porting-toolkit (aka proton for macOS)

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!

What is this?

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.

@GavinRay97
GavinRay97 / index.md
Last active April 12, 2024 18:31
Hasura organization permissions

Introduction

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
@richteri
richteri / n8n-kubernetes-manifest.yaml
Last active February 8, 2021 17:03
N8n on Kubernetes
apiVersion: v1
kind: Secret
metadata:
name: postgresql
stringData:
db-user: postgres
db-password: postgres
---
apiVersion: v1
kind: ConfigMap
@phawk
phawk / graphql.js
Created August 23, 2019 17:01
Lambda Shopify graphql proxy endpoint
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`, {
@jonlabelle
jonlabelle / docker_compose_cheatsheet.md
Last active May 31, 2024 13:30
Docker Compose Cheatsheet
# 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')
@number5
number5 / awscli-pyyaml-fix.md
Last active June 7, 2019 21:12
Temporary workaround to install awscli/boto3 with Homebrew Python 3.7 (before PyYAML fix their python3.7 releases)
  1. pip3 install awscli boto3 (this step will fail but will install all deps exclude pyyaml for us)
  2. pip3 install pyyaml==4.2b4
  3. pip3 install --no-deps awscli boto3

See yaml/pyyaml#193 for what's happening with pyyaml

@kleo
kleo / backspace.md
Last active July 28, 2023 17:59
backspace

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


FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?