Skip to content

Instantly share code, notes, and snippets.

@empjustine
Last active January 4, 2018 03:36
Show Gist options
  • Save empjustine/df695719de898d150d07c56a9a6d4683 to your computer and use it in GitHub Desktop.
Save empjustine/df695719de898d150d07c56a9a6d4683 to your computer and use it in GitHub Desktop.
Shell

Environment "without" environment variables

bash

env -i bash --noprofile --norc

dash

env -i /sbin/busybox sh

#!/bin/bash
# get seconds since epoch
test "x$1" == "x" && date +%s && exit 0
# or convert epoch seconds to date format (see "man date" for options)
EPOCH="$1"
shift
date -d @"$EPOCH" "$@"
printf '%s' '524288' | sudo tee /proc/sys/fs/inotify/max_user_watches

Standard ECMA-48 - Control Functions for Coded Character Sets

https://www.ecma-international.org/publications/standards/Ecma-048.htm

This Ecma publication is also approved as ISO/IEC 6429.

XTerm Control Sequences

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html

DEC Documents

https://vt100.net/docs/

Ben Harris "A collection of escape sequences for terminals that are vaguely compliant with ECMA-48 and friends."

http://bjh21.me.uk/all-escapes/all-escapes.txt

MSDOS ANSI.SYS

https://web.archive.org/web/20060206022229/http://enterprise.aacc.cc.md.us/~rhs/ansi.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment