This file contains hidden or 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 | |
# Create a 4x6 photo from one square image | |
if [ $# -ne 1 ]; then | |
echo "usage: ./passport.sh <filename>" | |
exit 1 | |
fi | |
FN="$1" | |
montage "$FN" -clone 0,0,0,0,0 -geometry +0+0 -tile 3x2 "${FN%.*}-4x6.jpeg" |
This file contains hidden or 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 | |
FILE=conversation | |
LTIME=`stat -c %Z $FILE` | |
# Below is a Text width of 40 | |
echo "========================================" | |
while true | |
do | |
ATIME=`stat -c %Z $FILE` | |
if [[ "$ATIME" != "$LTIME" ]] | |
then |
This file contains hidden or 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
# usage: merge out.pdf file1.pdf file2.pdf ... | |
function merge() { | |
out="$1" | |
shift | |
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE="$out" -dBATCH $@ | |
} |
This file contains hidden or 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
; How to view scancodes in AHK v1 (I can't figure this out for v2) | |
; Right-click, "run this script" on this file (not the .exe) | |
; Right click and select "Open" | |
; View -> Key History and Script Info | |
; Now you can type things, press F5 to refresh; they appear bottom-up | |
SendMode("Input") ; Tutorials say this is good | |
Capslock::LCtrl ; Map Capslock to Control | |
RCtrl & Capslock::Capslock ; Map Right control + Capslock to Capslock | |
; Hibernate on ctrl+alt+win+h |
OlderNewer