Skip to content

Instantly share code, notes, and snippets.

@amirrajan
amirrajan / demo.md
Last active October 30, 2022 22:22
DragonRuby Game Toolkit - Tech Demo Source Code
the-keeper-iteration-2.mp4
@m-radzikowski
m-radzikowski / script-template.sh
Last active April 25, 2024 18:43
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
function ( a , { t } )
{// t:#s.name.loc
var c = { } , p , v , r , x , s , i = 0 ,
P = "red0purple0blue0cyan0green0lime0yellow0orange020305070110130170190230290310370410430470530590610670710730790830890970unlock0open0release" . split ( 0 ) ,
z = "_..!|1!|2!|3!|or n|d c| com|k c|color_digit|c002_complement|c003_triad_1|c003_triad_2|!d|t d|pr",
Z = z . split ( '|' )
for ( ; v = ( r = t . call ( c ) ) . match ( z ) ; c [ p ] = x , i ++ )
s = Z . indexOf ( v = v [ 0 ] ) ,
s > 13 ? c . ez_prime = + P [ i % 25 + 8 ] :
// Harvest t1 loc's in under 500 symbols
// Syntax: script {t: #s.some_corp.loc }
// Use with targets from ada.fullsec { npc: true }
// By nlight
function(c, a)
{
var _ = (c, p) => { c.forEach(p) }, // loop utility method
r = a.t.call({}), // first call to get method names
k = /d with ([a-z]+):/.exec(r)[1], // extract command key
============================================================
Pakl's guide to a complete tentd and tentd-admin
and Nginx proxy:80 installation.
============================================================
Oct 7, 2012 -- Version 1.2 (adds missing commands for installing nginx)
History
Oct 7, 2012 -- Version 1.1 (adds missing nodejs repository)
Oct 7, 2021 - 1.0 initial release