Skip to content

Instantly share code, notes, and snippets.

View virtix's full-sized avatar
💭
I may be slow to respond.

bill shelton virtix

💭
I may be slow to respond.
View GitHub Profile
@virtix
virtix / webdriver_grid_cmd_line_help.md
Created January 20, 2012 11:50
WebDriver Commandline Help formatted for Markdown

To use as a standalone server

Usage: java -jar selenium-server.jar [-interactive] [options]

  • port <nnnn>: the port number the selenium server should use (default 4444)

  • timeout <nnnn>: an integer number of seconds before we should give up

@virtix
virtix / sauce_browsers_coordination.py
Created February 8, 2012 19:51 — forked from santiycr/sauce_browsers_coordination.py
Coordinate multiple browsers in Sauce OnDemand using threads
from threading import Thread
from selenium import selenium
import time
try:
import json
except ImportError:
import simplejson as json
USERNAME = "USERNAME"
ACCESS_KEY = "ACCESS-KEY"
$PORT = 4444
#start server
java -jar selenium-server-standalone.jar port=$PORT
#stop server
wget http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
@virtix
virtix / find.Examples
Created March 18, 2012 10:58
From man pages
EXAMPLES
find /tmp -name core -type f -print | xargs /bin/rm -f
Find files named core in or below the directory /tmp and delete them. Note that this will work incorrectly if
there are any filenames containing newlines, single or double quotes, or spaces.
find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f
Find files named core in or below the directory /tmp and delete them, processing filenames in such a way that
file or directory names containing single or double quotes, spaces or newlines are correctly handled. The -name
@virtix
virtix / cfpb-source-code-policy.txt
Created April 9, 2012 14:34 — forked from CFPBadmin/cfpb-source-code-policy.txt
Consumer Financial Protection Bureau Source Code Policy
1. USE OF EXTERNAL OPEN SOURCE SOFTWARE
a) "Open Source Software" (OSS) is software that allows its recipients to modify and redistribute the source code; as such, "open source" is a copyright and distribution framework and makes no implications regarding technical support or indemnification. In almost all cases, OSS meets the definition of "commercial computer software" and shall be given appropriate statutory preference in accordance with 41 USC 264B (reference (b)) (see also FAR 2.101(b), 12_1.html 12.000, 12.101 (reference (c))).
b) Executive agencies, including CFPB, are required to conduct market research when preparing for the procurement of products or services by 41 USC Sec. 253a (reference (e)) (see also FAR 10.001. Market research for software should include OSS.
a. There are several positive aspects of OSS that should compel CFPB to seek out OSS when conducting market research on software for Bureau-wide use:
i. Publicly available source code enables continuous and broad peer review that
import csv, codecs, cStringIO
class UTF8Recoder:
"""
Iterator that reads an encoded stream and reencodes the input to UTF-8
"""
def __init__(self, f, encoding):
self.reader = codecs.getreader(encoding)(f)
def __iter__(self):
all: bison-1
bison-1: bison1.l bison1.y
bison -d bison1.y
flex -v -obison1.lex.c bison1.l
gcc -o $@ bison1.tab.c bison1.lex.c
clean:
rm -f bison-1 \
bison1.lex.c bison1.tab.h bison1.tab.c
@virtix
virtix / Berry-muesli.md
Last active October 6, 2015 22:18
Fav Recipes

Berry Museli

Ingredients

  • 1/2 Cup of oats (Bob's Red Mill Organic Rolled Oats)
  • 1 Cup plain yogurt (Organic)
  • 2 Tbs Non-fat milk
  • 3/4 Cup Berries (blueberries, raspberries, strawberries)
  • 1/4 Cup chopped hazzlenuts, walnuts, or almonds
  • 1 tsp vanilla
  • 1 Tbs fresh fruit preserves
1. USE OF EXTERNAL OPEN SOURCE SOFTWARE
a) "Open Source Software" (OSS) is software that allows its recipients to modify and redistribute the source code; as such, "open source" is a copyright and distribution framework and makes no implications regarding technical support or indemnification. In almost all cases, OSS meets the definition of "commercial computer software" and shall be given appropriate statutory preference in accordance with 41 USC 264B (reference (b)) (see also FAR 2.101(b), 12_1.html 12.000, 12.101 (reference (c))).
b) Executive agencies, including CFPB, are required to conduct market research when preparing for the procurement of products or services by 41 USC Sec. 253a (reference (e)) (see also FAR 10.001. Market research for software should include OSS.
a. There are several positive aspects of OSS that should compel CFPB to seek out OSS when conducting market research on software for Bureau-wide use:
i. Publicly available source code enables continuous and broad peer review that
@virtix
virtix / far_from_any_road.md
Last active August 29, 2015 13:56
Music and Lyics and by The Handsome Family - http://www.handsomefamily.com/

(Intro: percussion x 2 + Am x 4)

Am             E      
From the dusty mesa, her
Dm             Am
Looming shadow grows
Am            E               
Hidden in the branches, of the