Skip to content

Instantly share code, notes, and snippets.

@reddit
reddit / install-reddit.sh
Created December 13, 2010 01:10
reddit installation script draft
#!/bin/bash -e
# Neil Williams, reddit
REDDITUSER=reddit
REDDITHOME=/home/reddit
GITREPO=git://github.com/reddit/reddit.git
APTITUDE_OPTIONS="-y" # limit bandwidth: -o Acquire::http::Dl-Limit=100"
# make sure we're running as root
@stevetranby
stevetranby / README.md
Last active September 20, 2021 03:55
Converting the laser beam example on ShaderToy to cocos2d-x shaders.

Laser beam example from Shader Toy https://www.shadertoy.com/view/XtBXW3

Usage: laserbeam.cpp - put this code inside the init method of a new project within HelloWorld.cpp. laserbeam.vert - put this in PROJECT_ROOT/Resources/res/ laserbeam.frag - put this in PROJECT_ROOT/Resources/res/

@jotto
jotto / find-defi-assets-and-exchanges.js
Last active January 31, 2022 08:36
prints TSV of defi assets and exchange they're on
// prerequisites: node.js installed on your computer
// step 1: make a directory on your computer called "defi-assets-and-their-exchanges"
// step 2: copy and paste this file into that directory, call it "index.js"
// step 3: npm install --save got
// step 4: paste your messari API key into the empty string below
// step 5: node index.js
const YOUR_PERSONAL_MESSARI_API_KEY = "";
const got = require("got");