Author: Chris Lattner
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'killall DockHow to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby -
Edit the configuration file:
Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.
There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...
Here we install python3-pip and qrencode so we can generate our secret, I
| ;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn | |
| ;; Feel free to raise github issues in that repo, if you have questions/comments/edits |
- Download Zoom.pkg from https://zoom.us/download
- Extract it using https://www.timdoug.com/unpkg/
- Now you have Zoom/zoom.us.app
- Launch Zoom by
zoom.sh Zoom/zoom.us.app/Contents/MacOS/zoom.us
caveats:
- Zoom will fail to start meeting for the first time. Just launch again.
- Zoom will tell that crash happened, but you should ignore it.
| function password_from_keychain(service) | |
| -- 'service' should be saved in the login keychain | |
| local cmd = "/usr/bin/security 2>&1 >/dev/null find-generic-password -gs '" .. service .. "' | sed -En '/^password: / s,^password: \"(.*)\"$,\\1,p'" | |
| local handle = io.popen(cmd) | |
| local result = handle:read("*a") | |
| handle:close() | |
| return (result:gsub("^%s*(.-)%s*$", "%1")) | |
| end |
