-
Start up the sqlite3 commandline on a new datafile:
sqlite3 myFooData.db
-
You should see a prompt something like this:
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
#!/usr/bin/env python | |
from bs4 import BeautifulSoup as soupy | |
import requests | |
def login_elements(tag): | |
"""A filter to find cas login form elements""" | |
return tag.has_key('name') and tag.has_key('value') | |
def login(username, password, url): |
Start up the sqlite3 commandline on a new datafile: sqlite3 myFooData.db
You should see a prompt something like this:
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
class CheckArch { | |
public static void main(String[] args) { | |
String arch = System.getProperty("os.arch"); | |
System.out.println("Architecture: " + arch); | |
} | |
} |
#!/usr/bin/bash | |
USERNAME='' | |
PASSWORD='' | |
THRESHOLD='1000' | |
SLO_THREADS=$(mysqladmin -u$USERNAME -p$PASSWORD proc | egrep -v 'Sleep|Time|Id|processlist' | awk -F'|' '{print $7,$2,$9}' | sort -bnr | sed '/^[ \t\n]*$/d' | head -5 ) | |
date | |
while read -r line; do |
#!/usr/bin/bash | |
# enable job control | |
set -m | |
TOR_PKGS=(tor-browser-gnu-linux-x86_64-2.3.25-8-dev-en-US.tar.gz{,.asc}) | |
TOR_MIRROR='https://www.torproject.org/dist/torbrowser/linux/' | |
# never hurts to double check this | |
TOR_SIGNING_KEY='416F061063FEE659' |
#!/usr/bin/env python | |
""" | |
Get all git projects advertised on a cgit index as submodules for a repo. | |
Usage: | |
./scrape_cgit_repos.py http://git.example.com ./repos | |
""" | |
from bs4 import BeautifulSoup as soupy |
# sysmouse will work with the trackpoint and trackpad, so enable | |
moused_enable="YES" | |
# Power saving features to keep it from getting ridiculously hot | |
powerd_enable="YES" | |
# you'll need to `pkg install drm-510-kmod` | |
kld_list="i915kms" |
<?php | |
/** | |
* PHP-CAS library. | |
*/ | |
require_once "CAS/CAS.php"; | |
/** | |
* d2l SSO library. | |
*/ | |
require_once "d2l-login.php"; | |
/** |
#!/usr/bin/python | |
import csv | |
# Ad hoc names for the fields from the source CSV | |
WAUDITFIELDS = ( 'id', | |
'type', | |
'facility', | |
'date', | |
'empty?', |
#!/usr/bin/env python | |
from contextlib import closing | |
from hashlib import sha1 | |
import sys | |
import urllib2 | |
def hash_page(content): | |
page_hash = sha1() |