UPSTART
sudo vi /etc/init/.conf
add inside:
description "<reponame>"
author "name"
| class SoapClientDebug extends SoapClient | |
| { | |
| public function __doRequest($request, $location, $action, $version, $one_way = NULL) | |
| { | |
| echo $request; | |
| $resp = parent::__doRequest($request, $location, $action, $version); | |
| echo $resp; |
| # if your source is a iso file you have to convert to img first | |
| hdiutil convert -format UDRW -o target.img original.iso | |
| # then you have to figure out your USB device node | |
| diskutil list | |
| # plug in your usb thumb | |
| diskutil list | |
| # you will figure out that a new node is inside the list now, note down its name (eg. /dev/disk2 ) |
UPSTART
sudo vi /etc/init/.conf
add inside:
description "<reponame>"
author "name"
| - copy all db files in your home | |
| cp /var/lib/couchdb/<version>/* /home/username | |
| - copy all files to actual server | |
| scp -r -P <PORT> <username>@<ip>:/home/username . | |
| - copy back to new server | |
| - set permissions | |
| chown couchdb *.couch |
| server { | |
| # set the domain name this rule will work for | |
| server_name tld.domain.ext; | |
| # i force to listen to port 80 | |
| listen 80; | |
| # no root, directly the redirect | |
| rewrite ^ http://www.newdomain.com$request_uri? permanent; | |
| } |
| # remember to download Nginx helper plugin [ http://wordpress.org/extend/plugins/nginx-helper/ ] for wordpress and install it | |
| # create a new website configuration like this | |
| fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; | |
| server { | |
| server_name example.com www.example.com; | |
| access_log /var/www/domain.ext/logs/access.log; |
| # 1 - Use vi/vim/nano to create a file according the domain name | |
| sudo vi /etc/nginx/sites-available/example.com | |
| # 2 - add these lines inside: | |
| server { | |
| server_name example.com www.example.com; | |
| access_log /var/log/nginx/example.com.access.log; | |
| error_log /var/log/nginx/example.com.error.log; |
| # BACKUP | |
| mysqldump -u root -p<pass> <dbname> > <dbname>.sql | |
| # RESTORE | |
| mysql -u root -p<pass> <dbname> < <dbname>.sql |
| CREATE DATABASE dbName; | |
| GRANT ALL PRIVILEGES ON dbName.* TO user@localhost IDENTIFIED BY 'password'; | |
| FLUSH PRIVILEGES; | |
| EXIT; |
| 1- Open your OSX keychain | |
| 2- Click on Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority | |
| 3- Set a readable common name (eg. NameApp DEV o NameApp PROD according the certificate your are creating) | |
| 4- Select Save to disk | |
| 5- Proceed uploading to Apple portal and download the .CER file |