Skip to content

Instantly share code, notes, and snippets.

View Ziltosh's full-sized avatar
🏠
Working from home

Nicolas Ziltosh

🏠
Working from home
  • Nature et Technologie
  • France / Montpellier
View GitHub Profile
@Ziltosh
Ziltosh / todo.md
Created December 9, 2022 10:37
iTerm secure input blocking

See https://alexwlchan.net/2021/04/secure-input/

Script

#!/usr/bin/env python
"""
If macOS detects that you're typing sensitive data (e.g. a password), it prevents
other apps from reading keystrokes.  This is normally a good thing, but it's mildly
annoying if you use an app like TextExpander, and macOS doesn't notice that it's
no longer using Secure Input.  Then your keyboard shortcuts stop working!
@Ziltosh
Ziltosh / reinstall_watchman.sh
Created November 11, 2022 12:57
[OSX] Repair watchman operation not permitted
watchman shutdown-server && brew uninstall watchman && brew install watchman
@Ziltosh
Ziltosh / restart_coreaudio.sh
Created November 4, 2022 20:20
[OSX] Restart audio service
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'
@Ziltosh
Ziltosh / update_internetbs.sh
Created November 4, 2022 14:49
[OSX] Shell script to update internetbs dynamic hostname with IPV6
#!/bin/bash
IP=$(/sbin/ifconfig en0 | awk '/inet6/{print $2}' | tail -1)
RETOUR=$(curl "https://dyndns.topdns.com/update?hostname=***DOMAIN***&username=***USERNAME***&password=***PASSWORD***&myip=$IP")
echo $RETOUR