Skip to content

Instantly share code, notes, and snippets.

@cwlls
cwlls / download.all.adp.paystubs.js
Last active January 6, 2022 12:11 — forked from azagniotov/download.all.adp.paystubs.js
Downloads all pay-slips from ADP website
/*
This has been tested in Chrome v97.0.4692.71 (64-bit)
1. Log into ADP website using the URL: https://my.adp.com/static/redbox/login.html (Make sure you are NOT in Incognito mode)
2. Open Developer Tools console
3. Run the following code in the console:
*/
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://my.adp.com/v1_0/O/A/payStatements?adjustments=yes&numberoflastpaydates=999');
@cwlls
cwlls / sublime_context_menu.reg
Created August 21, 2019 04:36
Add nice Sublime Text context menu items to Windows
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text]
@="Edit with &Sublime Text"
"Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0"
"MuiVerb"="Edit with Sublime Text"
[HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text\command]
@="C:\\Program Files\\Sublime Text 3\\sublime_text.exe \"%1\""
@cwlls
cwlls / rename_arlo.py
Created January 14, 2019 14:25
Rename files downloaded from Arlo (Netgear) to something more parsable by humans
#!/usr/bin/python
import os
import sys
import datetime as datetime
for file in os.listdir(sys.argv[1]):
ts = datetime.fromtimestamp(float(os.path.splitext(file)[0])/1000.0)
os.rename(file, ts.strftime("%m%d%Y-%H%M%S.mp4"))
{
"pcres_template" : {
"order" : 0,
"version" : 1,
"template" : "pcres-*",
"settings" : {
"index" : {
"number_of_shards" : "5"
}
},
{
"circ_template" : {
"order" : 0,
"version" : 1,
"template" : "circulation-*",
"settings" : {
"index" : {
"number_of_shards" : "5"
}
},

Keybase proof

I hereby claim:

  • I am cevanwells on github.
  • I am cevanwells (https://keybase.io/cevanwells) on keybase.
  • I have a public key whose fingerprint is C478 D254 CDC3 2755 C054 4932 BE17 8983 7BB4 50AD

To claim this, I am signing this object:

@cwlls
cwlls / rfuse-build_fail
Created November 21, 2013 12:58
rfuse-1.0.3 build failure
Building native extensions. This could take a while...
ERROR: Error installing rfuse:
ERROR: Failed to build gem native extension.
/Users/chris/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checking for rb_errinfo()... yes
Have rb_errinfo
checking for main() in -lfuse... yes
creating Makefile
@cwlls
cwlls / rfuse-build_fail2
Last active December 28, 2015 23:48
rfuse-1.0.3 build failure (with include/ links)
Building native extensions. This could take a while...
ERROR: Error installing rfuse:
ERROR: Failed to build gem native extension.
/Users/chris/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checking for rb_errinfo()... yes
Have rb_errinfo
checking for main() in -lfuse... yes
creating Makefile
#!/bin/bash
# ThriftyPants Wordpress backup script <backup-tp.sh>
# This script was created with help from:
# http://theme.fm/2011/06/a-shell-script-for-a-complete-wordpress-backup-4/
# http://www.guyrutenberg.com/2013/03/28/incremental-wordpress-backups-using-duply-duplicity/
# http://www.mobiledev.nl/backup-complete-wordpress-site-with-a-script/
# Copyright (c) 2013, Chris Wells <chris@recklesswells.com>
# All rights reserved.