Skip to content

Instantly share code, notes, and snippets.

View sneurlax's full-sized avatar
💭
Coding

sneurlax sneurlax

💭
Coding
View GitHub Profile
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 23, 2024 11:47
set -e, -u, -o, -x pipefail explanation
@longbill
longbill / socks5.js
Last active March 28, 2024 03:37
Socks5 proxy server in pure javascript
const net = require('net')
net.createServer(client => {
client.once('data', data => {
client.write(Buffer.from([5, 0]));
client.once('data', data => {
data = [...data];
let ver = data.shift();
let cmd = data.shift(); //1: connect, 2: bind, 3: udp
let rsv = data.shift();
@jonahlyn
jonahlyn / gist:3cf4c4428a9abe641d2d
Created December 28, 2014 00:35
Read in activity data from Jawbone UP api in R (gist)
###########################################################################
# Read in activity data from Jawbone UP api in R
# 1. Setup an application at: https://jawbone.com/up/developer/
# 2. Set the OAuth redirect URLs: http://localhost:1410, http://localhost:1410/
# 3. Be sure to set your key and secret in R:
# Sys.setenv(JAWBONE_API_KEY = "Your Client Id",
# JAWBONE_CONSUMER_SECRET = "Your App Secret")
# 4. Install httr package: install.packages("httr")
###########################################################################
library("httr")