Skip to content

Instantly share code, notes, and snippets.

@agreen757
agreen757 / zacb.svg
Last active October 10, 2018 18:17
zacb svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agreen757
agreen757 / arcadefire.svg
Last active October 10, 2018 18:02
arcadefire svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agreen757
agreen757 / lindsey.svg
Last active October 10, 2018 17:55
lindsey stirling svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agreen757
agreen757 / massappeal.svg
Last active October 10, 2018 16:52
mass appeal svg file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agreen757
agreen757 / setup.sh
Last active July 9, 2016 17:10
setup node server
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo apt-get install -y curl
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
sudo apt-get install -y emacs23
@agreen757
agreen757 / spinspin.js
Created May 10, 2016 16:05
little command line spinner for Node
var spinner = {
count: 0,
init: function () {
this.count += 1;
switch (this.count) {
case 1:
return '|\r';
case 2:
@agreen757
agreen757 / README.md
Last active January 27, 2016 14:00
Using the YT contentID API to update ownership on assets - this is convenient for mass claiming

node findEmbed.js {filename.csv}

@agreen757
agreen757 / ffmpeg.sh
Created January 12, 2016 22:22
FFMPEG latest version install on ubuntu
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@agreen757
agreen757 / err.txt
Created October 8, 2015 18:27
Famo.us Framework error
CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
@agreen757
agreen757 / deploy.sh
Created June 7, 2015 23:19
Deploy with shipit - still building on this with some default values
#!/bin/bash
clear
echo
echo
echo "What files you wanna commit?:"
read files
echo "Whats your commit message?"
read message
echo "Remote? [origin]:"