Skip to content

Instantly share code, notes, and snippets.

View tarxvf's full-sized avatar

Warren Kenner tarxvf

  • Skye Ranch
  • Redwood City, CA
View GitHub Profile
@tarxvf
tarxvf / southwestAListWiFi
Last active December 2, 2019 03:02
Live in the southwest system? Want an automated way to connect with your A-List wifi on Southwest? I used to burn 20-30% of my battery trying to navigate through the free A-List portal captivation screens. Here is a GoLang script that will automagically connect you within seconds.. Giving you battery and time on your life back.... you must expor…
This file has been truncated, but you can view the full file.
@tarxvf
tarxvf / process_list_prep.py
Last active June 9, 2016 15:03
takes a directory of files (in this case PDF targets, and creates a distribute list of N processing files (to push out to a poor man's cluster using something like <script src="https://gist.github.com/tarxvf/ba49560220e69a90d1df379a3f309150.js"></script>
import os
rootdir = '/tmp/'
import re
count=0
for subdir, dirs, files in os.walk(rootdir):
for file in files:
#print file
m = re.search("[0-9]+\.pdf$",file)
@tarxvf
tarxvf / process_new.sh
Last active June 9, 2016 15:02
this takes a directory of work items (in this case, PDF's in need of OCR) and processes them, skipping the old items. This particular variant uses a file to feed the selection process (allowing a quick distribution of processing over multiple nodes. (poor mans cluster) pypdfocr worked great on this one. I've written this construct a few bazillio…
#!/bin/bash
DIR=/tmp/
FILES=$DIR/*.pdf
cd $DIR
#for FILE in $FILES; do
while read FILE; do
for