-
HaCi http://haci.larsux.de/ - 2015-03
- IPAM only, v4/v6, multiple POPs, uses templates, space visualization
-
GestioIP https://www.gestioip.net/ - 2016-02
| get_latest_release() { | |
| curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
| grep '"tag_name":' | # Get tag line | |
| sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
| } | |
| # Usage | |
| # $ get_latest_release "creationix/nvm" | |
| # v0.31.4 |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
| #!/bin/bash | |
| # NOTE: Brackets are not supported and '$' in values will break the script. | |
| mkdir /etc/nginx/sites-enabled 2> /dev/null | |
| for file in /etc/nginx/sites-available/*.conf | |
| do | |
| TPL=$(cat $file) | |
| for row in $(env) | |
| do |
The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.
I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.
| <?php | |
| // every thing before will be used in every child process | |
| while(true) { | |
| $pid = pcntl_fork(); | |
| if ($pid === -1) { | |
| die('Could not fork process'); | |
| } elseif ($pid) { |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
| #!/bin/bash | |
| # A bash script to create a time machine disk image suitable for | |
| # backups with OS X 10.6 (Snow Leopard) | |
| # This script probably only works for me, so try it at your own peril! | |
| # Use, distribute, and modify as you see fit but leave this header intact. | |
| # (R) sunkid - September 5, 2009 | |
| # | |
| # This will create a time machine ready disk image named with your | |
| # computer's name with a maximum size of 600GB and copy it to | |
| # /Volumes/backup. The image "file" (it's a directory, really) will |