Skip to content

Instantly share code, notes, and snippets.

View soncco's full-sized avatar
🏠
Working from home

Braulio Soncco soncco

🏠
Working from home
View GitHub Profile
@soncco
soncco / gist:4392206
Created December 27, 2012 21:34
Drupal Nginx Configuration
server {
server_name www.example.com example.com;
access_log /srv/www/www.example.com/logs/access.log;
error_log /srv/www/www.example.com/logs/error.log;
root /srv/www/www.example.com/public_html;
rewrite ^/([^/])/(.)(/?)$ /$1/index.php?q=$2&$args;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
@soncco
soncco / gist:4392201
Created December 27, 2012 21:33
Drupal Nginx Configuration
server {
server_name www.example.com example.com;
access_log /srv/www/www.example.com/logs/access.log;
error_log /srv/www/www.example.com/logs/error.log;
root /srv/www/www.example.com/public_html;
rewrite ^/([^/])/(.)(/?)$ /$1/index.php?q=$2&$args;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
@soncco
soncco / gist:4392198
Created December 27, 2012 21:33
Drupal Nginx Configuration
server {
server_name www.example.com example.com;
access_log /srv/www/www.example.com/logs/access.log;
error_log /srv/www/www.example.com/logs/error.log;
root /srv/www/www.example.com/public_html;
rewrite ^/([^/])/(.)(/?)$ /$1/index.php?q=$2&$args;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
@soncco
soncco / gist:4355549
Created December 21, 2012 20:23
Responsive Facebook Comments
<style>
.fb-comments, .fb-comments iframe[style], .fb-like-box, .fb-like-box iframe[style] {width: 100% !important;}
.fb-comments span, .fb-comments iframe span[style], .fb-like-box span, .fb-like-box iframe span[style] {width: 100% !important;}
</style>
@soncco
soncco / gist:3616267
Created September 4, 2012 03:35
Show fields in view template
print print_r(array_keys($fields), 1);
@soncco
soncco / gist:3616266
Created September 4, 2012 03:35
Show fields in view template
print print_r(array_keys($fields), 1);