- Session 1: Introduction and Principles - https://speakerdeck.com/munetoshi/code-readability-session-1-ver-2-en
- Session 2: Naming - https://speakerdeck.com/munetoshi/code-readability-session-2-ver-2-en
- Session 3: Comments - https://speakerdeck.com/munetoshi/code-readability-session-3-ver-2-en
- Session 4: State - https://speakerdeck.com/munetoshi/code-readability-session-4-ver-2-en
- Session 5: Function - https://speakerdeck.com/munetoshi/code-readability-session-5-ver-2-en
- Session 6: Dependency I - https://speakerdeck.com/munetoshi/code-readability-session-6-ver-2-en
Discover gists
CUDA 12.1.1 toolkit is gonna offer to install Nvidia driver 530 for us. It's from New Feature branch. It's likely to be newer than the default Nvidia driver you would've installed via apt-get (apt would prefer to give you 525, i.e. Production Branch).
If you're confident that you already have a new enough Nvidia driver for CUDA 12.1.1, and you'd like to keep your driver: feel free to skip this "uninstall driver" step.
But if you're not sure, or you know your driver is too old: let's uninstall it. CUDA will install a new driver for us later.
LLDB comes with a great set of commands for powerful debugging.
Your starting point for anything. Type help
to get a list of all commands, plus any user installed ones. Type 'help
for more information on a command. Type help
to get help for a specific option in a command too.
- Go to your Simple Tab Groups settings and save a backup file (Settings>Backup your Simple Tab Groups>Create backup)
- Disable/remove the addon
- Install Sidebery
- Go to Sidebery's settings and save a snapshot (Settings>Snapshots viewer>Create snapshot)
- Save the Python file below
- Edit lines 4 and 5 with the full paths to your Simple Tab Groups backup and Sidebery snapshot
- Run it with
python3 convert_stg_to_sidebery.py
- output saved to wherever you ran the Python file - Import the generated
sidebery-output.json
in Sidebery (Settings>Snapshots viewer>Import snapshot) - Once loaded, click on the imported snapshot in the list and then click
Open window
on the right
In some cases, only these lines will work
for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
rm -rf ~/.config/$product*/eval 2> /dev/null
rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done
But if not, try these
This gist gives instructions to setup a Validating Admission Webhook or Mutating Admission Webhook in Kubernetes.
Heavy credits to
import sys | |
import pip | |
from importlib import import_module | |
from importlib.abc import MetaPathFinder | |
class PipMetaPathFinder(MetaPathFinder): | |
"""A importlib.abc.MetaPathFinder to auto-install missing modules using pip | |
""" | |
def find_spec(fullname, path, target=None): |
// "License": Public Domain | |
// I, Mathias Panzenböck, place this file hereby into the public domain. Use it at your own risk for whatever you like. | |
// In case there are jurisdictions that don't support putting things in the public domain you can also consider it to | |
// be "dual licensed" under the BSD, MIT and Apache licenses, if you want to. This code is trivial anyway. Consider it | |
// an example on how to get the endian conversion functions on different platforms. | |
#ifndef PORTABLE_ENDIAN_H__ | |
#define PORTABLE_ENDIAN_H__ | |
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) |
Proxmox VE 6.x release includes a feature to add custom cloud-init configs. Unfortunately there is poor documentation, so I had to figure this out by adding pieces of information together.
The cloud-init files need to be stored in a snippet. This is not very well documented:
- Go to
Storage View -> Storage -> Add -> Directory
- Give it an ID such as
snippets
, and specify any path on your host such as/snippets
- Under
Content
chooseSnippets
and de-selectDisk image
(optional) - Upload (scp/rsync/whatever) your
user-data, meta-data, network-config
files to your proxmox server in/snippets/snippets/
(the directory should be there if you followed steps 1-3)