This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #sudo vim /etc/php.ini | |
| max_execution_time = 300 | |
| #sudo vim /etc/php-fpm.d/www.conf | |
| request_terminate_timeout = 300 | |
| #sudo vim /etc/nginx/sites-available/default |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [global] | |
| ApplicationName=whatevermyappnameis | |
| DevToolsEndpoint=git.elasticbeanstalk.us-east-1.amazonaws.com | |
| EnvironmentName=whatevermyenvnameis | |
| Region=us-east-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <!DOCTYPE cross-domain-policy SYSTEM " http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
| <cross-domain-policy> | |
| <allow-access-from domain="app.mysite.com" secure="false" /> | |
| </cross-domain-policy> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # GLOBALS | |
| IP="192.168.10.99" | |
| DOMAIN="myapp.vagrant.local" | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.require_version ">= 1.4.0" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exec { 'apt-get update': | |
| command => '/usr/bin/apt-get update', | |
| } | |
| package { 'nginx': | |
| ensure => present, | |
| require => Exec['apt-get update'], | |
| } | |
| package { 'php5-fpm': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # GLOBALS | |
| IP="192.168.10.01" | |
| DOMAIN="my.domain.local" | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.require_version ">= 1.4.0" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create CSR & key | |
| openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key | |
| # create CSR from existing key | |
| openssl req -out CSR.csr -key privateKey.key -new | |
| # remove passphrase | |
| openssl rsa -in privateKey.pem -out newPrivateKey.pem | |
| # check csr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo /Library/StartupItems/VirtualBox/VirtualBox restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #rm *.wav | |
| for f in *.mp3 | |
| do | |
| mv "$f" "${f// /_}" | |
| echo "Converting $f" | |
| ffmpeg -i $f $f.wav | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host myhostname | |
| HostName www.myhostname.com | |
| User username | |
| IdentityFile "~/.ssh/maikey.pem" | |
| ServerAliveInterval 30 | |
| ServerAliveCountMax 120 |