(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), 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(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| CREATE TABLE accounts( | |
| id serial PRIMARY KEY, | |
| name VARCHAR(256) NOT NULL | |
| ); | |
| CREATE TABLE entries( | |
| id serial PRIMARY KEY, | |
| description VARCHAR(1024) NOT NULL, | |
| amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
| -- Every entry is a credit to one account... |
To remove a submodule you need to:
| #!/bin/bash | |
| # Bash script for setting or clearing touch requirements for | |
| # cryptographic operations the OpenPGP application on a YubiKey 4. | |
| # | |
| # Author: Alessio Di Mauro <[email protected]> | |
| GCA=$(which gpg-connect-agent) | |
| DO=0 | |
| UIF=0 |
| CREATE TABLE accounts( | |
| id serial PRIMARY KEY, | |
| name VARCHAR(256) NOT NULL | |
| ); | |
| CREATE TABLE entries( | |
| id serial PRIMARY KEY, | |
| description VARCHAR(1024) NOT NULL, | |
| amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0), | |
| -- Every entry is a credit to one account... |
| import tensorflow as tf | |
| # Construct the graph | |
| x = tf.Variable(1, name='x') | |
| y = tf.Variable(2, name='y') | |
| sum = tf.assign_add(x, y, name='sum') | |
| # Add operations to save and restore checkpoints | |
| saver = tf.train.Saver() |
| %default total | |
| -- Proofs that a value is divisible my 3 and 5 respectively | |
| IsFizz : (k : Nat) -> Type | |
| IsFizz k = (modNatNZ k 3 SIsNotZ = 0) | |
| IsBuzz : Nat -> Type | |
| IsBuzz k = (modNatNZ k 5 SIsNotZ = 0) | |
| -- The type Fizzbuzz, one can only construct an instance of Fizz if one can provide |
| #!/bin/bash -e | |
| REMOTE=${1:-origin} | |
| ref=$(git rev-parse --symbolic-full-name "$REMOTE/HEAD" 2>/dev/null) || { | |
| git remote set-head "$REMOTE" -a >/dev/null | |
| ref=$(git rev-parse --symbolic-full-name "$REMOTE/HEAD") | |
| } | |
| echo "${ref#refs/remotes/$REMOTE/}" |