*Edit /etc/hostname, make the name change, save the file.
*You should also make the same changes in /etc/hosts file
- Run sudo /etc/init.d/hostname restart or sudo service hostname restart
<!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 */ | |
} |
heroku config -s >> .env |
mysql -u USERNAME -p DATABASE -e "select * from TABLE;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' |
# 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){ |
# www.fduran.com | |
# sync (copy) local to remote server directory | |
# take out dry-run after test | |
rsync --dry-run -azvrh -e 'ssh -p 2022' --exclude 'donotcopy' /var/www/ [email protected]:/var/www/ | |
# options: | |
a: archive, preserve metadata | |
z: compression | |
v: verbose |
git config core.fileMode false |