This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See the most up to date version here where it says "Download the mrc-converter-suite zip archive" https://discussions.agilebits.com/discussion/30286/mrcs-convert-to-1password-utility/p1 | |
-- | |
-- Exports Safari's saved passwords to a CSV file formatted for use with the convert_to_1p4's csv converter | |
-- | |
-- Version 1.4 | |
-- mike (at) cappella (dot) us | |
-- | |
use AppleScript version "2.5" -- runs on 10.11 (El Capitan) and later | |
use scripting additions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
options_for_command() { | |
git help $1 \ | |
| tr " " "\n" \ | |
| egrep '^\--.*$' \ | |
| egrep -v '/' \ | |
| egrep -v '\-{3,}' \ | |
| egrep -v '{|}' \ | |
| perl -pe 's/\[=.*\]//' \ | |
| perl -pe 's/[^\w=\n\[\]<>-]//' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
global currentProcess | |
tell application "System Events" | |
--set currentProcess to the name of the first process where it is frontmost | |
set currentProcess to (path to frontmost application as text) | |
end tell | |
activate application "Preview" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
au BufWritePost *.plantuml :silent !plantuml % & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
start = time.time() | |
def time_left(): | |
global start | |
return 5 * 60 - (time.time() - start) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/google/volley/ | |
cd volley | |
need SYSfirst | |
need android | |
setenv ANDROID_HOME $ANDROID_SDK_HOME | |
# Now you have to open this android studio project, wait for it to finish loading, and then close it | |
./gradlew test | |
google-chrome build/reports/tests/testReleaseUnitTest/release/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wcme() { | |
NAME=`git config user.name` | |
git blame "$1" \ | |
| egrep "\($NAME" \ | |
| egrep -v '<!--' \ | |
| perl -pe 's/.*\d+\)(.*)/\1/' \ | |
| wc -w | |
} | |
wcme file.md # => 123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this in the console just before the countdown timer goes from "1" to "9" | |
// then wiggle the mouse over the text input | |
// (it helps if you zoom in in the browser to increase the input element size) | |
var charsPerIteration = 5; | |
var maxPressesPerSecond = 32; | |
var charsBeforeBackoff = 20; | |
var backoffDelayPerChar = 50; | |
var textElems = [].slice.call($("[unselectable='on']").parentNode.children); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run {input, parameters} | |
global currentProcess | |
tell application "System Events" | |
--set currentProcess to the name of the first process where it is frontmost | |
set currentProcess to (path to frontmost application as text) | |
end tell | |
activate application "VirtualBoxVM" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File | |
echo 'A' > test-file | |
echo 'B' >> test-file | |
perl -i -0 -pe 's/A\nB/REPLACEMENT/g' test-file |