Skip to content

Instantly share code, notes, and snippets.

View devotox's full-sized avatar
💻
Innovating

Devonte devotox

💻
Innovating
View GitHub Profile
@devotox
devotox / osx_bootstrap.sh
Last active June 2, 2020 19:58 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# Notes:
@devotox
devotox / adapters.application.js
Created July 13, 2016 07:55 — forked from pangratz/adapters.application.js
findRecord with slug support
import Adapter from "ember-data/adapters/json-api";
export default Adapter.extend({
urlForQueryRecord({ slug }, modelName) {
if (slug) {
return this.urlForFindRecord(slug, modelName);
}
return this._super(...arguments);
@devotox
devotox / build_nginx.sh
Last active January 31, 2016 22:48 — forked from MattWilcox/build_nginx.sh
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.38
export VERSION_OPENSSL=openssl-1.0.2f
export VERSION_NGINX=nginx-1.9.10
# URLs to the source directories
export SOURCE_OPENSSL=https://www.openssl.org/source/
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
@devotox
devotox / gist:7ff1638c166f4f1f7c18
Last active August 29, 2015 14:26 — forked from dsibilly/gist:2992412
Node.js clustered HTTP server example
(function () {
'use strict';
var cluster = require('cluster'),
http = require('http'),
os = require('os'),
/*
* ClusterServer object
@devotox
devotox / config.fish
Last active August 29, 2015 14:04 — forked from jimmed/config.fish
# Aliases to common git methods
function gs; git status --short $argv; end;
function gd; git diff --color $argv; end;
function gf; git fetch -p; end;
function gpl; git pull $argv; end;
function gps; git push $argv; end;
function gch; git checkout $argv; end;
function gb; git branch $argv; end;
function ga; git add $argv; end;
function gco; git commit -m $argv; end;