Skip to content

Instantly share code, notes, and snippets.

View chadfurman's full-sized avatar

Chad Furman chadfurman

View GitHub Profile
@chadfurman
chadfurman / install-janus.sh
Last active June 28, 2018 14:52
install janus
#/bin/bash
# Become root first
[ "$(whoami)" != "root" ] && exec sudo -- "$0" "$@"
# install most dependencies
apt-get update
apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev pkg-config gengetopt libtool automake cmake libgupnp-igd-1.0-dev
cwd = $(pwd)
@chadfurman
chadfurman / controller.js
Created April 17, 2016 21:35
MVC Mithril
import data from "./data";
import jobModel from "../models/job"
var controller = function() {
this.jobs = new Array();
this.selectedCompanies = new Array();
this.selectedCategories = new Array();
this.selectedLevels = new Array();
this.selectedLocations = new Array();
this.page = m.prop(1);
root 856 0.0 0.0 0 0 ? S< 09:10 0:00 \_ [iprt-VBoxWQueue]
root 865 0.0 0.0 0 0 ? S 09:10 0:00 \_ [iprt-VBoxTscThr]
lotus 28911 0.0 0.0 12728 2104 pts/1 S+ 09:24 0:00 | \_ grep --color=auto -i vbox
lotus 28858 0.5 0.1 116116 10996 ? S 09:24 0:00 /usr/lib/virtualbox/VBoxXPCOMIPCD
lotus 28863 2.0 0.2 653724 20176 ? Sl 09:24 0:00 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
@chadfurman
chadfurman / AcerChromebook11_CB3-111.md
Last active May 2, 2017 14:16
Coffee-Shop Development for Under $500

Coffee-Shop Development for Under $500

Do you have a great desktop, but don't want to shell out premium dollars for a MacBook Pro, only to have security concerns around your beautiful laptop getting stolen? If you feel great when you accomplish something complex, and you want a super-inexpensive backup computer that gives you both freedom and power to develop from your favorite cafe, read on!

In the early days, web development meant local file changes which were sent to the server via FTP. Shelling into the remote server directly was rarely ideal – but technology has come a long way. Chromebooks, starting around $170, have up to 13 hours of battery life and weigh just about 2 lbs. The operating system is designed to run a web browser and nothing else: even your file storage is in the cloud. Enter Cloud9.

Cloud9's web-based IDE is strikingly powerful, feature-rich, and performant on a Chromebook 11. C9 has Goto Anything, rather comprehensive Vim support, and many other power-user accessories. While t

@chadfurman
chadfurman / keybase.md
Created October 22, 2015 16:22
keybase.md

Keybase proof

I hereby claim:

  • I am chadfurman on github.
  • I am chadfurman (https://keybase.io/chadfurman) on keybase.
  • I have a public key whose fingerprint is C456 2527 842E E748 0093 AD63 0D84 09CE 2974 6971

To claim this, I am signing this object:

function sortByPath(arr, path) {
var index, values, returnArr;
console.log(arguments);
var argsList = Array.prototype.slice.call(arguments,2);
var possibleFunc = argsList.splice(-1,1)[0];
console.log('possibleFunc', possibleFunc);
console.log('argsList', argsList);
var compare = function (a,b) {
if (a < b) {
return -1;
### Keybase proof
I hereby claim:
* I am shadelotus on github.
* I am chadfurman (https://keybase.io/chadfurman) on keybase.
* I have a public key whose fingerprint is C456 2527 842E E748 0093 AD63 0D84 09CE 2974 6971
To claim this, I am signing this object:
<access uri="http://localhostpc.com:1337"/>
<allow-navigation href="http://localhostpc.com:1337/*"/>
......
<meta http-equiv="Content-Security-Policy" content="default-src 'self' localhostpc.com:1337">
#!/bin/sh
echo '.' >> /home/lotus/crontest
DISPLAY=:0.0 feh --randomize --bg-fill /home/lotus/Pictures/Wallpapers/
class TextMessage extends Message
# Represents an incoming message from the chat.
#
# user - A User instance that sent the message.
# text - A String message.
# id - A String of the message ID.
constructor: (@user, @text, @id) ->
super @user