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
$ coffee -cwo lib src |
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
# in config/application.rb | |
# source: http://blog.nakedapps.co.nz/post/11306258708/site-down-site-down | |
config.assets.precompile += %w( modernizr.js ) |
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
$ git config --global color.ui 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
sudo cp /usr/local/bin/convert /opt/httpd/usr/local/bin/; | |
sudo cp /usr/local/bin/composite /opt/httpd/usr/local/bin/; | |
sudo cp /usr/local/bin/identify /opt/httpd/usr/local/bin/; | |
sudo cp /usr/local/lib/liblcms.so.1 /opt/httpd/usr/local/lib/; | |
sudo cp /usr/local/lib/libtiff.so.4 /opt/httpd/usr/local/lib/; | |
sudo cp /usr/local/lib/libjasper.so.4 /opt/httpd/usr/local/lib/; | |
sudo cp -Rp /usr/local/lib/ImageMagick-6.7.0 /opt/httpd/usr/local/lib; | |
sudo cp /usr/local/lib/libMagickCore.so.4 /opt/httpd/usr/local/lib/; | |
sudo cp /usr/local/lib/libMagickWand.so.4 /opt/httpd/usr/local/lib/; | |
sudo cp /usr/local/lib/libjbig.so.1 /opt/httpd/usr/local/lib/; |
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
Just append 2>&1 to the command to redirect all ouput to standard out instead of the error stream. | |
Source: http://stackoverflow.com/questions/714740/php-exec-is-failing-silently |
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
# You probably used the html5-boilerplate gem.. | |
# Comment this part at line 348 and it'll start working again. | |
# Option 1: | |
# Rewrite "domain.com/foo -> domain.com/foo/" | |
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$ |
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
# In Rakefile | |
require 'rake/dsl_definition' | |
# In config/environments/production.rb | |
config.serve_static_assets = true | |
Compass.configuration.sass_options={:never_update=>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
https://api.facebook.com/method/fql.query?query=select%20total_count,like_count,comment_count,share_count,click_count%20from%20link_stat%20where%20url='http://hiplikejapie.nl/'&format=json&callback=blah | |
blah([{ | |
total_count: 150, | |
like_count: 110, | |
comment_count: 34, | |
share_count: 6, | |
click_count: 0, | |
}]) |
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
- content_for :javascripts do | |
= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false" | |
= javascript_include_tag "maps" |
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 | |
function register_pt() { | |
register_post_type([...]); | |
// Stop 404's from happening.. | |
flush_rewrite_rules( false ); | |
} | |
add_action( 'init', 'register_pt' ); | |
?> |