-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| <?php | |
| //Source: http://forums.laravel.com/viewtopic.php?id=2807 | |
| Route::get('optgroup', function() | |
| { | |
| $eat_options = array( | |
| 'animals' => array( | |
| 'cats', | |
| 'dogs', | |
| 'monkeys', |
| <?php | |
| /* | |
| * Quick 'n Dirty Laravel 5.1 decrypter. | |
| * | |
| * Based directly off the source code at: | |
| * https://github.com/laravel/framework/blob/5.1/src/Illuminate/Encryption/Encrypter.php | |
| * | |
| * Have access to an application key from a .env? | |
| * Have some encrypted data you want to decrypt? | |
| * Well: (new Crypt($key))->decrypt($payload); should have you sorted |
| combine files into ssl.pem | |
| sudo su (login as root) | |
| cd /etc/letsencrypt/live/yourdomain | |
| cat privkey.pem cert.pem > ssl.pem | |
| Forward Secrecy & Diffie Hellman Ephemeral Parameters | |
| cd /etc/ssl/certs | |
| openssl dhparam -out dhparam.pem 4096 | |
| Copy and paste the following into /etc/lighttpd/lighttpd.conf dont forget to change yourdomain to your domain |
| ### /etc/supervisor/conf.d/beanstalkd.conf | |
| [program:beanstalkd] | |
| command=/usr/local/bin/beanstalkd.sh | |
| directory=/home/rails | |
| user=ubuntu | |
| startsecs=10 | |
| autostart=true | |
| autorestart=true | |
| stdout_logfile=/var/log/supervisor/beanstalkd.log |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * Because you want "tree", but cannot find the source code quick enough | |
| * on the web to compile for OS.X or there is no suitable implementation | |
| * on windows. | |
| */ | |
| // set error reporting | |
| error_reporting(E_STRICT | E_ALL); |
| <?php | |
| setup(); | |
| $t = new Tree('top', 'T'); | |
| $t->append(new TreeNode('one', 1)); | |
| $t->append($x = new TreeNode('two', 2)); | |
| $t->append(new TreeNode('three', 3)); | |
| $t->append(new TreeNode('foo', 'foo')); |