This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
declare -g -- _sudo= | |
declare -ag -- _foldersToRemove=() | |
declare -ag -- _filesToRemove=() | |
trap cleanup SIGINT SIGTERM | |
die () | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
levenshtein () | |
{ | |
local -r -- target=$1 | |
local -r -- given=$2 | |
local -r -- targetLength=${#target} | |
local -r -- givenLength=${#given} | |
local -- alt | |
local -- cost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
prompt_command() { | |
local RETNUM=$? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
bool='^[Tt][Rr][Uu][Ee]|[Ff][Aa][Ll][Ss][Ee]$' | |
digit='^[0-9]+$' | |
width=5 | |
symmetrical=false | |
if [[ -n "$1" ]]; then | |
if [[ "$1" =~ $digit ]]; then | |
width=$(( $1 < 1 ? 1 : $1 )) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl6 | |
use v6; | |
use DBIish; | |
need Service::Service; | |
role AbstractRepository | |
{ | |
has $.table is rw; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tick() { | |
local \ | |
ampm \ | |
calibrate=true \ | |
D2B=({0..1}{0..1}{0..1}{0..1}{0..1}{0..1}) \ | |
hour \ | |
in_cli \ | |
minute \ |