Skip to content

Instantly share code, notes, and snippets.

View willasaywhat's full-sized avatar
:octocat:
Back to building new things!

Willa Riggins willasaywhat

:octocat:
Back to building new things!
View GitHub Profile
@willasaywhat
willasaywhat / tripcase-export.js
Created February 13, 2025 03:48
Quick JS console cut and paste export of TripCase PDFs
/**
DISCLAIMER: I wrote some code, and it was giving me blank PDFs off and on so I did the terrible, no good thing and asked ChatGPT to fix it.
Yeah, it didn't work the first try either. However, it did eventually make something that didn't completely suck which is better than me spending the night trying to fix it because Sabre decided to sunset their app with no export functionality.
If you're interested in the chat log, for proof I'm really that lazy, it's here: https://chatgpt.com/share/67ad6ad0-7ed0-800c-87a9-86f67267c3a0
USAGE NOTES: Login to tripcase.com, expand your 'Past Trips', then click 'See all remaining trips', then paste the below script into your JavaScript Console. After a little time for the AJAX to run, you'll get a download prompt for each itinerary as a numerical order PDF.
WHY: Sure, you could click a bunch of export links and save each PDF with more than one click but that wouldn't be nearly as easy as spamming left click on a Save button. Okay, yeah, it's very lazy. Still. It works.
@willasaywhat
willasaywhat / Remote Office Equipment
Last active January 2, 2025 06:18
This is a short list of the stuff I use to work well from home. Some of it is higher end, some of it isn't, but it's all important for how I work.
Steel Series Arctis Nova Pro Wireless
Logitech C920
34" 1440p Ultrawide Monitor
Laptop Stand (Rain Design)
Laptop Dock (CalDigit TS3+)
Akko 3068 World Tour (Cherry MX Brown, Bluetooth)
Filco Lavender TKL Palm Rest
Logitech G502 Mouse
3d printed webcam cover
Jarvis Standing Desk
###
# Written on a plane using Pythonista and a gratiutious use of copy and paste, as well as in flight wifi.
###
import requests
import urllib
from HTMLParser import HTMLParser
#### HE COMES (courtesy of: https://github.com/mjgiarlo/pyzalgo/blob/master/bin/zalgo) ####
# coding: utf-8
@willasaywhat
willasaywhat / repl_lights.js
Last active December 18, 2015 15:35
Node REPL for Christmas Lights (usage: .lights 255 255) Note: Lowercase hex is on purpose; light box won't accept it in uppercase.
var dgram = require('dgram');
var repl = require('repl');
var lightswitch_socket = dgram.createSocket("udp4");
var replServer = repl.start({
prompt: 'Lights > '
});
replServer.defineCommand('lights', {
@willasaywhat
willasaywhat / famarkov.py
Created July 15, 2015 01:23
Famamarkov v2: The Markovening
# FamiLAB Markov Chain Generator
# based on: http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/
import random
import re
import argparse
IRC_PATTERN = r"(.*)\<(.*)\>(.*)"
@willasaywhat
willasaywhat / famarkov.py
Created July 14, 2015 23:42
Famarkov: A Markov Bot for IRC Logs
# FamiLAB Markov Chain Generator
# based on: http://agiliq.com/blog/2009/06/generating-pseudo-random-text-with-markov-chains-u/
import random
import re
IRC_PATTERN = r"(.*)\<(.*)\>(.*)"
@willasaywhat
willasaywhat / gist:67e5fc91e492bf24c2a1
Created April 11, 2015 03:30
Foscam Viewer in JavaScript for Xbox One
<html>
<head>
<title>Cam Viewer</title>
<style type="text/css">
body {
background: black;
color: white;
}
body, input, button, select, option, textarea {
font-family: "Trebuchet MS", "Sans Serifs"; /* whatever font */

Keybase proof

I hereby claim:

  • I am willasaywhat on github.
  • I am abyssknight (https://keybase.io/abyssknight) on keybase.
  • I have a public key whose fingerprint is 0351 FEA7 4028 9819 0F75 47CC F5A1 E14C 601D A52D

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am abyssknight on github.
  • I am abyssknight (https://keybase.io/abyssknight) on keybase.
  • I have a public key whose fingerprint is 0351 FEA7 4028 9819 0F75 47CC F5A1 E14C 601D A52D

To claim this, I am signing this object:

@willasaywhat
willasaywhat / tmux-share
Created August 13, 2014 14:43
Share a tmux session
tmux -S /tmp/willatmux new -s willatmux
chmod 777 /tmp/willatmux
tmux -S /tmp/willatmux attach -t willatmux