This guide is specifically for pseudo-random number generators (PRNGs) written in JavaScript, and tested in Mac OS X.
Homebrew
| package main | |
| import ( | |
| "crypto/x509" | |
| "encoding/pem" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| ) |
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(query_start, clock_timestamp()), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(query_start, clock_timestamp()), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| // It is important to declare your variables. | |
| (function() { | |
| var foo = 'Hello, world!'; | |
| print(foo); //=> Hello, world! | |
| })(); | |
| // Because if you don't, the become global variables. | |
| (function() { |
| #!/bin/sh | |
| # | |
| # Postgresql backup script | |
| # http://www.bitweaver.org/wiki/pg_backup+PostgreSQL+backup+script | |
| # | |
| # Author | |
| # | | |
| # +-- speedboy (speedboy_420 at hotmail dot com) | |
| # +-- spiderr (spiderr at bitweaver dot org) | |
| # +-- flexiondotorg (code at flexion dot org) |
| #!/bin/bash | |
| #------------------------------------------------------------------------------- | |
| # download/unpack componentry for N|Solid into ~/nsolid | |
| #------------------------------------------------------------------------------- | |
| # updates: | |
| # 2016-01-12 upgrade to N|Solid 1.2.0 | |
| # 2015-12-04 upgrade to N|Solid 1.1.1 | |
| # 2015-11-18 upgrade to N|Solid 1.1.0 | |
| # 2015-10-20 first published |
| module.exports = { | |
| /** | |
| * | |
| * Using raw socket.io functionality from a Sails.js controller | |
| * | |
| */ | |
| index: function (req,res) { |