Skip to content

Instantly share code, notes, and snippets.

View bgub's full-sized avatar
💻
Improving the web

Ben Gubler bgub

💻
Improving the web
View GitHub Profile
@oca159
oca159 / keymap.json
Last active December 7, 2025 19:45
zed keymap.json with same lazyvim keymaps
[
// Terminal
{
"context": "Workspace",
"bindings": {
"ctrl-/": "workspace::ToggleBottomDock"
}
},
// Window's navigation
{
@WellDone2094
WellDone2094 / ThemeProvider.tsx
Last active December 11, 2025 08:43
Tan Stack Start Theme provider
'use client';
/*
This file is adapted from next-themes to work with tanstack start.
next-themes can be found at https://github.com/pacocoursey/next-themes under the MIT license.
*/
import * as React from 'react';
interface ValueObject {
@bgub
bgub / accelerate_config.yaml
Last active November 8, 2023 01:50
Rebuilding Alpaca with the Hugging Face Trainer Class (see https://bengubler.com/posts/rebuilding-alpaca-huggingface-trainer)
compute_environment: LOCAL_MACHINE
deepspeed_config: {}
distributed_type: 'NO'
downcast_bf16: 'no'
machine_rank: 0
main_process_ip: null
main_process_port: null
main_training_function: main
mixed_precision: 'no'
num_machines: 1

Connect via SSH to a Slurm compute job that runs as Enroot container

Being able to SSH directly into a compute job has the advantage of using all remote development tools such as using your IDE's debugger also for GPU jobs (VSCode, PyCharm, ...).

  • Slurm: Scheduling system that many HPC clusters use
  • Enroot: Container system like Docker for NVIDIA GPUs

General problem:

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active December 12, 2025 01:10
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system

Connect via SSH to a Slurm compute job that runs as Enroot container

Being able to SSH directly into a compute job has the advantage of using all remote development tools such as using your IDE's debugger also for GPU jobs (VSCode, PyCharm, ...).

  • Slurm: Scheduling system that many HPC clusters use
  • Enroot: Container system like Docker for NVIDIA GPUs

General problem:

@rom1504
rom1504 / distributed_dalle2_laion.md
Last active September 4, 2025 21:14
distributed dalle2 laion
@miguelmota
miguelmota / external_link_arrow.txt
Last active November 25, 2025 17:04
Unicode UTF-8 external link arrow symbol (closest thing to it)
@eh8
eh8 / README.md
Last active December 13, 2020 06:36
macOS Big Chungus

From r/unixporn

macOS Big Chungus


Find the official macOS wallpapers complied in a neat Google Photos album.

This setup relies on a few GNOME shell extensions, all of which are available from the AUR.

@bgub
bgub / .bashrc
Last active November 28, 2019 04:46
NiftyBash: customize terminal prompt to show package.json version, git branch, and commit status (this is the end of my `.bashrc`)
COLOR_RED="\033[0;31m"
COLOR_YELLOW="\033[0;33m"
COLOR_GREEN="\033[0;32m"
COLOR_OCHRE="\033[38;5;95m"
COLOR_BLUE="\033[0;34m"
COLOR_WHITE="\033[0;37m"
COLOR_RESET="\033[0m"
function git_color() {
local git_status="$(git status 2>/dev/null)"