Skip to content

Instantly share code, notes, and snippets.

Dec 2020 ATX! Restoring a VW, setting-up apartment, starting PPG

BA steakknife

Dec 2020 ATX! Restoring a VW, setting-up apartment, starting PPG
View GitHub Profile
steakknife / gist:e419241095f1272ee60f5174f7759867
Last active Sep 13, 2021
Car MP3 SE-020401 Infrared (IR) remote control scan codes
View gist:e419241095f1272ee60f5174f7759867

Infrared (IR) Remote Control Codes

 /                    \
|  CH-    CH     CH+   |
| FFA25D FF629D FFE21D |
|                      |
|  |<<     >>|   |>||  |
| FF22DD FF02FD FFC23D |
View iOS.8.3.txt
UIFont: family Thonburi
UIFont: font Thonburi-Bold
UIFont: font Thonburi
UIFont: font Thonburi-Light
UIFont: family Khmer Sangam MN
UIFont: font KhmerSangamMN
UIFont: family Snell Roundhand
UIFont: font SnellRoundhand-Black
UIFont: font SnellRoundhand-Bold
UIFont: font SnellRoundhand
steakknife / pf.conf
Last active Sep 9, 2021
FreeBSD /etc/pf.conf for AWS
View pf.conf
# FreeBSD /etc/pf.conf for AWS
# installation
# (copy this file as /etc/pf.conf)
# (add pf_enable="YES" to /etc/rc.conf)
# (add net.inet.tcp.tso=0 to /etc/sysctl.conf)
# mkdir -p /etc/pf
# touch /etc/pf/blocked.ips.conf
steakknife / array_slicing_and_compaction.advanced.bash
Last active Aug 20, 2021
Advanced Bash :: Array slicing and compaction in bash
View array_slicing_and_compaction.advanced.bash
# Advanced Bash :: Array slicing and compaction in bash
X=(something 'whatever' "i have more S P A C E S than i can give away. arent you jealous?")
# ${X[@]} the usual whole array
# ${X[@]:index:length} slice from index to index+length-1 inclusive
# ${X[@]::length} slice from 0 to length-1 inclusive
# ${X[@]:index} slice from index to end of array inclusive
steakknife / appnote.txt
Created Sep 19, 2019
appnote.txt from PKZIP 1.1
View appnote.txt
Although PKWARE will attempt to supply current and accurate
information relating to its file formats, algorithms, and the
subject programs, the possibility of error can not be eliminated.
PKWARE therefore expressly disclaims any warranty that the
information contained in the associated materials relating to the
subject programs and/or the format of the files created or
steakknife /
Last active Jul 19, 2021
OpenSSL configure options

Deprecated - Use LibreSSL Portable instead

OpenSSL Configure Options (1.0.1e)

Standard party line

Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...]
                 [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw]
                 [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm]
                 [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR]
steakknife / nanoleaf.rb
Created Apr 29, 2021
Nanoleaf homebrew cask
View nanoleaf.rb
cask "nanoleaf" do
version "0.8.1"
sha256 "51f4026f15ec66392732588a0cfa4e2944a88fb04c3f2691fc2b65ae100e08cc"
url "{version}.dmg",
verified: ""
name "nanoleaf"
desc "A desktop application for controlling your Nanoleaf devices, featuring the new Nanoleaf Screen Mirror feature."
homepage ""
steakknife /
Last active Apr 22, 2021
Checksum one-liners.
# bourne shell functions below take 1 argument, the file_to_hash.
# prints hex digest on stdout
md5() {
perl -MDigest::MD5=md5_hex -le'print md5_hex(<> or die)' "$1"
# ruby -rdigest/md5 -e"puts Digest::MD5.file'/dev/null'"
# python -sBc "import hashlib;print hashlib.md5(open('$1','rb').read()).hexdigest()"
# md5 "$1"|cut -d' ' -f4 # mac
# md5sum "$1"|cut -d' ' -f1 # linux
# openssl md5 "$1" | grep -o '[[:xdigit:]][[:xdigit:]]*$' | cat
steakknife /
Last active Apr 13, 2021
FreeBSD 10.1 sshd (OpenSSH) server setup

Note: Before beginning, take a snapshot of the system and verify out-of-band console access "in case of fire."

  • 0: Be sure sshd is enabled
# add to /etc/rc.conf
  • 1a: Overwrite /etc/ssh/sshd_config with the included file sshd_config, and change Port to something sensible
  • 1b: Overwrite /etc/ssh/ssh_config with the included filessh_config
  • 2: Recreate all ssh host keys (/etc/ssh/ssh_host_*key*)