- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
| #!/usr/bin/env bash | |
| # VMware Fusion Latest Version Downloader, Installer, and Updater | |
| # This script automatically finds, downloads, and optionally installs the highest version available | |
| # | |
| # Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f | |
| # | |
| # Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>] | |
| # -y: Skip download confirmation prompt | |
| # -i: Automatically install after download (implies -y) |
| #!/bin/bash | |
| modprobe -r psmouse && modprobe psmouse |
| [Unit] | |
| Description=Restart trackpad after suspend | |
| After=basic.target suspend.target hibernate.target | |
| [Service] | |
| User=root | |
| Environment=DISPLAY=:0 | |
| ExecStart=/usr/bin/restart-trackpad | |
| [Install] |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
| const util = require('util'); | |
| const WebSocket = require('ws'); | |
| const vehicle_id = ''; // as returned by the /vehicles api call | |
| const auth_token = ''; // tokens as used in the REST API | |
| const stream_columns = [ | |
| 'speed', | |
| 'odometer', | |
| 'soc', |
See Keycloak Documentation for more details.
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); |
| # In CPython implementation of Python 3.6, dictionary keeps the insertion order. | |
| # From Python 3.7, this will become a language feature. | |
| # In order to sort a dictionary by key including nested dictionary inside, we can do: | |
| def sort_dict(item: dict): | |
| """ | |
| Sort nested dict | |
| Example: | |
| Input: {'a': 1, 'c': 3, 'b': {'b2': 2, 'b1': 1}} | |
| Output: {'a': 1, 'b': {'b1': 1, 'b2': 2}, 'c': 3} |
| # Gnome 3 - based on https://blog.samalik.com/make-your-gnome-title-bars-smaller/ | |
| .header-bar.default-decoration { | |
| padding-top: 3px; | |
| padding-bottom: 3px; | |
| font-size: 0.8em; | |
| } | |
| .header-bar.default-decoration .button.titlebutton { | |
| padding: 0px; | |
| } |