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 (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') | |
$_SERVER['HTTPS'] = 'on'; | |
function isSecure() { | |
return(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443; | |
} | |
$web_site = $_SERVER['HTTP_HOST']; | |
$schema = isSecure() ? 'https://' : 'http://'; | |
$web_site_url = $schema . $web_site; |
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 | |
find $1 -type f | sed -e "s#$1\(.*\)#rm -f \\1#g" | bash | |
find $1 -type f | sed -e "s#$1\(.*\)\/\(.*\)#mkdir -p \\1#g" | bash | |
find $1 -type f | sed -e "s#$1\(.*\)#ln -s $PWD\/fs\1 \1#g" | bash |
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
A taxonomically complete summary of the world's races, as perceived by the cognitively challenged | |
Americans | |
--------- | |
* White Americans | |
* Canadians | |
* Brits | |
* Aussies | |
* Kiwis |
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
Host * | |
ControlPath ~/.ssh/master-%l-%r@%h:%p | |
Compression yes | |
ControlMaster auto | |
ServerAliveInterval 10 | |
ServerAliveCountMax 120 | |
Host blinkenshell | |
HostName ssh.blinkenshell.org | |
User parrott |
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 | |
wp_register_script( 'farbtastic', $this->uri.'/js/lib/farbtastic.js' ); | |
wp_enqueue_script( 'js/lib' ); | |
wp_register_script( 'app', $this->uri.'/js/app.js' ); | |
wp_enqueue_script( 'js' ); | |
wp_register_script( 'panel', $this->uri.'/js/panel.js' ); | |
wp_enqueue_script( '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
<script type="text/javascript" src="js/lib/farbtastic.js"></script> | |
<script type="text/javascript" src="js/app.js"></script> | |
<script type="text/javascript" src="js/panel.js"></script> | |
<script type="text/javascript" src="js/ui.js"></script> | |
<script type="text/javascript" src="js/version.js"></script> | |
<script type="text/javascript" src="kuler/kuler.js"></script> | |
<script type="text/javascript" src="jqm/1.2.0/panel.js"></script> |
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
" The final answer to the Tab Question | |
set colorcolumn=80 | |
set shiftwidth=4 | |
set tabstop=4 | |
set softtabstop=4 | |
set expandtab | |
set list listchars=tab:»·,trail:· | |
function! SwitchTab() | |
setlocal expandtab! |
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
/\(^.\{80}\)\@<=\(.\+\)$ |
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
set colorcolumn=80 |
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
:%s/\s\+$//gc |
NewerOlder