Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';Dump your database:
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root databasename
Convert the dump to Postgres syntax using https://github.com/lanyrd/mysql-postgresql-converter:
wget https://raw.github.com/lanyrd/mysql-postgresql-converter/master/db_converter.py
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } |
| # Purge all Varnish cache | |
| varnishadm "ban req.url ~ /" |
| #!/bin/sh | |
| export DEBIAN_FRONTEND="noninteractive" | |
| # command line arguments | |
| if [ $# -gt 0 ]; then | |
| echo "Your command line contains $# arguments" | |
| domain_name="$1" | |
| else | |
| echo "Your command line contains no arguments" | |
| domain_name="emmanuelopio" |
| Run this command to install MG-CLI: | |
| sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb | |
| to start miner (4 cores for BCN) use this command: | |
| minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4 | |
| Feel free to send some of your earnings to me: | |
| BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2".freeze | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "mvbcoding/awslinux" | |
| # Mount shared folder | |
| config.vm.synced_folder ".", "/vagrant/www" |
| --- | |
| ip: "192.168.10.10" | |
| memory: 2048 | |
| cpus: 1 | |
| hostname: pantybay | |
| name: pantybay | |
| provider: virtualbox | |
| authorize: ~/.ssh/id_rsa.pub | |
| keys: | |
| - ~/.ssh/id_rsa |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = '2' | |
| @script = <<SCRIPT | |
| # Variables | |
| db_host=127.0.0.1 | |
| root_passwd=sat | |
| db_name=uprojectdb |