Skip to content

Instantly share code, notes, and snippets.

@wesleyhales
wesleyhales / github-oauth.sh
Created March 30, 2013 00:05
generate oauth token for github access
curl -X POST -u <your_github_username> -H "Content-Type: application/json" -d "{\"scopes\":[\"public_repo\"],\"note\":\"token for pushing from travis\"}" https://api.github.com/authorizations
@wesleyhales
wesleyhales / gh-pages-report.sh
Created March 30, 2013 00:02
bash script for running loadreport.js against a gh-pages build
export REPO="$(pwd | sed s,^/home/travis/build/,,g)"
echo -e "Current Repo:$REPO --- Travis Branch:$TRAVIS_BRANCH"
#Set git user
git config --global user.email "[email protected]"
git config --global user.name "Travis"
#Set upstream remote
git remote add upstream https://${GH_TOKEN}@github.com/wesleyhales/wesleyhales.com.git > /dev/null
@wesleyhales
wesleyhales / post_build.sh
Created March 30, 2013 00:01
bash script for taking a static awestruct build and pushing it to a repo
export REPO="$(pwd | sed s,^/home/travis/build/,,g)"
echo -e "Current Repo:$REPO --- Travis Branch:$TRAVIS_BRANCH"
#Set git user
git config --global user.email "[email protected]"
git config --global user.name "Travis"
#Set upstream remote
git remote add upstream https://${GH_TOKEN}@github.com/wesleyhales/wesleyhales.com.git > /dev/null
git remote add live https://${GH_TOKEN}@github.com/wesleyhales/wesleyhales.github.com > /dev/null
@wesleyhales
wesleyhales / .travis.yml
Created March 29, 2013 23:58
travis config for awestruct build
before_install:
- gem install bundler
language: ruby
rvm:
- 1.9.3
before_script:
- "rake"
- bash build/post_build.sh
env:
// Last commit: 7575f5a (2013-03-05 03:49:07 -0800)
(function() {
window.DS = Ember.Namespace.create({
// this one goes past 11
CURRENT_API_REVISION: 12
});
})();
<section class="slide-group">
<section class="slide" data-option="master">
<h3 class="send">What is your favorite color?</h3>
</section>
<section class="slide" data-option="Blue">
<div class="send">
Blue is the one of the three additive primary colours..
</div>
@wesleyhales
wesleyhales / skia.debugger.steps
Created February 18, 2013 20:25
Notes for building the Skia Debugger on OSX 10.7.5.
Download QT 4.8: http://qt-project.org/downloads
Follow quickstart: https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/mac
prerequisites, chekout, build, run tests
Checkout and build SKIA Debugger
https://sites.google.com/site/skiadocs/developer-documentation/skia-debugger
I had a few problems building and kept getting strange compile errors. I waited one day and updated the code with svn up and it magically started building.
GYP_DEFINES="skia_os=mac skia_arch_width=64" make debugger
Checkout and build Chromium
{
"task": "performance",
"userAgent": "chrome",
"userAgentAliases": {
"iphone": "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7",
"android": "Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
"chrome": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.12 Safari/535.11"
},
"wait": 0,
"cacheWait" : 200,
@wesleyhales
wesleyhales / confess-mod.js
Created July 26, 2012 20:52
phantom script
var fs = require('fs');
var confess = {
run: function () {
var cliConfig = {};
confess.performancecache = this.clone(confess.performance);
if (!this.processArgs(cliConfig, [
{
name: 'url',
def: 'http://google.com',
(function (window, undefined) {
"use strict";
/**
* @class asynchronous resource loader
*/
var CNNLoader = (function () {
var init = function (options) {
options = options || {};
},