Skip to content

Instantly share code, notes, and snippets.

View stemount's full-sized avatar
📺
As seen on TV

Stephen Mount stemount

📺
As seen on TV
View GitHub Profile
@marzvrover
marzvrover / fixSudoTouchID.tool
Last active December 20, 2020 16:24
A simple tool to add Touch ID to sudo
# Write the new file
awk 'NR==2 {print "auth sufficient pam_tid.so"} 1' /etc/pam.d/sudo > /etc/pam.d/sudo.new
# Make a backup of the current file
cp /etc/pam.d/sudo /etc/pam.d/sudo.bak
# Replace the current file with the new file
mv /etc/pam.d/sudo.new /etc/pam.d/sudo
# If you need to restore the backup and do not have
# access to sudo due to the issue. Reboot into recoveryOS
# Mount your data volume
@marcorichetta
marcorichetta / Manjaro.md
Last active December 3, 2022 23:41
Manjaro KDE Installation on Lenovo Ideapad 330S-15ARR

Booting Manjaro

  1. Download latest Manjaro Architect iso
  2. Burn the iso to a usb following the steps from the Manjaro wiki
  3. On Lenovo BIOS
    1. Disable Secure boot
    2. Set USB boot configuration on UEFI only.
    3. Save changes and press F12 to choose from boot menu.
  4. On Manjaro GRUB menu, add the ivrs_ioapic[32]=00:14.0 grub parameter. Source
@longwave
longwave / optimize-pngs.sh
Created March 11, 2014 10:14
Optimize PNG files in place, with pngcrush and optipng
#!/bin/sh
for i in `find . -name "*.png"`; do
pngcrush -e .png2 -rem allb -brute -reduce $i
mv ${i}2 $i
optipng -o7 $i
done