Skip to content

Instantly share code, notes, and snippets.

View jeremyjjbrown's full-sized avatar

Jeremy Brown jeremyjjbrown

View GitHub Profile
@akhoury6
akhoury6 / mfatoken.applescript
Created May 19, 2016 15:23
Generate an MFA token with an OS X Keyboard Shortcut
-- Settings
set mfaSecret to "<token>"
-- Install oath-toolkit if not available
try
do shell script "which /usr/local/bin/oathtool"
on error
display dialog "This script needs to install oath-toolkit. Please ensure that brew is installed, then hit OK to continue."
do shell script "brew install oath-toolkit"
end try
@darekkay
darekkay / intellij-monokai-theme.xml
Last active September 18, 2024 20:50
Monokai Theme for JetBrains IDEs (IntelliJ IDEA, Webstorm, PhpStorm, PyCharm etc.)
<scheme name="Eclectide Monokai" version="142" parent_scheme="Default">
<colors>
<option name="ADDED_LINES_COLOR" value="295622" />
<option name="ANNOTATIONS_COLOR" value="b2c0c6" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="" />
<option name="CONSOLE_BACKGROUND_KEY" value="1c1c1c" />
<option name="FILESTATUS_ADDED" value="629755" />
<option name="FILESTATUS_DELETED" value="6c6c6c" />
<option name="FILESTATUS_IDEA_FILESTATUS_DELETED_FROM_FILE_SYSTEM" value="6c6c6c" />
@waylan
waylan / foo.sh
Created November 15, 2012 18:39
Simple bash subcommands. Each subcommand is implemented as a function. For example, `sub_funcname` is called for `funcname` subcommand.
#!/bin/sh
ProgName=$(basename $0)
sub_help(){
echo "Usage: $ProgName <subcommand> [options]\n"
echo "Subcommands:"
echo " bar Do bar"
echo " baz Run baz"
echo ""