Side | field_152631_f | flipTexture |
---|---|---|
XPos | ✔ | ❌ |
XNeg | ❌ | ❌ |
YPos | ❌ | ❌ |
YNeg | ✔ | ✔ |
Zpos | ❌ | ❌ |
ZNeg | ✔ | ❌ |
This file contains 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 sh | |
# Implements: OSC 8 <URL> ST <Link-text> OSC 8 ST | |
# Prints a terminal-clickable hyperlink | |
# See: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda | |
# | |
# @Params | |
# $1: The hyperlink URL | |
# $2: The optional hyperlink text (defaults to URL) | |
# |
This file contains 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 | |
print_basket() { | |
# Print remaining keys (content of basket) | |
for fruit in "${!basket[@]}"; do | |
printf '%d %s\n' "${basket[$fruit]}" "${fruit,,}" | |
done | |
} | |
declare -a all_fruits=( |
This file contains 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 sh | |
# | |
# Modified version of bash mandelbrot from Mecki stackoverflow.com/users/15809 | |
# found at https://stackoverflow.com/a/63749612/1765658 | |
# Avoiding forks and running bc as background task, reducing | |
# execution time, from many hours to less than 10' (on my desktop) | |
# | |
# Modified version for POSIX shell by Léa Gris: | |
# https://gist.github.com/leagris/59e1b7e72462024b278652696f375e71 | |
# Improved to addressing fifos by FDs. |
This file contains 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 sh | |
# Domain name to retrieve ghost host RR from | |
__ARG_DOMAIN=${1:-example.com} | |
# Setup the name or IP of the ghost OVH mutu hosting DNS | |
__ARG_GHOST_NS=${2:-dns200.anycast.me.} | |
old_ip=$( | |
dig +short +norecurs "$__ARG_DOMAIN" "@$__ARG_GHOST_NS" -t A 2>/dev/null |
This file contains 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 | |
# mapfile_assoc_shim.sh | |
# If mapfile does not have a -A associative array mode | |
# then implement it | |
# Usage: | |
# include mapfile_assoc_shim.sh | |
# or | |
# . mapfile_assoc_shim.bash | |
# | |
# Example: |
This file contains 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 | |
IFS=:;if (($#>0))&&[ "${1:0:1}" == - ];then if [ "$1" != -a ];then printf >&2 'Illegal option %s\nUsage: which [-a] args\n' "$1";exit 2;else b=1;fi;shift;fi;read -rd '' -a g < <(printf %s:\\0 "$PATH");while (($# > 0));do f=0;for d in "${g[@]}";do e="$d/$1";while [[ -L $e && "$(ls -l "$e")" =~ -\>\ (.*) ]];do e="${BASH_REMATCH[1]}";done;if [[ -f $e && -x $e ]];then f=1;echo "$d/$1";((b))||break;fi;done;((f))||c=1;shift;done;exit $c |