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
gistup |
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
gistup |
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
aptitude::UI ""; | |
aptitude::UI::Styles ""; | |
aptitude::UI::Styles::DownloadProgress ""; | |
aptitude::UI::Styles::DownloadProgress::fg "black"; | |
aptitude::UI::Styles::DownloadProgress::bg "yellow"; | |
aptitude::UI::Styles::Progress ""; | |
aptitude::UI::Styles::Progress::fg "black"; | |
aptitude::UI::Styles::Progress::bg "yellow"; |
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
postgresql: | |
image: quay.io/sameersbn/postgresql:9.4-7 | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS=xxx | |
- DB_NAME=gitlabhq_production | |
volumes: | |
- /var/lib/postgresql | |
redis: |
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
alias lesshi='LESS="-R" LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" less' |
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
<!-- | |
add this to ~/.fonts.conf, inside <fontconfig> (add if file is empty) | |
--> | |
<match target="pattern"> | |
<test name="family"> | |
<string>Inconsolata</string> | |
</test> | |
<edit name="autohint" mode="assign"> | |
<bool>true</bool> |
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
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
# For watching "on demand" (i.e. archived) streams | |
# usage: | |
# mplayer -user-agent 'NSPlayer/7.10.0.3059' $(perl watch.pl http://ics.webcast.uwex.edu/mediasite/Viewer/?peid=1dde05aea2624c69a12db461afb00a6b1d) | |
my @parts = (shift =~ /\?peid=(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/); | |
local $" = '-'; |
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
/usr/bin/perl <<'__END__' -- - plugin-build.xml|dot -Tpng -oplugin-build-deps.png | |
use 5.010; | |
use XML::Twig; | |
say q(digraph test {); | |
$t=XML::Twig->new(); | |
$t->parsefile(shift); | |
$r = $t->root; | |
for ($r->children(q(property))) { | |
if ($n1=$_->{att}{name}) { |
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
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
{ | |
my %hsh = map { ($_ => 1) } qw( some costy hashmap here ); | |
sub has { | |
return $hsh{$_[0]}; | |
} |