Skip to content

Instantly share code, notes, and snippets.

View caseyWebb's full-sized avatar

Casey Webb caseyWebb

View GitHub Profile
@caseyWebb
caseyWebb / 0.create_vm.sh
Last active July 9, 2021 18:28
Headless Windows Setup (WSL + OpenSSH)
#!/bin/bash
# Run this on the VM host
DOWNLOAD_URL=<download url> # Go to https://developer.microsoft.com/en-us/windows/downloads/virtual-machines to get the latest download url
VMNAME=UniversitySite
CPUS=6
RAM=10240
# Download VM from Microsoft
@mweststrate
mweststrate / mobx.js
Created June 15, 2016 19:20
Local component state with MobX
import {observable} from "mobx"
import {observer} from "mobx-react"
@observer class Select extends React.Component {
@observable selection = null; /* MobX managed instance state */
constructor(props, context) {
super(props, context)
this.selection = props.values[0]
}
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active December 29, 2024 07:04
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@bryanhunter
bryanhunter / MonokaiSW.md
Last active October 15, 2021 08:12
Mapping colors of the Monokai color scheme to their nearest Sherwin-Williams paint color
@joaoneto
joaoneto / login.test.js
Created March 13, 2013 13:49
Login session test with mocha
var request = require('supertest'),
should = require('should'),
app = require('../server');
var Cookies;
describe('Functional Test <Sessions>:', function () {
it('should create user session for valid user', function (done) {
request(app)
.post('/v1/sessions')
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active August 14, 2025 05:30
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname