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
## | |
# | |
# setup: | |
# - generate an ssh key to be used as an authentication key with `ssh-keygen` and call it `docker_ssh_rsa` | |
# - make sure your current ssh agent has the identity file added | |
# - $ eval `ssh-agent` | |
# - $ ssh-add docker_ssh_rsa | |
# | |
# build: $ sudo docker build -t <you>/spvssh . | |
# |
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
<?php | |
/* | |
should be in your routes/filters or anywhere else | |
they can be read on boot.. | |
*/ | |
Event::listen('illuminate.query', function($query, $bindings, $time, $name) | |
{ | |
$data = compact('bindings', 'time', 'name'); |
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
## | |
# | |
# setup: | |
# - generate an ssh key to be used as an authentication key with `ssh-keygen` and call it `docker_ssh_rsa` | |
# - make sure your current ssh agent has the identity file added | |
# - $ eval `ssh-agent` | |
# - $ ssh-add docker_ssh_rsa | |
# | |
# build: $ sudo docker build -t <you>/ssh . | |
# |
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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
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
#!/usr/bin/env python | |
### Add this to the server ### | |
#location /nginx_status { | |
# # copied from http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/ | |
# stub_status on; | |
# access_log off; | |
# allow SOME.IP.ADD.RESS; | |
# deny all; |
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
# update | |
sudo yum -y update | |
# install nginx -- the web server to be used with this installation | |
# for virtual host configuration visit https://gist.github.com/Mulkave/6103129 | |
sudo yum install nginx | |
# install php and mysql | |
sudo yum -y install mysql mysql-server php54 php54-cli php54-gd php54-intl php54-mbstring php54-mcrypt php54-mysql php54-pdo php-pear php54-xml php54-xmlrpc |
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
server { | |
server_name [host]; | |
root /var/www/[document_root]; ## <-- Your only path reference. | |
# Enable compression, this will help if you have for instance advagg module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { |
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
Show hidden characters
{ | |
"auto_complete": false, | |
"color_scheme": "Packages/User/Themes/Peacock.tmTheme", | |
"font_face": "Inconsolata", | |
"font_options": | |
[ | |
"subpixel_antialias" | |
], | |
"font_size": 13.0, | |
"highlight_line": true, |
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
# NOTE: Assumes the existence of a conf directory with a php.conf inside if | |
# check https://gist.github.com/Mulkave/6053040 (Mulkave/nginx-php.conf) | |
server { | |
listen 80; | |
server_name [host]; | |
root [document_root]; | |
#charset koi8-r; |
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
# NOTE: make sure the 'include' directive is correct according to your nginx installation | |
# NOTE: make sure the fastcgi_pass is running on the correct socket | |
# might need to change it to http://127.0.0.1:9000 with default php-fpm configuration | |
try_files $uri =404; | |
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_intercept_errors on; | |
include /usr/local/etc/nginx/fastcgi_params; |