Skip to content

Instantly share code, notes, and snippets.

# Misc
defaults write .GlobalPreferences com.apple.mouse.scaling -1
@Nigh7Sh4de
Nigh7Sh4de / .alias
Last active May 16, 2023 20:03
.alias
# Python
alias python=python3
alias pip=pip3
# Yarn
alias ynuke='yarn cache clean && rm -rf node_modules .next && yarn'
# Git
# Checkout
g() {
const Koa = require('koa')
const Router = require('koa-router')
const BodyParser = require('koa-bodyparser')
const app = new Koa()
const router = new Router()
const fs = require('fs')
app.use(BodyParser())
router.post('/log', ctx => {
@Nigh7Sh4de
Nigh7Sh4de / sfcacheserv.js
Created October 15, 2018 03:03
A cache server for SF
const Koa = require('koa')
const Crypto = require('crypto')
const axios = require('axios')
const app = new Koa()
const _cache = {}
function cache(query, data) {
const hash = Crypto.createHash('sha256')
hash.update(JSON.stringify(query))
@Nigh7Sh4de
Nigh7Sh4de / gist:bb85ca244d21ed5e5441
Last active September 29, 2017 20:44
Typescript d.ts for PlayCanvas engine
declare module pc {
export module fw {
export class Application {
constructor(canvas: HTMLElement, options: any);
start: () => void;
setCanvasFillMode: (mode: any) => void;
setCanvasResolution: (mode: any) => void;
on: (event: string, any) => void;
@Nigh7Sh4de
Nigh7Sh4de / MYWqvm.markdown
Created November 16, 2014 04:49
A Pen by Nigh7Sh4de.