start new:
tmux
start new with session name:
tmux new -s myname
This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)
Sister Document - Restore MySQL from Amazon S3 - read that next
this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc
netstat -anp | grep -w <PORT> | grep ESTABLISHED | wc -l
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz'
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>HTML5 Starter Template</title> | |
<meta name="description" content="Starter Template"> | |
<meta name="author" content="Gregry Pike"> | |
<link rel="stylesheet" href="css/styles.css?v=1.0"> | |
<!--[if lt IE 9]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
# Remote Server | |
useradd www-deploy -c "Deployment User" -d /home/www-deploy -G www-data -m -s /bin/bash | |
sudo su - www-deploy | |
# Localhost | |
ssh-keygen -t rsa | |
# Append your key to the Remote host authorized keys file | |
cat id_rsa.pub >> ~/.ssh/authorized_keys |
<?php | |
namespace Myako\Geographical\Functions; | |
use Doctrine\ORM\Query\AST\Functions\FunctionNode; | |
use Doctrine\ORM\Query\Lexer; | |
/** | |
* "DISTANCE" "(" LatitudeFrom, LongitudetFrom, LatitudeTo, LongitudeTo ")" | |
* |
<?php | |
/** | |
* openssl genrsa -des3 -out server.key 2048 | |
* -- Optioneel (anders: passphrase gebruiken) openssl rsa -in server.key -out server.key.insecure | |
* openssl req -new -key server.key -out server.csr | |
* openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt | |
*/ | |
function EncryptData($source){ |