I hereby claim:
- I am mavinger on github.
- I am maaving (https://keybase.io/maaving) on keybase.
- I have a public key whose fingerprint is DD92 6B60 96EF 61E1 2383 03C7 1DB8 1018 A864 1E39
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
(function () { | |
rcversion = '1.0'; | |
load('underscore.min.js') | |
// NOTES | |
// Basics, wrap the whole thing in a function | |
// Set a version for sanity's sake | |
// Load underscore, a must in any javascript environment |
#!/bin/bash | |
################################################################################ | |
# DEFINE COLORS | |
################################################################################ | |
export LS_OPTS='--color=auto' | |
export COLOR_NC='\e[0m' # No Color | |
export COLOR_WHITE='\e[1;37m' | |
export COLOR_BLACK='\e[0;30m' |
#!/bin/sh | |
export GIT_WORK_TREE="/var/www/server.com/" | |
export GIT_DIR="/var/repos/server.com.git" | |
echo "--> Checking out..." | |
git --work-tree=$GIT_WORK_TREE --git-dir=$GIT_DIR checkout -f | |
echo "--> Installing libraries..." | |
cd "$GIT_WORK_TREE" |
systemLog: | |
destination: file | |
path: "C:\\tools\\mongodb\\log\\mongo.log" | |
logAppend: true | |
storage: | |
dbPath: "C:\\tools\\mongodb\\data\\db" | |
smallFiles: true | |
preallocDataFiles: false | |
journal: | |
enabled: true |
# Borrowed from: http://blogs.msdn.com/b/jasonn/archive/2013/06/11/8594493.aspx | |
function downloadFile($url, $targetFile) { | |
$uri = New-Object "System.Uri" "$url" | |
$request = [System.Net.HttpWebRequest]::Create($uri) | |
$request.set_Timeout(15000) #15 second timeout | |
$response = $request.GetResponse() | |
$totalLength = [System.Math]::Floor($response.get_ContentLength()/1024) | |
$responseStream = $response.GetResponseStream() | |
$targetStream = New-Object -TypeName System.IO.FileStream -ArgumentList $targetFile, Create |
I hereby claim:
To claim this, I am signing this object:
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |