Skip to content

Instantly share code, notes, and snippets.

@leonewt0n
leonewt0n / ytadblock.js
Created January 14, 2025 09:13 — forked from 4v3ngR/ytadblock.js
Block youtube ads in Safari with userscripts
// ==UserScript==
// @name Youtube adblock
// @namespace http://tampermonkey.net/
// @version 0.2
// @description enough with the ads!
// @author 4v3ngR
// @match https://*.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @run-at document-start
@leonewt0n
leonewt0n / gist:9cd70a075b9f9edaeb6baedbedd73013
Created October 15, 2024 07:02
Sunshine prerelease log
[2024-10-14 23:59:08.343]: Info: Sunshine version: v2024.1015.41553
[2024-10-14 23:59:08.343]: Info: Package Publisher: LizardByte
[2024-10-14 23:59:08.343]: Info: Publisher Website: https://app.lizardbyte.dev
[2024-10-14 23:59:08.343]: Info: Get support: https://app.lizardbyte.dev/support
[2024-10-14 23:59:08.484]: Info: nvprefs: No need to modify application profile settings
[2024-10-14 23:59:08.484]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024-10-14 23:59:08.532]: Info: Compiling shaders...
[2024-10-14 23:59:08.542]: Info: System tray created
[2024-10-14 23:59:08.542]: Debug: System tray loop
[2024-10-14 23:59:08.548]: Warning: include/base_vs.hlsl(28,13-36): warning X3556: integer modulus may be much slower, try using uints if possible.
[2024:10:14:19:04:02]: Info: Sunshine version: v0.23.1
[2024:10:14:19:04:02]: Info: nvprefs: No need to modify application profile settings
[2024:10:14:19:04:02]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:10:14:19:04:03]: Info: Compiling shaders...
[2024:10:14:19:04:03]: Info: System tray created
[2024:10:14:19:04:03]: Debug: System tray loop
[2024:10:14:19:04:03]: Info: Compiled shaders
[2024:10:14:19:04:03]: Debug: Stereo: supported
[2024:10:14:19:04:03]: Debug: Surround 5.1: supported
[2024:10:14:19:04:03]: Debug: Surround 7.1: supported
@leonewt0n
leonewt0n / gist:e12bdcf98bc720e96ac96d8a53d5eecf
Created September 7, 2024 18:26
Basic CoreOS Ignition File
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDLdf47e33xE+LDKXqTSOgC0phIwcJBGUm5Wy9PKMetYmt+AYyhvpF33wVVMv09Im66u2QhaHYIwHOfBFA6jcQquMeNr/NJJ5yboA/ESscif+6cVG5om4AoVHebeXN8IZHjUJLuSk77Px3RKsWVVMW1PPIh3gfa2XA+tCU+LIHGakdu/eyL2g0r8FPRRB6S7jag/l2fKr1YQs46OG3IiklmQkOoi2FEDFix2/3bW4VciL2cKs7wEAS3lnPjO8vpLKab2s6KcIJ2WE4fORqT0CPxlYqPY6uFADOKi6xMb+WfIdyELqMp1dYLgYB7tBz6eqwcCtDAEAsX5R5w9aqqzhhdH0ohy/sbYiP5V2sIA8HKl3Y/8IF9+446q71XSrspw9LOyYSeBGT3iSWRvFthCSHK4tRcqGB3FVvXqEgxpNicTo2D6stmpz/kfa1noau867LnD7PcsdZolSCOBACifNp+UnGnaWrLnniP2idO97R/6044H4dBozm/QcHae5RHjdSNKNXYBFrKYNW/n05wSvAexPiql1VhtE15upFeCgYXQG94k/kX6hH+C/th0WX+TDbLqyLzbM051bWrBrTKEXh6dJUP9vW39iBeCSIuXgCJkOVMb7OATELcmVQJx2As3kynP1SSNdVmAIl0rC0Auv8nzUF6XsZdycs9m3nb2euTkw=="
@leonewt0n
leonewt0n / gist:66d587f2a88061c21649508e41b9110e
Last active March 6, 2024 06:42
Bash script to Update Nvidia driver with latest binary and build latest Open Kernel modules. To be used with a systemd timer and service.
#!/bin/bash
# Define locations and variables
REPO_DIR="/usr/local/src/open-gpu-kernel-modules"
KERNEL_VER=$(uname -r)
LOG_FILE="/var/log/update-nvidia-module.log"
DRIVER_DOWNLOAD_DIR="/usr/local/src/nvidia-drivers"
LATEST_INFO_URL="https://download.nvidia.com/XFree86/Linux-x86_64/latest.txt"
CERT_DIR="$HOME/.certs" # Directory containing your signing keys
#ops102 Reading Notes
This is a collection of Reading Notes in the Ops102 Class
@leonewt0n
leonewt0n / gist:51ee724682c5643e6c6d55253b583c94
Last active October 23, 2019 18:13
Notes on NixOS Install and System
QT Apps not working. Missing plugin not found...
$ nix-env -i qtbase
$ export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS
#when installing
cryptsetup luksOpen /dev/disk/by-uuid/3f6b0024-3a44-4fde-a43a-767b872abe5d crypted
boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/3f6b0024-3a44-4fde-a43a-767b872abe5d"; # UUID of sda2 partition
fileSystems."/".device = "/dev/disk/..........."; #Check hardware-configuration file for UUID of mapper
@leonewt0n
leonewt0n / gist:c535bf4c7cb4d1fd492625d3a33906a8
Created September 8, 2019 05:04
Resarch into extracting Bitcoin key from RAM dump via LiME
##Compile kernel module from here: https://github.com/504ensicsLabs/LiME
yay -S linux53-headers
cd /src and make
##Insert module and dump to ram.lime
insmod lime.ko "path=~/ram.lime format=lime"
##grep a file for hex values
grep -obUaP "<\x-hex pattern>" <file>
@leonewt0n
leonewt0n / gist:bf2e51a496d87f96b63a1d7f996a1e74
Last active September 7, 2019 17:01
Manjaro Architect CLI Desktop Setup Notes for E5450 using Sway and Rofi
Use grub and default /boot/efi directory
When creating partitions use crtl+alt+f2 to switch to a virtual terminal and format root as f2fs:
mkfs.f2fs cryptoroot
At end of install chroot into system:
/etc/resolv.config:
nameserver 1.1.1.1
nameserver 1.0.0.1
yay -S sway pulseaudio-alsa alsa-oss manjaro-alsa intel-media-driver kitty rofi networkmanager swaylock swayidle