I thought I would document my setup, since it's somewhat non-standard but working quite well for me.
- Install major Ruby versions at their latest patch release
- Allow to switch between them seamlessly
- Use chruby
- Encourage bundler usage
ruby -e "require 'openssl'; c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; puts (0...24).map { i = OpenSSL::Random.random_bytes(1).unpack('C').first % c.length; c[i..i] }.join" | |
# Or alternatively to avoid homoglyphs (https://en.wikipedia.org/wiki/Homoglyph) | |
# ruby -e "require 'openssl'; c = '3479AEFHJLNQRTYabdefghijnqrty'; puts (0...24).map { i = OpenSSL::Random.random_bytes(1).unpack('C').first % c.length; c[i..i] }.join" |
3bitwarden.com | |
amsbitwarden.com | |
app-bitwarden.com | |
appbitwarden.com | |
bbitwarden.com | |
bitwarden360.com | |
bitwardenaccount.net | |
bitwarden.app | |
bitwarden-app.com | |
bitwardendamveien.com |
These should all be available on Firefox/Chrome/Edge.
Install oh-my-zsh and some useful plugins
# Install oh-my-zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Updated as of 24 September 2024.
Here are some non-exhaustive practical tips from an occasional macOS user.
!#/usr/bin/sh | |
# List all active connections | |
nmcli connection show --active | |
# Delete any dangling connections that are related to protonvpn | |
# Usually it is `pvpn-ipv6leak-protection` | |
nmcli connection delete pvpn-ipv6leak-protection |
So it was time for a clean install on a larger SSD as my old system became completely unbootable (persistent initramfs uncompression error 😧).
However, I did not back up my GPG credentials 🤦.
I learned that retrieving them from the old system drive via chroot was technically possible but not a straightforward process.
from random import choice, random, randrange | |
# Fastest way to pick either 1 or 3 at random in IPython (IronPython). | |
# Inspired by Christopher's (twitter handle: @shrydar) suggestion | |
# featured in https://youtube.com/watch?v=VC-lbd8mTOs&t=1702s | |
# Tested on Python 3.11.3, Linux x64, AMD Ryzen 7 5800X | |
t = (1, 3) |
""" | |
BSD Zero Clause License | |
Copyright (c) 2023 Wu Tingfeng | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |