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
Verifying that +drnikki is my blockchain ID. https://onename.com/drnikki |
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
mkdir /var/selenium | |
cd /var/selenium | |
# get selenium jar | |
wget http://selenium-release.storage.googleapis.com/2.46/selenium-server-stan dalone-2.46.0.jar | |
#install java | |
sudo apt-get install openjdk-7-jre-headless. | |
# get headless browser | |
sudo apt-get install firefox. |
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
# taken directly from http://blogs.isostech.com/git/howto-use-vagrant-git-importing-sandbox/ | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
echo I am provisioning... | |
date > /etc/vagrant_provisioned_at | |
sudo apt-get -q -y install git-core git-svn ruby rubygems subversion | |
sudo gem install svn2git --source http://gemcutter.org | |
SCRIPT | |
Vagrant.configure("2") do |config| |
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
<!-- initially taken from http://courses.ucmo.edu/check/browser_compatibility.html --> | |
<style> | |
td { border: 1px solid black; padding: 4px;} | |
td.pass { background-color: green;} | |
td.fail {background-color: red;} | |
</style> |
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
<div class="messages error"> | |
<h2 class="element-invisible">Error message</h2> | |
Whoops. Something went wrong with field collections JP503-AU-C, JP503-AU-VT</div> |
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
canvas.on('touchend', function(options) { | |
console.log('touch'); | |
// only if we're not selecting other objects | |
if (typeof options.target !== 'object' ) { | |
drawRect(options.e.clientX, options.e.clientY, 'start'); | |
} | |
}); |
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
# The word you want to add to, and the optional number to add to it. | |
mongo --eval "var theword='solve', thecount=5" write.js |
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
#!/usr/bin/env ruby | |
#JSON Parsing example | |
require "rubygems" | |
require "json" | |
# i don't like this at all.... | |
photopath = "#{ARGV[0]}" | |
# running from within the repository | |
thecommand ="./openphoto -p -X POST -h YOUR_OPENPHOTO_HOST -e /photo/upload.json -F 'photo=@" + photopath + "' -F 'tags=REPLACEME,WITHTAGS' " |
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
sqlite3 ~/Library/Application\ Support/Skype/<YOUR SKYPENAME>/main.db "SELECT author,timestamp, body_xml FROM messages WHERE dialog_partner = '<OTHER SKYPENAME>'" > ~/Desktop/skype_chat_history.txt |
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
git clone git@github.com:drnikki/laughing-cyril.git | |
cd laughing-cyril | |
echo "this is some text" >> rachel1.txt | |
git add rachel1.txt | |
git commit -m "I am my first commit" | |
git push origin master |