Before:
function the_thing() {
echo "haha CODE";
}
After:
ssh vm 'cat sourcefile.tar' | pv -s $(ssh vm 'stat -c %s sourcefile.tar') | ssh someserver 'cat >destfile.tar' |
scala> List("Annika", "Backstrom").map({ s: String => s.toUpperCase() }) | |
res12: List[String] = List(ANNIKA, BACKSTROM) | |
scala> List("Annika", "Backstrom").map({ _.toUpperCase() }) | |
res13: List[String] = List(ANNIKA, BACKSTROM) | |
scala> List("Annika", "Backstrom").map({ _.toUpperCase }) | |
res14: List[String] = List(ANNIKA, BACKSTROM) | |
scala> List("Annika", "Backstrom").map { _.toUpperCase } |
Before:
function the_thing() {
echo "haha CODE";
}
After:
#!/usr/bin/env python | |
# | |
# Run this in the background. Poll using netcat: | |
# | |
# $ nc localhost 5005 | |
# | |
# Made for use with GeekTool. http://projects.tynsoe.org/en/geektool/ | |
# |
#!/bin/bash | |
if [ -n "$1" ] ; then | |
pygmentize -O full -f html "$@" | |
else | |
pygmentize -O full -f html -g | |
fi |
/set weechat.look.buffer_notify_default highlight | |
/set weechat.notify.irc.freenode.#wordpress all | |
/set weechat.notify.irc.freenode.#pelican all |
$('<a href="/users/' + $("#js-command-bar-field").data('username') + '/enable_repository_next" class="button minibutton flash-action blue" data-method="post">Enable Repository Next</a>').appendTo(document.body).click() |
# http->https redirect | |
server { | |
listen 207.192.74.235:80; | |
server_name sixohthree.com; | |
include logging.conf; | |
access_log /var/www/sixohthree.com/logs/access_log custom; | |
error_log /var/www/sixohthree.com/logs/error_log error; | |
location / { |
Index: domain_mapping.php | |
=================================================================== | |
--- domain_mapping.php (revision 9545) | |
+++ domain_mapping.php (revision 9553) | |
@@ -515,27 +515,37 @@ | |
} | |
-function domain_mapping_siteurl( $setting ) { | |
- global $wpdb, $current_blog; | |
+function domain_mapping_siteurl( $setting, $blog_id = 0 ) { |
#!/bin/sh | |
# curl https://gist.github.com/raw/4611843/gistfile1.sh > .git/hooks/post-commit && chmod +x .git/hooks/post-commit | |
git diff-tree -p HEAD^ | grep livereload 2>&1 >/dev/null | |
if [ $? -eq 0 ] ; then | |
echo -e "\e[0;31m!!! Don't commit livereload stuff. --amend that commit.\e[0m" | |
fi |