diff --git a/docs/2023-06-25-useful-tools.html b/docs/2023-06-25-useful-tools.html index f03bcf7..ef16372 100644 --- a/docs/2023-06-25-useful-tools.html +++ b/docs/2023-06-25-useful-tools.html @@ -568,11 +568,6 @@ >https://www.xnview.com/en/xnviewmp/ -
  • - https://github.com/ahrm/sioyek -
  • macOS

    @@ -638,6 +633,11 @@ >https://github.com/zed-industries/zed +
  • + https://sourceforge.net/projects/skim-app/ +
  • Memory

    Development

    @@ -1165,320 +1170,6 @@
  • Docker Desktop
  • Any JetBrains IDE beside DataGrip
  • -
    -

    Misc

    - -
    -

    Don't enable plugin git in ohmyzsh.

    -

    Edit ~/.ssh/config

    -
    Host *
    -    IdentitiesOnly yes
    -    UseKeychain yes
    -
    -

    Thanks:

    - -
    -

    macOS

    - -
    -

    Never sleep:

    -
    -
    -caffeinate -u -t 3600
    -caffeinate -i
    -
    -

    Use Touch ID in Terminal:

    -
    -
    sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
    -
    -# Uncomment last line
    -sudo nano /etc/pam.d/sudo_local
    -
    -

    Hide Developer in Spotlight:

    -
    -
    cd /Applications
    -touch Xcode.app
    -
    -# Xcode mini version
    -xcode-select --install
    -
    -

    Reset launchpad:

    -
    -
    defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
    -
    -

    Reduce padding in menu bar (Log out then log in to apply):

    -
    -
    -defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6
    -defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
    -
    -

    Tweak Finder:

    -
    -
    # Use list view
    -defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
    -# Show path bar
    -defaults write com.apple.finder ShowPathbar -bool true
    -# Show status bar
    -defaults write com.apple.finder ShowStatusBar -bool true
    -# Show filename extensions
    -defaults write NSGlobalDomain AppleShowAllExtensions -bool true
    -# Keep folders on top when sorting by name
    -defaults write com.apple.finder _FXSortFoldersFirst -bool true
    -
    -killall Finder
    -
    -

    Disable IPv6:

    -
    -
    -sudo networksetup -listallnetworkservices
    -sudo networksetup -setv6off Wi-Fi
    -
    -

    Clean up leftover data:

    -
    -
    -/Library/Application Support
    -/Library/LaunchAgents
    -/Library/LaunchDaemons
    -/Library/Preferences
    -/Users/Shared
    -~/Library/Application Support
    -~/Library/Fonts (Removed)
    -~/Library/LaunchAgents
    -~/Library/Preferences
    -
    -

    Clean up leftover shell:

    -
    -
    -/etc/bashrc
    -/etc/profile
    -/etc/zshrc
    -/etc/paths.d
    -
    -

    Clean up clipboard:

    -
    -
    pbcopy < /dev/null
    -
    -

    - Disable Smart zoom in - Track pad settings to make right click instant -

    -

    Fix OpenVPN Client 3

    -
    -
    -sudo launchctl unload -w /Library/LaunchDaemons/org.openvpn.client.plist
    -sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist
    -
    -

    Bluetooth stutter:

    -
    -
    -sudo rm /Library/Preferences/com.apple.Bluetooth.plist
    -sudo pkill bluetoothd
    -
    -

    Thanks:

    - -
    -

    Firefox

    - -
    -

    about:config:

    - -

    Thanks:

    -
    Feel free to ask me via diff --git a/docs/2023-07-01-pastebin.html b/docs/2023-07-01-pastebin.html index ef6e85b..9a0f426 100644 --- a/docs/2023-07-01-pastebin.html +++ b/docs/2023-07-01-pastebin.html @@ -55,6 +55,280 @@ >

    Just a place to throw away some text.

    +
    +

    macOS

    + +
    +

    Never sleep:

    +
    +
    +caffeinate -u -t 3600
    +caffeinate -i
    +
    +

    Use Touch ID in Terminal:

    +
    +
    sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local
    +
    +# Uncomment last line
    +sudo nano /etc/pam.d/sudo_local
    +
    +

    Hide Developer in Spotlight:

    +
    +
    cd /Applications
    +touch Xcode.app
    +
    +# Xcode mini version
    +xcode-select --install
    +
    +

    Reset launchpad:

    +
    +
    defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock
    +
    +

    Reduce padding in menu bar (Log out then log in to apply):

    +
    +
    +defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6
    +defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6
    +
    +

    Tweak Finder:

    +
    +
    # Use list view
    +defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
    +# Show path bar
    +defaults write com.apple.finder ShowPathbar -bool true
    +# Show status bar
    +defaults write com.apple.finder ShowStatusBar -bool true
    +# Show filename extensions
    +defaults write NSGlobalDomain AppleShowAllExtensions -bool true
    +# Keep folders on top when sorting by name
    +defaults write com.apple.finder _FXSortFoldersFirst -bool true
    +
    +killall Finder
    +
    +

    Disable IPv6:

    +
    +
    +sudo networksetup -listallnetworkservices
    +sudo networksetup -setv6off Wi-Fi
    +
    +

    Clean up leftover data:

    +
    +
    +/Library/Application Support
    +/Library/LaunchAgents
    +/Library/LaunchDaemons
    +/Library/Preferences
    +/Users/Shared
    +~/Library/Application Support
    +~/Library/Fonts (Removed)
    +~/Library/LaunchAgents
    +~/Library/Preferences
    +
    +

    Clean up leftover shell:

    +
    +
    +/etc/bashrc
    +/etc/profile
    +/etc/zshrc
    +/etc/paths.d
    +
    +

    Clean up clipboard:

    +
    +
    pbcopy < /dev/null
    +
    +

    + Disable Smart zoom in + Track pad settings to make right click instant +

    +

    Fix OpenVPN Client 3

    +
    +
    +sudo launchctl unload -w /Library/LaunchDaemons/org.openvpn.client.plist
    +sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist
    +
    +

    Bluetooth stutter:

    +
    +
    +sudo rm /Library/Preferences/com.apple.Bluetooth.plist
    +sudo pkill bluetoothd
    +
    +

    Thanks:

    + +
    +

    Firefox

    + +
    +

    about:config:

    + +

    Thanks:

    +

    .gitignore

    use: github
    +

    Edit ~/.ssh/config

    +
    Host *
    +    IdentitiesOnly yes
    +    UseKeychain yes
    +
    +

    Thanks:

    + +
    +

    git clean up

    diff --git a/posts/2023-06-25-useful-tools.md b/posts/2023-06-25-useful-tools.md index 3f94d85..5dc9f8f 100644 --- a/posts/2023-06-25-useful-tools.md +++ b/posts/2023-06-25-useful-tools.md @@ -109,7 +109,6 @@ For fun - https://github.com/alacritty/alacritty - https://www.xnview.com/en/xnviewmp/ -- https://github.com/ahrm/sioyek #### macOS @@ -124,6 +123,7 @@ For fun - https://github.com/crystalidea/macs-fan-control - https://github.com/jordanbaird/Ice - https://github.com/zed-industries/zed +- https://sourceforge.net/projects/skim-app/ ~~Memory~~ @@ -137,6 +137,7 @@ For fun - https://github.com/ganeshrvel/openmtp - https://github.com/CodeEditApp/CodeEdit - https://github.com/Ranchero-Software/NetNewsWire +- https://github.com/ahrm/sioyek ## Development @@ -262,175 +263,3 @@ Don't install: - Sourcegraph - Docker Desktop - Any JetBrains IDE beside DataGrip - -## Misc - -Don't enable plugin `git` in ohmyzsh. - -Edit `~/.ssh/config` - -```ssh -Host * - IdentitiesOnly yes - UseKeychain yes -``` - -Thanks: - -- [OpenSSH client side key management for better privacy and security](https://tim.siosm.fr/blog/2023/01/13/openssh-key-management/) -- [Git keeps asking me for my ssh key passphrase](https://stackoverflow.com/a/41576222) - - [OpenSSH updates in macOS 10.12.2](https://developer.apple.com/library/archive/technotes/tn2449/_index.html) - -### macOS - -Never sleep: - -```sh -caffeinate -u -t 3600 -caffeinate -i -``` - -Use Touch ID in Terminal: - -```sh -sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local - -# Uncomment last line -sudo nano /etc/pam.d/sudo_local -``` - -Hide Developer in Spotlight: - -```sh -cd /Applications -touch Xcode.app - -# Xcode mini version -xcode-select --install -``` - -Reset launchpad: - -```sh -defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock -``` - -Reduce padding in menu bar (Log out then log in to apply): - -```sh -defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6 -defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6 -``` - -Tweak Finder: - -```sh -# Use list view -defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" -# Show path bar -defaults write com.apple.finder ShowPathbar -bool true -# Show status bar -defaults write com.apple.finder ShowStatusBar -bool true -# Show filename extensions -defaults write NSGlobalDomain AppleShowAllExtensions -bool true -# Keep folders on top when sorting by name -defaults write com.apple.finder _FXSortFoldersFirst -bool true - -killall Finder -``` - -Disable IPv6: - -```sh -sudo networksetup -listallnetworkservices -sudo networksetup -setv6off Wi-Fi -``` - -Clean up leftover data: - -```txt -/Library/Application Support -/Library/LaunchAgents -/Library/LaunchDaemons -/Library/Preferences -/Users/Shared -~/Library/Application Support -~/Library/Fonts (Removed) -~/Library/LaunchAgents -~/Library/Preferences -``` - -Clean up leftover shell: - -```txt -/etc/bashrc -/etc/profile -/etc/zshrc -/etc/paths.d -``` - -Clean up clipboard: - -```sh -pbcopy < /dev/null -``` - -[Disable **Smart zoom** in **Track pad** settings to make right click instant](https://mastodon.online/@nikitonsky/112220593113484602) - -Fix OpenVPN Client 3 - -```sh -sudo launchctl unload -w /Library/LaunchDaemons/org.openvpn.client.plist -sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist -``` - -Bluetooth stutter: - -```sh -sudo rm /Library/Preferences/com.apple.Bluetooth.plist -sudo pkill bluetoothd -``` - -Thanks: - -- [Can Touch ID on Mac authenticate sudo in Terminal?](https://apple.stackexchange.com/a/466029) -- [Native fix for applications hiding under the MacBook Pro notch](https://flaky.build/native-fix-for-applications-hiding-under-the-macbook-pro-notch) - - [Can the spacing of menu bar apps be modified in macOS Big Sur and later?](https://apple.stackexchange.com/q/406316) -- [macOS: How to Disable IPv6](https://appletoolbox.com/macos-how-to-disable-ipv6/) -- [How to fully uninstall Logitech G HUB on macOS via terminal/command line](https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116) -- [Hardening macOS](https://www.bejarano.io/hardening-macos/) - - https://github.com/drduh/macOS-Security-and-Privacy-Guide -- [Mac Setup](https://mac.install.guide/mac-setup/) -- https://github.com/OpenVPN/openvpn3/issues/243 -- https://stackoverflow.com/q/15872666 -- [Reclaiming storage/space from 'System Data' in macOS: A tutorial on understanding the System Data usage](http://blog.greggant.com/posts/2022/04/10/reclaiming-space-from-system-data-in-macos.html) -- [Upgrading Homebrew and avoiding the failed to verify attestation error](https://til.simonwillison.net/homebrew/no-verify-attestations) - -### Firefox - -`about:config`: - -- Disable unused features: - - `extensions.pocket.enabled`: false - - `identity.fxaccounts.enabled`: false - - `reader.parse-on-load.enabled`: false - -- Good settings: - - `media.videocontrols.picture-in-picture.video-toggle.always-show`: true - - `network.IDN_show_punycode`: true - - `browser.tabs.insertAfterCurrent`: true - -- Encrypted Client Hello (ECH): - - `network.dns.echconfig.enabled`: true - - `network.dns.use_https_rr_as_altsvc`: true - -- Experiment - - `image.jxl.enabled`: true - -Thanks: - -- [My list of useful command line tools](https://boyter.org/posts/my-list-of-useful-command-line-tools/) -- [Useful Customizations for Firefox](http://www.quippd.com/firefox/wiki/useful-customizations/) -- [Encrypted Client Hello: the future of ESNI in Firefox](https://blog.mozilla.org/security/2021/01/07/encrypted-client-hello-the-future-of-esni-in-firefox/) -- [Phishing with Unicode Domains](https://www.xudongz.com/blog/2017/idn-phishing/) -- https://sizeof.cat/links/ diff --git a/posts/2023-07-01-pastebin.md b/posts/2023-07-01-pastebin.md index 09ed540..f32e2ea 100644 --- a/posts/2023-07-01-pastebin.md +++ b/posts/2023-07-01-pastebin.md @@ -2,6 +2,160 @@ Just a place to throw away some text. +## macOS + +Never sleep: + +```sh +caffeinate -u -t 3600 +caffeinate -i +``` + +Use Touch ID in Terminal: + +```sh +sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local + +# Uncomment last line +sudo nano /etc/pam.d/sudo_local +``` + +Hide Developer in Spotlight: + +```sh +cd /Applications +touch Xcode.app + +# Xcode mini version +xcode-select --install +``` + +Reset launchpad: + +```sh +defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock +``` + +Reduce padding in menu bar (Log out then log in to apply): + +```sh +defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 6 +defaults -currentHost write -globalDomain NSStatusItemSpacing -int 6 +``` + +Tweak Finder: + +```sh +# Use list view +defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv" +# Show path bar +defaults write com.apple.finder ShowPathbar -bool true +# Show status bar +defaults write com.apple.finder ShowStatusBar -bool true +# Show filename extensions +defaults write NSGlobalDomain AppleShowAllExtensions -bool true +# Keep folders on top when sorting by name +defaults write com.apple.finder _FXSortFoldersFirst -bool true + +killall Finder +``` + +Disable IPv6: + +```sh +sudo networksetup -listallnetworkservices +sudo networksetup -setv6off Wi-Fi +``` + +Clean up leftover data: + +```txt +/Library/Application Support +/Library/LaunchAgents +/Library/LaunchDaemons +/Library/Preferences +/Users/Shared +~/Library/Application Support +~/Library/Fonts (Removed) +~/Library/LaunchAgents +~/Library/Preferences +``` + +Clean up leftover shell: + +```txt +/etc/bashrc +/etc/profile +/etc/zshrc +/etc/paths.d +``` + +Clean up clipboard: + +```sh +pbcopy < /dev/null +``` + +[Disable **Smart zoom** in **Track pad** settings to make right click instant](https://mastodon.online/@nikitonsky/112220593113484602) + +Fix OpenVPN Client 3 + +```sh +sudo launchctl unload -w /Library/LaunchDaemons/org.openvpn.client.plist +sudo launchctl load -w /Library/LaunchDaemons/org.openvpn.client.plist +``` + +Bluetooth stutter: + +```sh +sudo rm /Library/Preferences/com.apple.Bluetooth.plist +sudo pkill bluetoothd +``` + +Thanks: + +- [Can Touch ID on Mac authenticate sudo in Terminal?](https://apple.stackexchange.com/a/466029) +- [Native fix for applications hiding under the MacBook Pro notch](https://flaky.build/native-fix-for-applications-hiding-under-the-macbook-pro-notch) + - [Can the spacing of menu bar apps be modified in macOS Big Sur and later?](https://apple.stackexchange.com/q/406316) +- [macOS: How to Disable IPv6](https://appletoolbox.com/macos-how-to-disable-ipv6/) +- [How to fully uninstall Logitech G HUB on macOS via terminal/command line](https://gist.github.com/timotgl/f3d8c49ad582ec1af8ff01143465e116) +- [Hardening macOS](https://www.bejarano.io/hardening-macos/) + - https://github.com/drduh/macOS-Security-and-Privacy-Guide +- [Mac Setup](https://mac.install.guide/mac-setup/) +- https://github.com/OpenVPN/openvpn3/issues/243 +- https://stackoverflow.com/q/15872666 +- [Reclaiming storage/space from 'System Data' in macOS: A tutorial on understanding the System Data usage](http://blog.greggant.com/posts/2022/04/10/reclaiming-space-from-system-data-in-macos.html) +- [Upgrading Homebrew and avoiding the failed to verify attestation error](https://til.simonwillison.net/homebrew/no-verify-attestations) + +## Firefox + +`about:config`: + +- Disable unused features: + - `extensions.pocket.enabled`: false + - `identity.fxaccounts.enabled`: false + - `reader.parse-on-load.enabled`: false + +- Good settings: + - `media.videocontrols.picture-in-picture.video-toggle.always-show`: true + - `network.IDN_show_punycode`: true + - `browser.tabs.insertAfterCurrent`: true + +- Encrypted Client Hello (ECH): + - `network.dns.echconfig.enabled`: true + - `network.dns.use_https_rr_as_altsvc`: true + +- Experiment + - `image.jxl.enabled`: true + +Thanks: + +- [My list of useful command line tools](https://boyter.org/posts/my-list-of-useful-command-line-tools/) +- [Useful Customizations for Firefox](http://www.quippd.com/firefox/wiki/useful-customizations/) +- [Encrypted Client Hello: the future of ESNI in Firefox](https://blog.mozilla.org/security/2021/01/07/encrypted-client-hello-the-future-of-esni-in-firefox/) +- [Phishing with Unicode Domains](https://www.xudongz.com/blog/2017/idn-phishing/) +- https://sizeof.cat/links/ + ## `.gitignore` ```txt @@ -231,7 +385,23 @@ changelog: use: github ``` -## Git clean up +## ssh config + +Edit `~/.ssh/config` + +```ssh +Host * + IdentitiesOnly yes + UseKeychain yes +``` + +Thanks: + +- [OpenSSH client side key management for better privacy and security](https://tim.siosm.fr/blog/2023/01/13/openssh-key-management/) +- [Git keeps asking me for my ssh key passphrase](https://stackoverflow.com/a/41576222) + - [OpenSSH updates in macOS 10.12.2](https://developer.apple.com/library/archive/technotes/tn2449/_index.html) + +## git clean up ```sh # Delete untracked