Based on https://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/#more-5352
Install Homebrew
Install grub
brew install i386-elf-grub
location.search=location.search.replace(/^\?/,"&").replace(/\&(utm_[^=]*)(=[^&]*)?/g,"").replace(/^\&/,"?") |
#Requires -Version 2 | |
# https://stackoverflow.com/a/2068019 | |
Add-Type -AssemblyName System.Drawing | |
$filename = "$psscriptroot\foo.png" | |
$bmp = new-object System.Drawing.Bitmap 250, 61 | |
$font = new-object System.Drawing.Font Consolas, 24 | |
$brushBg = [System.Drawing.Brushes]::Yellow |
apacheconfigtool --lowercasenames --configpath $PWD --useapacheinclude conf/httpd.conf | jq -S '..|[.servername?,.serveralias?]|.[]|strings' |
Based on https://www.pendrivelinux.com/boot-multiple-iso-from-usb-via-grub2-using-linux/#more-5352
Install Homebrew
Install grub
brew install i386-elf-grub
def camel2snake: | |
gsub("(?<x>[A-Z][a-z]+)"; "_"+.x|ascii_downcase)|ltrimstr("_"); |
$ names=(missing older newer);echo '```';for op in -ot -nt;do echo;echo "# a $op b";echo;for a in "${names[@]}";do echo -n \|;for b in "${names[@]}";do echo -n " \`$a $op $b\` = ";test "$a" "$op" "$b";echo -n "$? |";done;echo;done;done
| missing -ot missing
= 1 | missing -ot older
= 0 | missing -ot newer
= 0 |
| older -ot missing
= 1 | older -ot older
= 1 | older -ot newer
= 0 |
| newer -ot missing
= 1 | newer -ot older
= 1 | newer -ot newer
= 1 |
#!/bin/bash | |
set -e | |
set -u | |
Usage () { cat >&2 <<EOF | |
Usage: $0 | |
Convert proftpd.conf to naive JSON version | |
EOF | |
} |
#!/bin/bash | |
set -e | |
set -u | |
top='http://ftp.nhc.noaa.gov/atcf/' | |
folders=( | |
# adv | |
# aid_public | |
# btk | |
# com |
#!/bin/bash | |
set -e | |
set -u | |
Usage () { cat >&2 <<EOF | |
Usage: $0 < /tmp/snowball-xxx/transferred-files | |
Prepare the transferred-files log from 'snowball cp' | |
for easy comparison to 'find . -type f -print'. | |
(Reads from stdin and writes to stdout.) | |
EOF |
pg_major=9 | |
pg_minor=5 | |
alternatives --install /usr/bin/pg_config pgsql-pg_config /usr/pgsql-${pg_major}.${pg_minor}/bin/pg_config ${pg_major}${pg_minor}0 |