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
-- Globals. | |
hs.loadSpoon("ReloadConfiguration") | |
spoon.ReloadConfiguration:start() | |
local log = hs.logger.new('hammerspoon', 'debug') | |
-- Key bindings. |
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
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
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
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
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
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
++[>++++[>++++>++++++++>++++>+++++>+++++>+++++>+++++>+>+++++>++++++>++++++<<<<<<<<<<<-][<]<-]>>>>+++>--->-->>++>++>++++>-->-<<<<<<<<<<>>>>>>>>>>...<<<<...>>........................>...............................<...>................<<<<<<<<<.>>>>>>>>>.....<.............<<..>>>>.<<<<<...>>>>>.....<<<<.........>.>>>.<<<<<.>>>>>.<<<<...>>........................>..........<<<<<<<<<..>>>>>>>>>...................<..>.............<<<<<<<<<........>>>>>>>>>...<............<<..>>>>.<<<<<...>>>>>......<<<<........>.>>>.<<<<<.>>>>>.<<<<...>>.........................>...<<<<<<<<<..........>>>>>>>>>.....<.>....<..>......<.>...<.>....<.>..<<<<<<<<<...........>>>>>>>>>..<............<<..>>>>.<<<<<....>>>>>.....<<<<........>.<<..>>>>>.<<<<...>>.......................>...<<<<<<<<<............>>>>>>>>>........<.>.<....>.<....<<...>>.<<.>>...>...<<<<<<<<<...........>>>>>>>>>..<............<<..>>>>.<<<<<....>>>>>.....<<<<........>.>>>.<<<<<.>>>>>..<<<<..>>......................>...<<<<<<<<<........>>>>>>>>>...........<.<<..>>> |
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
// Functions | |
// String.startsWith | |
if (typeof String.prototype.startsWith != 'function') { | |
String.prototype.startsWith = function (str){ | |
return this.slice(0, str.length) == str; | |
}; | |
} | |
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/sh | |
albums_file=/path/to/albums_file | |
todo_file=/path/to/tmp/vkalbu_todo.json | |
# -u 10 and 10< in done section is used | |
# to prevent reading from stding inside | |
# vkalbu python script (captcha request) | |
# @see http://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash | |
while read -u 10 album; do |
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
settings { | |
logfile = "/home/tt4/work/lsyncd/log/lsyncd.log", | |
statusFile = "/home/tt4/work/lsyncd/log/lsyncd-status.log", | |
statusInterval = 20 | |
} | |
sync { | |
default.rsyncssh, | |
source = "/home/tt4/mnt/ji/", | |
host = "[email protected]", |
NewerOlder