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
find $(pwd ; echo $(ls)) -name $(echo "*.bar") -maxdepth 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
network=$(airport -s | fzf | cut -b 1-33 | sed -e 's/^ *//' -e 's/ *$//') && networksetup -setairportnetwork en0 $network $(pass wifi/$network) |
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
perl -E '%~=@~=(-japh,japh,j,just,a,another,p,perl,h,hacker),( $_ = @~[ ~-@~ ] )~~( y-hacker-japh-s,s - *(~|j|~|a|~|p|~|h|~) *- ~~ "$~{$+} " -goppie,-say,)' |
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
stale = "! abandoned_branches() { \ | |
for branch in `git branch -r --no-merged | grep -v HEAD`; do \ | |
echo `git show --format='%ci %cr %ae' $branch | head -n 1` $branch; \ | |
done | sort -r | column -t; \ | |
}; abandoned_branches" |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature 'say'; | |
@ARGV or die "Usage:\n\tperl $0 Makefile\nthen:\n\t | dot -Tpng -oout.png\n"; | |
my $dotopts = q{ | |
# rankdir=LR | |
# node [shape=record,width=.1,height=.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
perl -E '$:+=+shift;do{$:-=$_,$@++while$:-$_>=0;say"$@x",$_>=1?"$_€":($_*100,"¢"),if$@;$@=0}for+2,1,.5,.2,.1,.05,.01' 15.43 |
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
perl -E'!+0,$ ,=$",$:+=+shift,=>map{$:-=$_=>push@,=>$_>=!$!?~~qq,$_€,:($_*100.).q.¢.while$:-$_>=$!}2,1,.5,.2,.1,.05,.01;say+0||@,' 1.23 |
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
URL=https://redmine.your-company.com APIKEY=YOURPERSONALAPIKEY MESSAGE="Holiday" HOURS=8.0 ISSUE_ID=issue_id_here LC_ALL=C; \ | |
for weekday in 2015-09-{21..30} 2015-10-{01..04}; do | |
case $((date -jf '%F' $weekday || date -d $weekday) 2>/dev/null | awk '{print $1}') in | |
(Mon|Tue|Wed|Thu|Fri) \ | |
printf "Entering $weekday... " && \ | |
echo '<time_entry> | |
<issue_id>${ISSUE_ID}</issue_id> | |
<hours>${HOURS}</hours> | |
<comments>${MESSAGE}</comments> | |
<spent_on>'${weekday}'</spent_on> |
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
cat <(echo '<style>code {display: inline;padding: 2px;border: none;}</style>') input.html | perl -MHTML::Entities -pe 's{<pre><code>}{<pre>}g; s{</code></pre>}{</pre>}g; decode_entities $_' |
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
# ~/.tmuxinator/fpm.yml | |
name: fpm | |
root: ~/code/agenten/fpm | |
# Optional tmux socket | |
# socket_name: foo | |
# Runs before everything. Use it to start daemons etc. | |
# pre: sudo /etc/rc.d/mysqld start |
OlderNewer