Skip to content

Instantly share code, notes, and snippets.

View nikolareljin's full-sized avatar

Nik Reljin nikolareljin

  • Dow Jones
  • Princeton, NJ
View GitHub Profile

FYI (July 24, 2025): I've been away since July 11, dealing with an emergency move. I'll be back working on all the amazing comments y'all have been putting down, most possibly by the first weekend of August. I appreciate all the contributions everybody has been making and all the time everybody has put to make all of our lives better.

Streaming Whitelists and Blacklists for PiHole

Last Updated On:           July 10, 2025
Last Updated Platform:     Peacock

Table of Contents

import sys
import tempfile
import heapq
from array import array
def int_array_from_file(int_file, buffer_size=4000):
int_array = array("i")
@nikolareljin
nikolareljin / kill_apps_on_port.sh
Last active July 31, 2019 21:03
Kill all apps running on certain port
#!/usr/bin/env bash
# -------------------------------------------------
# Kills all apps running on given port
# Use:
# kill_apps_on_port.sh <port>
# -------------------------------------------------
PORT_NUMBER=$1
echo "Kill all applications running on port ${PORT_NUMBER}"