Skip to content

Instantly share code, notes, and snippets.


How to use 1Password and 2FA with eTrade

As of May 17, 2020, python-vipaccess stopped working for provisioning new Symantec VIP Access tokens (which was its raison d'être).
As of May 27, 2020, it's working again.
It might stop working again. and we might not be able to get it to work again (see #39)

Note: Your password cannot be more than 26 characters for you to use 2FA in general. eTrade makes you enter your 2FA code appened to your password to login and limits the length of password input to 32 characters, thus further restricting the maximum length of your actual password.

mdemblani / Mysql Character Set conversion - Latin1 to UTF-8(utf8mb4).md
Last active Aug 1, 2021
Mysql Character Set conversion - Latin1 to UTF-8(utf8mb4)
View Mysql Character Set conversion - Latin1 to UTF-8(utf8mb4).md
  1. Make sure mysql-client is installed. If not, then :
    sudo apt install mysql-client
    sudo apt-get install mysql-client
  1. Open php.ini
    ; PHP's default character set is set to UTF-8.
dnozay /
Last active Sep 20, 2021
jenkins groovy scripts collection.
View My Exiftool

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

textarcana /
Last active Jan 26, 2016
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3.

This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.

I (mostly) followed the steps shown in the EZUnix wiki

And I also referred back to this gist by Michael Grace

sturadnidge / tmux-1.8-on-CentOS-6.x.txt
Last active May 10, 2021
Install tmux 1.8 on CentOS 6.x minimal (64bit)
View tmux-1.8-on-CentOS-6.x.txt
# download latest libevent2 and tmux sources, and extract them somewhere
# (thx bluejedi for tip on latest tmux URL)
# at the time of writing:
# install deps
yum install gcc kernel-devel make ncurses-devel
daaain / gist:3932602
Created Oct 22, 2012
Google App Script - Spreadsheet JSON export
View gist:3932602
* Adds a custom menu to the active spreadsheet, containing a single menu item
* for invoking the exportJSON() function specified above.
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
* For more information on using the Spreadsheet API, see
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
BinaryMuse / gist_tag.rb
Created Jan 31, 2011
A Liquid tag for Jekyll sites that allows embedding Gists and showing code for non-JavaScript enabled browsers and readers.
View gist_tag.rb
require 'cgi'
require 'digest/md5'
require 'net/https'
require 'uri'
module Jekyll
class GistTag < Liquid::Tag
def initialize(tag_name, text, token)
@text = text
mahmoudimus /
Created Feb 4, 2010
pythonic monkey patching built-in types
# found this from Armin R. on Twitter, what a beautiful gem ;)
import ctypes
from types import DictProxyType, MethodType
# figure out side of _Py_ssize_t
if hasattr(ctypes.pythonapi, 'Py_InitModule4_64'):
_Py_ssize_t = ctypes.c_int64
_Py_ssize_t = ctypes.c_int