Skip to content

Instantly share code, notes, and snippets.

View sunipkm's full-sized avatar
💭
Just a mirror for the Sun :)

Sunip Mukherjee sunipkm

💭
Just a mirror for the Sun :)
View GitHub Profile
@sunipkm
sunipkm / debian12_configuration_script.sh
Last active October 27, 2025 20:57 — forked from cyberpunk042/debian12_configuration_script.sh
TrueNAS Scale 24.04.2 Customization
#!/bin/bash
# Set script to exit on error
set -e
# Enable logging
exec > >(tee -i /var/log/setup-script.log)
exec 2>&1
echo "Starting script execution..."
@sunipkm
sunipkm / hpe_sos_ubuntu.md
Created October 27, 2025 20:55 — forked from yukirii/hpe_sos_ubuntu.md
installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS (Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/)
@sunipkm
sunipkm / eduroam.sh
Last active June 6, 2025 17:14 — forked from AntonFriberg/eduroam.sh
Connect to eduroam on Lund University with NetworkManager
nmcli con add \
type wifi \
con-name "eduroam"
ifname "wlp4s0" \ # Your wifi interface
ssid "eduroam" \
wifi-sec.key-mgmt "wpa-eap" \
802-1x.identity "<YOUR-STUDENT-ID>@lu.se" \ # May also use another university identification
802-1x.password "<YOUR-PASSWORD" \
802-1x.system-ca-certs "yes" \
802-1x.domain-suffix-match "radius.lu.se" \
@sunipkm
sunipkm / rust_mem_profiling.md
Created February 17, 2025 03:46 — forked from HenningTimm/rust_mem_profiling.md
Memory profiling Rust code with heaptrack in 2019
@sunipkm
sunipkm / ffmpeg_tidbits.md
Created October 18, 2024 03:42
FFmpeg Tidbits

Change frame rate (25 FPS to 23.976 FPS)

$ ffmpeg -y -i INPUT -vf "setpts=25025*PTS/24000" -r 23.976 -af atempo=24000/25025 OUTPUT
@sunipkm
sunipkm / git_tidbits.md
Created September 11, 2024 19:35
Git Tidbits

Git Tidbits

Removing files in post after changing .gitignore

$ git rm --cached `git ls-files -i -c --exclude-from=.gitignore`
@sunipkm
sunipkm / wac_bypass.md
Created January 30, 2024 16:02
Windows Account Bypass

In case of forgotten Windows Account Password

  1. Boot into a recovery environment/installer
  2. Open a command prompt
  3. Execute regedit

In regedit

  1. Select HKEY_LOCAL_MACHINE
  2. On the menu bar, select File -> Load Hive
  3. Navigate to <Windows Install Drive>:\Windows\system32\config\ and load SYSTEM
  4. Give it a key name, such as 1234 (this way this key block will live on top)
@sunipkm
sunipkm / py_read_backwards.py
Created January 29, 2024 16:28
Read a file as text line-by-line from the end
# %% Imports
from __future__ import annotations
import os
# %%
class FileBackwards:
"""Read a file line by line from the end.
"""
def __init__(self, fname: str, bufsize: int = 8192):
file = open(fname, 'rb')
@sunipkm
sunipkm / arduino-vscode.md
Created December 15, 2023 20:57
Arduino VS Code Extension Setup

Arduino CLI

Install the CLI using brew:

$ brew install arduino-cli

Add the following package repo and install:

$ arduino-cli config init --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
$ arduino-cli core update-index