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 / selenium_with_python.rst
Created August 5, 2011 04:27 — forked from baijum/selenium_with_python.rst
Selenium with Python

Selenium with Python

Author

Baiju Muthukadan

Email

baiju.m.mail AT gmail.com

Version

0.5.0

Note

@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 / setlist.md
Last active September 3, 2017 17:15
List of cool songs

Covers

  • I'm still a man [instrumental]
  • Apache [instrumental]
  • After the storm [instrumental]
  • My favorite things [instrumental]
  • Far from any road [instrumental]
  • Rawhide [instrumental]
  • My Funny Valentine [instumental]
  • Goodbye Pork Pie Hat [instrumental]
  • Indian Summer
function getAFuckingLifeYouAsshatMonkeyShitHurler() {
var null = '';
var methodProxy = javacast('null',chr(0));
var args = {1='scum sucking asshat-wearing Neanderfuck'};
var ctx = getPageContext().getFusionContext();
ctx.parent._set('methodProxy', ctx.parent.createObject('java','coldfusion.runtime.java.JavaProxy').init( ctx.parent._autoscalarize( ctx.parent._get('plainOldComponent').echo )) );
actual = methodProxy.invoke(null, null, ctx.parent, args);
debug(actual);
assertEquals( 'scum sucking asshat-wearing Neanderfuck' , actual );
}
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 / 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 / TestSimpleHttpNTLMConnection.java
Created November 4, 2011 20:46
Simple HttpClient 4.1 that performs an HTTP GET request through NTLM v2
package test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import java.util.ArrayList;
@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
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
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):