Skip to content

Instantly share code, notes, and snippets.

View drnikki's full-sized avatar

Dr. Nikki Stevens drnikki

View GitHub Profile
Verifying that +drnikki is my blockchain ID. https://onename.com/drnikki
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.
@drnikki
drnikki / gist:60a98f8a4686975f74c4
Last active August 29, 2015 14:22
svn2git vagrantfile
# 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|
@drnikki
drnikki / supported browser matrix
Created February 24, 2015 20:01
Supported Browser Matrix
<!-- 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>
<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>
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');
}
});
@drnikki
drnikki / in the shell
Created April 10, 2013 22:58
Stores a word and a number. I use it to count the number of times a certain word is used in a meeting.
# The word you want to add to, and the optional number to add to it.
mongo --eval "var theword='solve', thecount=5" write.js
@drnikki
drnikki / upload.rb
Last active October 13, 2015 15:37
Skitch replacement, step 2
#!/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' "
@drnikki
drnikki / gist:3947360
Created October 24, 2012 17:06
Export Skype chat history
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
@drnikki
drnikki / gist:3730281
Created September 15, 2012 23:09
git yo
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