Skip to content

Instantly share code, notes, and snippets.

Nikki Stevens drnikki

Block or report user

Report or block drnikki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4dc748a0b20c7d39c1fa
Verifying that +drnikki is my blockchain ID. https://onename.com/drnikki
View Install Selenium on the VM
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.
View gist:60a98f8a4686975f74c4
# 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 Feb 24, 2015
Supported Browser Matrix
View 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>
View gist:416e14f7c631fe5c3ba1
<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>
View gist:1f0cd72d69988e785f23
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 Apr 10, 2013
Stores a word and a number. I use it to count the number of times a certain word is used in a meeting.
View in the shell
# 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 Oct 13, 2015
Skitch replacement, step 2
View upload.rb
#!/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 Oct 24, 2012
Export Skype chat history
View gist:3947360
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
View gist:3730281
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
You can’t perform that action at this time.