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 | |
CMD="sbt test" | |
# Check if we actually have commits to push | |
commits=`git log @{u}..` | |
if [ -z "$commits" ]; then | |
exit 0 | |
fi |
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
insert_sudo () { zle beginning-of-line; zle -U "sudo " } | |
zle -N insert-sudo insert_sudo | |
bindkey "^[s" insert-sudo |
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
{spawn} = require 'child_process' | |
dev = -> | |
cmd = "coffee" | |
args = ["-c", "-b", "-w", "-o", "app", "coffee"] | |
coffee = spawn cmd, args | |
coffee.stdout.pipe process.stdout | |
coffee.stderr.pipe process.stderr | |
coffee.on "exit", (status) -> | |
console.log "coffee exit with #{status}" |
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
sub level { | |
Irssi::window_find_name("(status)")->command("^window level $_[0]crap"); | |
} | |
# https://www.alien.net.au/irc/irc2numerics.html | |
# /WHOIS | |
Irssi::signal_add_first("event 311", sub { level("-") } ); | |
Irssi::signal_add_last("event 369", sub { level("+") } ); | |
Irssi::signal_add_last("event 318", sub { level("+") } ); |
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
# If there are debug codes, print the offending file names and fail. | |
FILES_PATTERN='\.scala$' | |
FORBIDDEN='println' | |
git diff --cached --name-only | \ | |
grep -E $FILES_PATTERN | \ | |
GREP_COLOR='4;5;37;41' xargs grep --color --with-filename -n $FORBIDDEN && echo 'COMMIT REJECTED Found "$FORBIDDEN" references. Please remove them before commiting' && 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
; TEMP !!!! | |
/def -t'Nagle porywa cie nurt i niesie na wschod!' oxen_kanaly_event = \ | |
/_map_go exit:e | |
;------------------------------------------------------------------------ | |
; ... LISTY ... | | |
;------------------------------------------------------------------------ | |
/set _map_standard_exits=\ | |
n|polnoc|\ | |
s|poludnie|\ |
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
var runFrom = function(step, lastStep, callback) { | |
var cb = step >= lastStep ? callback : function() { | |
runFrom(step + 1, lastStep, callback); | |
}; | |
this['step' + step].call(this, cb); | |
}; | |
runFrom(1, 17, function() { | |
console.log('finally done...'); | |
}); |
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
init 1 | |
for i in `mount | grep sda | grep ext | cut -b 9` ; do mount -o remount,ro /dev/sda$i && zerofree -v /dev/sda$i && mount -o remount,rw /dev/sda$i ; done ; |
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
;; enhance entity name card | |
/def -F -p100 -mregexp -t'^\| A ([a-z]+) (fire|air|water|earth) entity ([a-z]+) with power .+ \|$' x_rw_entity_card_scan=\ | |
/let size=0%;\ | |
/let adjective=0%;\ | |
/if ({P1} =~ 'titchy') /let size=$[size+1]%;\ | |
/elseif ({P1} =~ 'miniscule') /let size=$[size+2]%;\ | |
/elseif ({P1} =~ 'small') /let size=$[size+3]%;\ | |
/elseif ({P1} =~ 'medium') /let size=$[size+4]%;\ | |
/elseif ({P1} =~ 'large') /let size=$[size+5]%;\ | |
/elseif ({P1} =~ 'huge') /let size=$[size+6]%;\ |
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
### Keybase proof | |
I hereby claim: | |
* I am x1a0 on github. | |
* I am x1a0 (https://keybase.io/x1a0) on keybase. | |
* I have a public key whose fingerprint is A1C5 7E23 F214 D0B0 23DD EE5C 7611 A0C8 01E2 2E78 | |
To claim this, I am signing this object: |
OlderNewer