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 / vivado_2025_install.sh
Created August 19, 2026 23:14
Install Vivado 2025.1 on Ubuntu 26.04
#!/usr/bin/env bash
set -euo pipefail
if [[ $EUID -ne 0 ]]; then
echo "Error: This script must be run as root (use sudo)." 1>&2
exit 1
fi
echo "=== Preparing Ubuntu 26.04 for Vivado 2025.1 Installation ==="

Summary of Horror after 9/11: World of Fear, Cinema of Terror

Edited by Aviva Briefel and Sam J. Miller

Overall Thesis

Horror after 9/11 argues that post-9/11 horror cinema should not be read as a simple allegory in which monsters merely “stand for” terrorists or terrorism. Instead, the collection treats horror as a genre especially suited to exploring the broader cultural atmosphere after September 11: fear, surveillance, torture, xenophobia, nationalism, consumerism, militarized masculinity, and the uneasy relation between real violence and cinematic spectacle.

The book asks why horror continued to flourish after an event that some commentators thought would make fictional horror obsolete. Its answer is that horror became more, not less, relevant because it could process fears that official political and memorial culture often suppressed or sanitized.

@sunipkm
sunipkm / README.md
Last active April 8, 2026 19:55
Migrate EndNote XML exports, with attachments (export all fields, one XML per collection, XML name is collection name, library data folder in the folder with the XML files) to the Zotero SQLite DB file.

Migrate EndNote Library

Steps

  1. Export EndNote collections, one at a time, to XML file named <Collection Name>.xml.
    • Select all items in the collection
    • In EndNote export menu:
      • Save File As: XML
      • Output Style: Show All Fields
      • Check "Export Selected References"
  2. Run the python script with python endnote_to_zotero.py path/to/endnote-xml-and-data path/to/zotero/sqlite
  • Optionally, pass --no-backup to disable backing up the database
@sunipkm
sunipkm / setup-nut-and-netdata-on-ubuntu.md
Created March 5, 2026 20:58 — forked from Jiab77/setup-nut-and-netdata-on-ubuntu.md
In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

Setup nut and netdata on Ubuntu

In this document, I will explain how to setup nut (Network UPS Tools) on Ubuntu 18.04 and 20.04.

It is basically the next chapter of my previous gist, Upgrade nut on Ubuntu 18.04.

I'll only document USB connected UPS and not the other supported connection modes.

Install required dependencies

The Problem

usb0 interface is DOWN.

Solution Part 1

Create a new connection: In /etc/network/interfaces.d/usb0.conf, write

allow-hotplug usb0
iface usb0 inet static
 address 192.168.7.2
@sunipkm
sunipkm / microgpt.py
Created February 23, 2026 20:30 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@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" \