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
@vbajpai
vbajpai / opkgclean.sh
Last active April 3, 2025 19:22
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
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
@bijanebrahimi
bijanebrahimi / cross-compiler.sh
Last active October 17, 2024 13:56
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}
@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
@nanoant
nanoant / icget.swift
Created August 13, 2019 17:50 — forked from anongit/icget.swift
Download .icloud files
// See: https://apple.stackexchange.com/questions/328329/is-there-a-way-via-the-command-line-to-cause-icloud-files-to-download
import Foundation
func main() {
let fm = FileManager.default
for path in CommandLine.arguments[1...] {
let url = NSURL.fileURL(withPath: path)
guard fm.fileExists(atPath: url.path) else {
@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.

@ungeskriptet
ungeskriptet / tcl-debloater.sh
Last active January 15, 2025 22:48
TCL TV debloater
#!/usr/bin/sh
# WARNING: Might brick your TV
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
@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);
@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