Skip to content

Instantly share code, notes, and snippets.

View rwaldron's full-sized avatar

Rick Waldron rwaldron

  • Boston, MA
View GitHub Profile
@rwaldron
rwaldron / Setting up Google Cloud Storage with CORS for Web Fonts.md
Created January 16, 2018 21:47 — forked from mhulse/Setting up Google Cloud Storage with CORS for Web Fonts.md
Setting up CORS on Google Cloud Storage: An unofficial quick start guide to serving web fonts from Google's cloud. (I'm sure a lot of this info could be improved... Please leave comments if you have tips/improvements.)

Login:

Google Cloud Storage

You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)

When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.

Once verified, you'll have to agree to the terms of service; do that, and click continue.

@rwaldron
rwaldron / v8.md
Created May 31, 2017 20:25 — forked from kevincennis/v8.md
V8 Installation and d8 shell usage

Installing V8 on a Mac

Prerequisites

  • Install Xcode (Avaliable on the Mac App Store)
  • Install Xcode Command Line Tools (Preferences > Downloads)
  • Install depot_tools
    • git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    • sudo nano ~/.bash_profile
    • Add export PATH=/path/to/depot_tools:"$PATH" (it's important that depot_tools comes first here)
/play
/*.png
/*.bmp
/solitaire
@rwaldron
rwaldron / _t2-swd.md
Created July 12, 2016 19:41 — forked from kevinmehall/_t2-swd.md
Tessel 2 onboard SWD

Needs a more recent openocd than is currently available in openwrt/packages:

opkg update
wget https://kevinmehall.net/tmp/openocd_d3c2679bcb8e8ba25e7b6e443b39f57474afc099-2_ramips_24kec.ipk -O /tmp/openocd.ipk
opkg install /tmp/openocd.ipk
rm /tmp/openocd.ipk

In another terminal:

@rwaldron
rwaldron / binding.gyp
Created February 10, 2016 17:04 — forked from bellbind/binding.gyp
[nodejs]Native module with libuv and v8::Promise on node-4
# -*- mode: python -*-
{
"targets": [
{
"include_dirs": ["<!(node -e \"require('nan')\")"],
"target_name": "TimerAndPromise",
"sources": [
"timer-and-promise.cc"
],
"conditions": [
@rwaldron
rwaldron / Vagrantfile
Last active August 29, 2015 14:20 — forked from tcr/Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.username = "root"
config.ssh.password = "tessel2"
config.ssh.shell = "ash"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.box = "technicalmachine/tessel2"

Building an ultrasonic sensor backpack

Note: This is a bit of a scratch to see what's involved in getting the ping sensor to work as an I2C backpack.

Acknowledgements

Dependencies.

Compiling v8 and Hello, World Example on Mac OSX Mavericks (10.9.4)

by Keith Rosenberg (netpoetica)

Note: do this in some sort of project/ directory that makes sense. depot_tools are going to need to be in your path, so you may want to install them somewhere you are comfortable with.

1) Get the v8 source

git clone https://github.com/v8/v8.git

2) Install depot tools

@rwaldron
rwaldron / index.js
Last active August 29, 2015 14:17 — forked from jlord/index.js
var menubar = require('menubar')
var exec = require('child_process').exec
var fs = require('fs')
var mb = menubar()
mb.on('ready', function ready () {
console.log('Ready!')
fetchTimes()
})
@rwaldron
rwaldron / bbb.yml
Last active August 29, 2015 14:17 — forked from boneskull/bbb.yml
# To setup ansible on Mac:
# brew install ansible
# mkdir -p /usr/local/etc/ansible
# mkdir -p /usr/local/share/ansible
#
# To run:
# ansible-playbook /usr/local/share/ansible/bbb.yml -i /usr/local/etc/ansible/hosts
#
# TODO: multiple wifi network support
# TODO: automate restart of internet connection sharing between reboots