Skip to content

Instantly share code, notes, and snippets.

View kernelzeroday's full-sized avatar
💭
hello segfault my old friend

kelsey kernelzeroday

💭
hello segfault my old friend
View GitHub Profile
@kernelzeroday
kernelzeroday / remove_ed25519_hostkeys.sh
Last active March 19, 2024 16:52
ed25519 encryptile dysfunction fix
#needs root access, remove the backdoored curve hostkeys that infect everything now and revert to safe rsa
rm -v /etc/ssh/*ed25519*
sed -i 's/#HostKey\ \/etc\/ssh\/ssh_host_rsa_key/HostKey\ \/etc\/ssh\/ssh_host_rsa_key/g' /etc/ssh/sshd_config
systemctl restart ssh
@kernelzeroday
kernelzeroday / gist:3273b4da72385218d096e5618261809d
Last active September 19, 2023 22:42
llm cli orca prompt template
#https://llm.datasette.io/en/stable/index.html
#https://github.com/simonw/llm
llm '### Instruction: $input\n###Response: ' -s 'You are a helpful AI assistant.' --save orca
llm chat -o stop '###' -t orca
@MattyQ
MattyQ / matrixrain.js
Created April 25, 2023 01:55
Creates a canvas in the body to draw a Matrix-style rain effect. Generated by ChatGPT. Free to reuse with no attribution required.
function matrixRain() {
const canvas = document.createElement("canvas");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
canvas.style.position = "fixed";
canvas.style.top = 0;
canvas.style.left = 0;
canvas.style.zIndex = -1;
document.body.appendChild(canvas);
@ungeskriptet
ungeskriptet / tcl-debloater.sh
Last active July 22, 2024 17:36
TCL TV debloater
#!/usr/bin/sh
set -e
TEMP_DIR=tmp-tcl-debloater
KODI_URL=https://mirrors.kodi.tv/releases/android/arm/kodi-20.1-Nexus-armeabi-v7a.apk
FLAUNCHER_URL=https://gitlab.com/flauncher/flauncher/-/releases/0.18.0/downloads/flauncher-0.18.0.apk
MATERIALFILES_URL=https://f-droid.org/repo/me.zhanghai.android.files_31.apk
BLOAT=$(cat <<EOF
com.tcl.partnercustomizer
com.tcl.smartalexa
com.tcl.gallery
@tannerdsilva
tannerdsilva / hostXMRNode.md
Last active June 11, 2024 09:39
How To Build And Host a Monero Node from Source

How to Build and Install a Monero Node on a Debian-based System

Hello. In this document, we will walk through the steps of building and hosting your own Monero node from source on a Debian-based Linux system. These systems include Raspbian, Debian (9 and above), and Ubuntu (18.04 and above). This tutorial assumes that you are capable of accessing the ROOT terminal of your Debian-based system, and are capable of getting your system online if necessary. You may plan on using an external storage device to store the blockchain, this tutorial will include the optional steps to support external storage. Alternatively, this setup procedure can also accomodate users looking to host a pruned blockchain with restricted storage space.

Here are some useful links for reaching this prerequisite if you do not currently have access to a Debian-based system that meets the recommended system requirements.

@ezhov-da
ezhov-da / windows-10 autorun folder.txt
Last active November 27, 2023 03:55
windows 10 autorun folder.txt
[disk]:\Users\[user]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
@bijanebrahimi
bijanebrahimi / cross-compiler.sh
Last active April 17, 2024 19:54
build a linux cross compiler for FreeBSD targets
#!/bin/bash
export TARGET=amd64-marcel-freebsd9.2
export PREFIX=/usr/cross-build
export TARGET_PREFIX=$PREFIX/$TARGET
export PATH=$PATH:$PREFIX/bin
mkdir -p $TARGET_PREFIX{,/lib,/include}
mkdir build-{binutils,gmp,mpfr,mpci,gcc}
anonymous
anonymous / gh-backup-starred.sh
Created February 5, 2015 16:57
Backup starred GitHub repositories
#!/bin/bash
user="CHANGEME"
pages=$(curl -I https://api.github.com/users/$user/starred | sed -nr 's/^Link:.*page=([0-9]+).*/\1/p')
for page in $(seq 0 $pages); do
curl "https://api.github.com/users/$user/starred?page=$page&per_page=100" | jq -r '.[].html_url' |
while read rp; do
git clone $rp
done
@vbajpai
vbajpai / opkgclean.sh
Last active July 9, 2024 05:03
If opkg runs out of space, it will not remove the files it was installing. Run this custom script in order recover the space by removing these files and the installed dependencies.
#!/bin/sh
#takes one argument/parameter: the name of the package which didn't install correctly and should be removed along with its dependencies
#do opkg update first
#example: ./opkgremovepartlyinstalledpackage.sh pulseaudio-daemon
#get list of all packages that would be installed along with package x
opkg update
PACKAGES=`opkg --force-space --noaction install $1 | grep http | cut -f 2 -d ' ' | sed 's/.$//'`
for i in $PACKAGES
do