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
# show the actual git branch in command line prompt | |
export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "[%s]") $ ' |
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 /sync "/media/disk/sync" | |
<Directory "/media/disk/sync"> | |
Dav On | |
Allow from all | |
</Directory> | |
# | |
# doesn't work with iWorks for iPad | |
# shame on apple | |
# |
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
.unread #alert_beacon, .unread_generic { background-color: black; } |
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
Request from "fe80::cabc::c8ff:fe05:3967%eth1" using invalid Host: field "atlantis.local" |
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
mkdir src | |
cd src | |
git clone git://github.com/tjfontaine/airprint-generate | |
cd airprint-generate | |
./airprint-generate.py | |
cp *.service /etc/avahi-daemon/services | |
sudo service avahi-daemon restart |
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/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError) | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58:in `from_installed_gems' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:81:in `init_gemspecs' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_path_searcher.rb:13:in `initialize' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in `new' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:841:in `block in searcher' | |
from <internal:prelude>:10:in `synchronize' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:840:in `searcher' | |
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb:479:in `find_files' |
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
<?php query_posts( array( 'post_type' => array( 'g4w_photo', 'post' ) ) ); | |
if (have_posts()) : while(have_posts()) : the_post(); ?> | |
<?php get_template_part('parts/article'); ?> | |
<?php endwhile; else: ?> | |
<?php get_template_part('parts/404'); ?> | |
<?php endif; ?> |
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_dump((bool) "false"); // returns bool(true) |
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
function g4w_feed_request($qv) { | |
if (isset($qv['feed']) && !isset($qv['post_type']) && get_option('g4w_photo_loop') == "true") | |
$qv['post_type'] = array('post', 'g4w_photo'); | |
return $qv; | |
} | |
add_filter('request', 'g4w_feed_request'); |