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
; For those laptop that don't have home/end/pgup/pgdn, | |
; you can now use caps lock + left/right/up/down, respectively. | |
#SingleInstance force | |
SetWorkingDir %A_ScriptDir% | |
CapsLock & Left::Send {Blind}{Home} | |
CapsLock & Right::Send {Blind}{End} | |
CapsLock & Up::Send {Blind}{PgUp} | |
CapsLock & Down::Send {Blind}{PgDn} |
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 sys | |
import redis | |
if len(sys.argv) == 0: | |
print "Usage: redis-db-mem.py HOST [PORT]" | |
sys.exit(2) | |
host = sys.argv[1] | |
if len(sys.argv) > 2: | |
port = int(sys.argv[2]) |