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/sh | |
H=192.168.1.10 | |
[[ $1 ]] && H=$1 | |
while true; do | |
sleep 5 | |
ping -W3 -c1 $H &>/dev/null && continue | |
echo "`date` - restarting wifi" |
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
require 'test/unit' | |
class MyFirstTest < Test::Unit::TestCase | |
def test_for_truth | |
assert true | |
end | |
def test_multiplying | |
assert_equal 4, 2*2 | |
end | |
end |
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 [1]: class O(object): | |
...: def _neco(self, param): | |
...: return param | |
...: def __init__(self, *args, **kwargs): | |
...: self.something = s = {} | |
...: for a,b in [(1,10),(2,20),(3,30)]: | |
...: s[a] = lambda: self._neco(b) | |
...: | |
In [2]: o = O() |
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
Verifying that +kvbik is my Bitcoin username. You can send me #bitcoin here: https://onename.io/kvbik |
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 vi=vim | |
alias vi=emacs | |
#alias g=git | |
alias g=hg | |
#alias rm_pyco='find . -name "*.py[co]" -exec rm -v {} \;' | |
alias rm_pyco='echo banik' |
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
# include default settings | |
source /etc/screenrc | |
# disable startup | |
startup_message off | |
# set bottom line | |
hardstatus alwayslastline "%{= dc}%-Lw%{= dw}%{!b}%n*%f %t%{!b}%{= dc}%+Lw%=[ %H ] %d.%m.%Y %c:%s" | |
# default term variable |
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
[color] | |
status = auto | |
diff = auto | |
branch = auto | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
[core] |
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 | |
# all credits and thx to http://stackoverflow.com/a/4529172 | |
[[ $1 ]] && ISSUE=$1 || exit | |
[[ $2 ]] && BRANCH=$2 || exit | |
[[ $3 ]] && BASE=$3 || BASE=master | |
OWNER=walksource | |
REPO=roomstorm-backend |
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
c:\users>pokus.py | |
128 | |
c:\users>pokus.bat | |
128 | |
c:\users>run.py | |
c:\users> |
OlderNewer