Run this using the following:
curl -L https://raw.github.com/gist/3737938/{FILENAME}.sh | sudo bash -sRun this using the following:
curl -L https://raw.github.com/gist/3737938/{FILENAME}.sh | sudo bash -s| Since I am using Nginx as a web server, I have included the virtual host configuration below as it took me quite a while to understand Nginx setup and how it handles rewrite rules. | |
| Virtual Site config for the Silex Tutorial | |
| server { | |
| listen 80; | |
| server_name silextut.local; | |
| root /mnt/hostnfs/silextut/web; | |
| index index.php; |
| #!/bin/bash | |
| cat "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers | |
| apt-get install -y python-software-properties | |
| add-apt-repository ppa:nginx/stable -y | |
| add-apt-repository ppa:ondrej/php5 -y | |
| apt-get update |
| <div class="modal hide fade" id="confirm-dialog"> | |
| <div class="modal-header"> | |
| <a class="close" data-dismiss="modal">×</a> | |
| <h3>Confirm</h3> | |
| </div> | |
| <div class="modal-body"> | |
| | |
| </div> | |
| <div class="modal-footer"> | |
| <a href="#" class="btn btn-danger">Ok</a> |
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!
I hope it helps you too!
fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup
| GET /products/_mapping?pretty=true | |
| GET /products_multi_tagged/_mapping?pretty=true | |
| POST products_multi_tagged/_search?pretty=true | |
| { | |
| "query": { | |
| "bool": { | |
| "should": [ | |
| { |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| <? | |
| ///////////////////// | |
| // slack2html | |
| // by @levelsio | |
| ///////////////////// | |
| // | |
| ///////////////////// | |
| // WHAT DOES THIS DO? | |
| ///////////////////// | |
| // |
| #!/bin/bash | |
| # Configuration for the script | |
| POSTFIX_CONFIG=/etc/postfix/main.cf | |
| POSTFIX_SASL=/etc/postfix/sasl_passwd | |
| function confirm () { | |
| read -r -p "${1:-Are you sure? [Y/n]} " response | |
| if [[ $response == "" || $response == "y" || $response == "Y" ]]; then | |
| echo 0; |