Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| #BIND=127.0.0.1:9000 | |
| BIND=/tmp/php.socket | |
| USER=www-data | |
| ulimit -v 512000 | |
| PHP_FCGI_CHILDREN=15 | |
| PHP_FCGI_MAX_REQUESTS=50000 | |
| PHP_CGI=/usr/bin/php-cgi | |
| PHP_CGI_NAME=`basename $PHP_CGI` |
| #/bin/sh | |
| total=0; for i in `ps -C php-cgi -o rss=`; do total=$(($total+$i)); done; echo "php-cgi memory usage: $total kb"; |
| #/bin/sh | |
| total=0; for i in `ps -C nginx -o rss=`; do total=$(($total+$i)); done; echo "Nginx memory usage: $total kb"; |
| #/bin/sh | |
| netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 |
| #/bin/sh | |
| netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1|wc -l |
| Ey özünün sırlarına akıl ermeyen; | |
| Suçumuza, duamıza önem vermeyen; | |
| Günahtan sarhoştum, ama dilekten ayık; | |
| Umudumu rahmetine bağlamışım ben. | |
| Büyükse de isyanım, kötülüklerim, | |
| Yüce Tanrı'dan umut kesmiş değilim; | |
| Bugün sarhoş ve harap ölsem de yarın | |
| Rahmete kavuşur elbet kemiklerim. |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| ## IPv6 Tests | |
| http://[::ffff:169.254.169.254] | |
| http://[0:0:0:0:0:ffff:169.254.169.254] | |
| ## AWS | |
| # Amazon Web Services (No Header Required) | |
| # from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
| http://169.254.169.254/latest/meta-data/iam/security-credentials/dummy | |
| http://169.254.169.254/latest/user-data | |
| http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] |
| #!/bin/bash | |
| # | |
| # GoLang cross-compile snippet for Go 1.6+ based loosely on Dave Chaney's cross-compile script: | |
| # http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go | |
| # | |
| # To use: | |
| # | |
| # $ cd ~/path-to/my-awesome-project | |
| # $ go-build-all | |
| # |
| #!/usr/bin/env python2 | |
| # don't forget to `pip install toml` | |
| import json | |
| import sys | |
| import toml | |
| if len(sys.argv) < 3: raise Exception('Usage is `json_to_toml.py input.json output.toml`') | |
| json_file = sys.argv[1] |