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
diff --git a/assets/js/main.js b/assets/js/main.js | |
index 6044dc5..c27e37f 100644 | |
--- a/assets/js/main.js | |
+++ b/assets/js/main.js | |
@@ -215,6 +215,9 @@ | |
// Main. | |
var $main = $('#main'); | |
+ var popupMargin = $main.attr("data-popup-margin"); | |
+ if (popupMargin == 0) popupMargin = 50; |
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 argv | |
tell application "iTerm" | |
if exists current window then | |
tell current window | |
create tab with default profile | |
end tell | |
else | |
create window with default profile | |
end if | |
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 | |
# As detailed at http://blog.didenko.com/2010/08/locking-for-daemons-in-bash.html | |
pidf=/tmp/$(basename ${0}).pid | |
exec 221>${pidf} | |
flock --exclusive --nonblock 221 || | |
{ | |
echo "Another instance is apparently running." | |
exit 1 |
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
In a rush to patch a hot issue developers may deploy | |
a dirty codebase build. Dirty in a sense that the build | |
happens while there are changes to the code which are | |
not committed to the repository, even if local. If that | |
dirty build goes to production while source code gets | |
more changes before committing, one will never have | |
certainty why that production build behaves a certain | |
way should a problem arise. | |
A full write-up on files in this solution is at: |
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 | |
# | |
# Copyright 2013 Vlad Didenko | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
set nocompatible | |
set backspace=indent,eol,start | |
set backup | |
set backupdir=~/tmp,/tmp,. | |
set directory=~/tmp,/tmp,. | |
set history=1000 | |
set ruler | |
set showcmd | |
set mouse=a | |
set autoindent |
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
alias l="ls -AFGhlO " | |
alias ll="ls -alFgeh " | |
alias lll="ls -alFgeh@@ " | |
alias hig="history | grep " | |
alias less="less -i -~ " | |
alias ci="vi " | |
alias bb="bbedit" | |
alias gdc="godoc -http=:6060; open \"http:\\\\localhost:6060\\\"" | |
function lg(){ |
NewerOlder