Want to use Touch ID with sudo but annoyed that the change gets reset every time macOS updates? Here's a hacky solution to fix that!
- Compile
pam-touchid-setup.c
clang -o pam-touchid-setup pam-touchid-setup.c
#!/usr/bin/env ruby | |
if ARGV.size < 1 then | |
puts "Usage: #{$0} <build-dir>" | |
exit | |
end | |
build_dir=ARGV[0] | |
cmake_prefix=File.realpath(`brew --prefix cmake`.strip) | |
cellar_cmake_path=File.dirname(cmake_prefix) |
OUT := getflags | |
SDK := $(shell xcrun --show-sdk-path) | |
all: $(OUT) | |
clean: | |
rm flag_names.h $(OUT) | |
flag_names.h: flag_names.awk | |
awk -f $< "$(SDK)/usr/include/sys/stat.h" > $@ |
#!/bin/bash | |
set -eu | |
javaarch= | |
if which java 2> /dev/null > /dev/null; then | |
javaarch=$(java -version 2>&1 | grep -io "..-Bit" | cut -d- -f1) | |
fi |
#!/bin/bash | |
# WARNING: This script is totally awful and it'll probably blow up if you are unlucky. | |
# You have been warned. | |
# NOTE: This script assumes that you've already created an app folder called "Steam". | |
# Don't forget to give it a name too. | |
cd ~/.local/share/applications |
#!/bin/bash | |
echo -e "\n" "\e[48;5;"{0..7}"m " "\e[0m\n" \ | |
"\e[48;5;"{8..15}"m " "\e[0m" \ | |
"\e[11C" "\e[48;5;"{232..255}"m " "\e[0m\n" | |
for i in {0..30..6}; do | |
echo -n " " | |
for j in {0..180..36}; do | |
for k in {0..5}; do |