Skip to content

Instantly share code, notes, and snippets.

View gillchristian's full-sized avatar
🦀
i use rust btw

Christian Gill gillchristian

🦀
i use rust btw
View GitHub Profile
@gillchristian
gillchristian / jq-cheetsheet.md
Last active February 14, 2022 22:30 — forked from olih/jq-cheetsheet.md
jq Chaet Sheet [cheat-sheet]

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@gillchristian
gillchristian / combinators.js
Last active March 15, 2020 20:52 — forked from Avaq/combinators.js
Common combinators in JavaScript [fp]
const I = x => x;
const K = x => y => x;
const A = f => x => f(x);
const T = x => f => f(x);
const W = f => x => f(x)(x);
const C = f => y => x => f(x)(y);
const B = f => g => x => f(g(x));
const S = f => g => x => f(x)(g(x));
const P = f => g => x => y => f(g(x))(g(y));
const Y = f => (g => g(g))(g => f(x => g(g)(x)));
@gillchristian
gillchristian / install_steam_and_aoe
Last active March 15, 2020 20:47 — forked from vespakoen/install_steam
install steam & age of empires 2 HD on ubuntu 14.04 [linux, tool]
# install wine 1.8
add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.8
# download steam
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe
# install some tricks
winetricks vcrun2010
@gillchristian
gillchristian / nginx-balancer-caching.js
Last active March 15, 2020 20:37 — forked from learncodeacademy/gist:ebba574fc3f438c851ae
Nginx Node Frontend / Load Balancer / Static Assets Caching [devops, example]
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {