This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# subset of functions.sh from https://github.com/drewlustro/dotfiles | |
# put in your .bash_profile or .zshrc | |
function toolbelt-raspi-image-dump() { | |
local now=$(date +"%Y-%m-%d__%H-%M-%S"); | |
local host=${2:="raspi"}; | |
local diskNumber=${1:--1} | |
local bs="1M" | |
local cmd="sudo dd if=/dev/rdisk$1 bs=$bs | gzip > ~/Desktop/$host-$now.pi.gz" | |
local usage="Usage: $0 [sdCardDiskN] [hostname='raspi']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase | |
for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sources | |
# http://www.scipy.org/install.html | |
# http://sohliloquies.blogspot.ru/2015/07/setting-up-deep-dream-google-researchs.html | |
# https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM | |
# ~2gb dependencies | |
mkdir deep-dream && cd deep-dream | |
sudo apt-get install -y subversion cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
Brace = {}; | |
define('brace/brace', ['THREE', 'brace/base', 'brace/publisher', 'brace/chapter', 'brace/app', 'brace/object', 'brace/settings'], | |
function (THREE, Base, Publisher, Chapter, App, SceneObject, Settings) { | |
Base(Brace); | |
Publisher(Brace); | |
SceneObject(Brace); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// brace/brace.js | |
(function(Brace) { | |
define('brace/base', | |
['THREE'], | |
function (THREE) { | |
Base = function() { | |
Object.call(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2013-12-19 using generator-webapp 0.4.6 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Oxford102CaffeNet" | |
input: "data" | |
input_dim: 10 | |
input_dim: 3 | |
input_dim: 227 | |
input_dim: 227 | |
force_backward: true | |
layers { | |
name: "conv1" | |
type: CONVOLUTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drew@ubuntu:~$ cd Desktop/ | |
drew@ubuntu:~/Desktop$ ls | |
vmware-tools-distrib | |
drew@ubuntu:~/Desktop$ cd vmware-tools-distrib/ | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ ls | |
bin doc etc FILES INSTALL installer lib vmware-install.pl | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ clear | |
[3;J | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ sudo ./vmware-install.pl | |
[sudo] password for drew: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
root /sites/SOME-SITE-ROOT-DIRECTORY/staging0; | |
index index.html index.htm; | |
server_name staging0.jessechorng.com; | |
location / { | |
try_files $uri $uri/ /index.html /index.htm; |