create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
load 'deploy' | |
# ================================================================ | |
# ROLES | |
# ================================================================ | |
role :app, "173.203.86.155:22", {:primary=>true} | |
role :db, "173.203.86.155:22", {:primary=>true} |
mongodump --host localhost --port 27017 --db dbname --out dump_dir_name
mongodump --host localhost --port 27017 --db dbname --collection collectioname --out dump_dir_name
##To restore db mongorestore --host localhost --port 27017 dump_dir_name
#!/bin/bash -e | |
#### | |
# shlog is a bash script that allow you to record a shell session by logging | |
# command history and giving diff of edited files | |
#### | |
# User notes: | |
# - Install: | |
# Load the script using 'source shlog.bash' (add it to your .bashrc | |
# to load it automatically) |
<?php | |
function http_file_get_contents( $url ) { | |
$response = file_get_contents( $url ); | |
return $response; | |
} | |
?> |
<?php | |
class Curl { | |
/** | |
* cURL request method | |
* | |
* @var string | |
*/ | |
protected $_method = 'GET'; |