Skip to content

Instantly share code, notes, and snippets.

View siboehm's full-sized avatar

Simon Boehm siboehm

View GitHub Profile
@siboehm
siboehm / setup.sh
Last active February 25, 2023 18:36
Setting up a sane env on λ-Cloud. Don't try this at home.
#!/usr/bin/env bash
# Nsight Compute Profiler
if [[ ! $(command -v ncu) ]]; then
echo "Open https://developer.nvidia.com/gameworksdownload#?dn=nsight-compute-2022-4-1"
echo "Open chrome://downloads/"
echo "Paste link:"
read -r NSIGHT
wget -O nsight-compute "$NSIGHT"
chmod +x nsight-compute
@siboehm
siboehm / site_search_urls.md
Last active February 6, 2024 15:24
Collection of site search urls

Site-specific search URLs

These work in Firefox and Chrome, where %s is replaced with the search query. For Raycast and Alfred, the %s should be replaced with {query}. For more details also see my blogpost.

How to add

  • Chrome: Settings -> Search engine -> Manage search engines and site search -> Add
  • Firefox: Bookmarks -> Manage Bookmarks -> Add Bookmark, then set the keyword to the desired shortcut

I recommend picking keywords that are easy to memorize, like am=Amazon, an=Anaconda, gi=Github,... and switching to three letters when the two letter abbreviation appears to commonly in a sentence (eg goi=Google images, gom=Google Maps).

@siboehm
siboehm / profiling seml.md
Last active November 28, 2021 09:35
Using `py-spy` to profile SEML cluster runs

Profiling SEML cluster jobs with py-spy

Setup

  1. Copy the profiling.py somewhere into your project.
  2. The code in seml_sweep.py should go into your experiment.py (where your ExperimentWrapper etc is defined).

Running it

Edit your experiment's .yaml file to conveniently turn profiling on and off:

fixed:
	profiling.run_profile: True