Skip to content

Instantly share code, notes, and snippets.

@vinceallenvince
vinceallenvince / README.md
Last active April 8, 2017 08:55
Setup a Siteleaf site with a corresponding Gmail account on DigitalOcean

Setup Siteleaf site and Gmail on DigitalOcean

I recently setup a Siteleaf site and corresponding Gmail account via DigitalOcean. It occured to me these steps may be useful to people looking to do the same.

If you've already created your Droplet, installed vsftpd and apache, skip to step 4.

DO - do this step on Digital Ocean
SL - do this step on Siteleaf
GA - do this step on Google Apps for Business
REG - do this at your domain's registrar

@vinceallenvince
vinceallenvince / README.md
Last active July 2, 2024 15:12
CI with Travis, github Releases API, gh-pages and npm publish

CI with Travis, GitHub Releases API and gh-pages

When hosting a project on GitHub, it's likely you'll want to use GitHub Pages to host a public web site with examples, instructions, etc. If you're not using a continuous integration service like Travis, keeping your gh-pages site up to date requires continuous wrangling.

The steps below outline how to use Travis CI with GitHub Releases and GitHub Pages to create a "1-button" deployment workflow. After testing and running a release build, Travis will upload your release assets to GitHub. It will also push a new version of your public facing site to GitHub Pages.

Organize your project

Let's assume you are hosting a JavaScript project that will offer a single JavaScript file as a release asset. It's likely you'll organize your files like this.

// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/
@vinceallenvince
vinceallenvince / gist:c89cdcd5c203bb18b4bc
Last active August 29, 2015 14:07
RPi setup for 30sec RadioPi hack
RadioPi Hack
1. Connect Pi to Wifi and update.
sudo apt-get update
sudo apt-get upgrade
2. Install NodeJS (v0.10.28); make sure to install node-gyp.
http://raspberryalphaomega.org.uk/2014/06/11/installing-and-using-node-js-on-raspberry-pi/
http://raspberrypi.stackexchange.com/questions/11958/running-npm-install-throws-permission-error
@vinceallenvince
vinceallenvince / README.md
Last active February 28, 2021 01:21
Set up an SD Card for Raspberry Pi Audio projects

#Set up an RPi Audio project

Use the following instructions to prepare your RPi's SD Card for an audio project.

###Install an operating system. You first need to install an operating system on your RPi. Raspian should work fine. If you're using a monitor, keyboard and mouse, using an install manager is the easiest way. Just follow the instuctions for installing NOOBS.

If you are developing headless, follow the instructions for downloading and installing Raspian. You'll also need to login via ssh or a console cable. If you're on Yosemite on a Mac, [this post](http://zittlau.ca/fix-usb-serial-console-on-raspberry-

@vinceallenvince
vinceallenvince / gist:25f5b118b91f56379553
Created October 22, 2014 17:40
Default RPi /etc/network/interfaces settings
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
@vinceallenvince
vinceallenvince / gist:ea1648546e6046870824
Last active December 17, 2015 20:14
RPi /etc/network/interfaces settings w source file
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
source /boot/network.txt
@vinceallenvince
vinceallenvince / gist:1773f045d583df717416
Last active December 17, 2015 19:50
RPi network config file
# You can use this file to manually set up your network configuration.
#
# This file is included into /etc/network/interfaces, so anything that
# works by editing that file is also possible here.
### WIFI CONFIGURATION ######################################################
# The three segments below should cover you in most cases if you run
# a wifi network that uses either WPA/WPA2 or WEP encryption.
#
# Just uncomment the lines prefixed with a single # of the configuration
@vinceallenvince
vinceallenvince / gist:e0a5e74082615b3cbbc9
Created January 6, 2016 12:07
one wifi point /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
sudo pip install requests
sudo pip install pycrypto
sudo pip install pubnub>=3.7.5