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
### Password Protect /administrator area | |
location ~ /administrator/.* { | |
auth_basic "Restricted"; | |
auth_basic_user_file /var/www/prod.pac.cr/passwd; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini | |
# With php5-cgi alone: | |
#fastcgi_pass 127.0.0.1:9000; | |
# With php5-fpm: |
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
server { | |
listen 443 spdy; | |
listen 80; | |
server_name foo.org www.foo.org; | |
root /home/site/public; | |
#if ($request_method !~ "^(GET|HEAD|POST)$" ) { return 444; } | |
if ($https != 'on') { return 301 https://www.foo.org$request_uri; } | |
if ($host = "foo.org") { return 301 https://www.foo.org$request_uri; } |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjJAhl1l23ty9oLDhBbYDWBCaWivycC2vEueriluFwD9JrglN4I1W0LJ9HLIp1z07dhCwT1eaeZEp7Xq5gMyN0q//wo4vguBDFggwA1MLA9H/kKUg2sFkZRpIsbUaz4VKQ6tZ5KHrQEbrIYdZ3kxdEAjncMj1HVChOfz2Gy6p1qhGF9jtsBj41Yb2FXG+HV+Sw3kyfaKytHsrgBqY3qhUM0uixqPn2/a6ozW0Uxt+jMrq1wqsOU3OyZHF+MiNAQcfOQvcS2N9Tu3UM+5t1wpiIri/1qEmIjgnkB3F2rOUIw3iNji/aHT90srodwo9b0sZFg87HJkt6GYqCbiw9Mk1h josh.beauregard@knectar.com |
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
location = /Content/images/ESG_Logo_280x50.png { | |
log_not_found off; | |
access_log off; | |
error_page 404 =200 /sites/all/themes/foo/logo.png; | |
} | |
location / { | |
error_page 404 index.php | |
} |
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
servers = [ | |
{"release_server"=> | |
{ | |
"name"=>"foo", | |
} | |
}, | |
{"release_server"=> | |
{ | |
"name"=>"bar", |
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
#!/bin/bash | |
mkdir $1 | |
cd $1 | |
split -l $2 ../$0 $1 | |
find . -type f -exec mv '{}' '{}'.csv \; | |
cd .. |
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
"general vim rc settings | |
set term=xterm-color | |
set smartcase " match 'word' case-insensitive and 'Word' case-sensitive | |
set showmatch " shows matching parenthesis, bracket, or brace | |
set showcmd " show commands while they're being typed | |
set incsearch " searches as you type | |
syntax on " syntax highlighing | |
set background=dark " adapt colors for background | |
:colorscheme desert | |
set vb t_vb= |
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.df !git diff --no-prefix && git diff --staged --no-prefix | |
alias.clear reset --hard | |
alias.st status | |
alias.lg log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
alias.co checkout | |
alias.con checkout -b | |
alias.ci commit | |
alias.br branch | |
alias.ls branch -a |
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
//if (module_exists("stage_file_proxy")) $conf['stage_file_proxy_origin'] = "http://www.url.com"; | |
// Disable (page) caching | |
$conf['cache'] = 0; | |
// Output errors to screen (and log) | |
$conf['error_level'] = 1; | |
// Disable aggregation of js and css | |
$conf['preprocess_js'] = FALSE; |
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 theme_menu_link($variables) { | |
$element = $variables['element']; | |
//changes | |
$element['#attributes']['id'] = 'mlink-' . $element['#original_link']['mlid']; | |
// standard output; | |
$sub_menu = ''; | |
if ($element['#below']) { | |
$sub_menu = drupal_render($element['#below']); |
OlderNewer