Skip to content

Instantly share code, notes, and snippets.

View itsnebulalol's full-sized avatar
👋
Hey there!

Nebula itsnebulalol

👋
Hey there!
View GitHub Profile
@itsnebulalol
itsnebulalol / tokyo-night.css
Created April 2, 2024 21:41
Discord Tokyo Night
/**
* @name Tokyo Night
* @author Nebula
* @authorId 574669003755356162
* @version 1.0.0
* @description Tokyo Night theme from VSCode
*/
.theme-dark {
--header-primary: var(--text-normal);
@itsnebulalol
itsnebulalol / nixos-oracle.md
Created March 6, 2024 22:33
Install NixOS on an Oracle Cloud VM

NixOS on an Oracle Cloud VM

This gist was made for my own reference, but feel free to follow along. You should use your own Nix flake.

Booting NixOS

Since NixOS is not an official image for use on Oracle Cloud VM's, and users have reported that uploading the NixOS image does not work, we will use kexec to boot the installer.

sudo -i
@itsnebulalol
itsnebulalol / nixos-apple.md
Created February 17, 2024 02:52
NixOS install on Apple Silicon with LUKS

NixOS with LUKS on Apple Silicon

This gist was made for my own reference, but feel free to follow along. Just note that not all partitions may be the same, and you should use your own Nix flake.

Partitioning

Prep

sgdisk /dev/nvme0n1 -n 0:0 -s
@itsnebulalol
itsnebulalol / blocklist.txt
Created January 26, 2024 23:37
Block lists
||analyticsengine.s3.amazonaws.com^$important
||affiliationjs.s3.amazonaws.com^$important
||metrics.mzstatic.com^$important
||edge.activity.windows.com^$important
||advice-ads.s3.amazonaws.com^$important
||google-analytics.com^$important
||adservice.google.com^$important
||hotjar.com^$important
||static.hotjar.com^$important
||api-hotjar.com^$important
@itsnebulalol
itsnebulalol / LaViewAPI.md
Last active November 10, 2023 21:17
LaView NVR API (non-Hikvision rebranded)

LaView NVR API

Since there is no documentation on the API for non-Hikvision rebranded LaView NVRs, I decided to figure it out myself.

RTSP

found in Port Configuration under Network settings

rtsp://{user}:{pass}@{ip}:{port}/ch{channel}/{stream}

@itsnebulalol
itsnebulalol / ips.txt
Created August 24, 2023 22:07
Spam IPs I have blocked
183.136.225.5
101.68.211.2
183.136.225.45
183.136.225.44
@itsnebulalol
itsnebulalol / discord.css
Created July 5, 2023 23:13
Discord extra CSS
/* Hide new member badge */
div[class*="newMemberBadge"] {
display: none !important;
}
/* Hide "I'm new to Discord, say hi!" */
[class^=wumpusWrapper] {
display: none;
}
FROM alpine AS base
ENV CONF_ARGS="--disable-shared" \
CMAKE_ARGS="-DBUILD_SHARED_LIBS=0" \
CC="clang" \
CFLAGS="-fPIC" \
CXX="clang++" \
CXXFLAGS="-fPIC" \
LD="ld.lld" \
LDFLAGS="-fuse-ld=/usr/bin/ld.lld -static -static-libgcc -Wl,--allow-multiple-definition -Wl,--no-dynamic-linker -Wl,-static"
RUN apk add --no-cache autoconf automake bash clang15 cmake coreutils gcc g++ git libtool lld m4 make musl musl-dev openssl-dev openssl-libs-static pkgconf && \

Keybase proof

I hereby claim:

  • I am itsnebulalol on github.
  • I am itsnebula (https://keybase.io/itsnebula) on keybase.
  • I have a public key ASDJ6SZavAlCQP95Ox1V06riEUPJmch5AMNUNRxSpKvjugo

To claim this, I am signing this object:

@itsnebulalol
itsnebulalol / sign_frameworks.py
Created August 7, 2022 23:07
Recursively sign frameworks with ldid.
import plistlib
from glob import glob
import os
import subprocess
frameworks_path = "/path/to/frameworks"
cert_path = ""
cert_password = "password"
for fpath in glob(frameworks_path + '/*.framework'):