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 / fuck you public license
Created May 31, 2022 01:36
fork of 3 clause bsd license intended for evil software
Fuck You Public License
Copyright <YEAR> <COPYRIGHT HOLDER>
Redistribution and use in source and binary forms, with or without modification, is not permitted, viewing or reading the source code is considered use, and the following conditions encourage the consumer of this software to go fuck themselves and must be met regarless of use:
\1. Neither the source code nor the binaries may be used from this software.
\2. Redistributions must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
@kernelzeroday
kernelzeroday / gist:9de944b05fb5c3efe3a3dd0b28357bfa
Created April 22, 2023 01:56
fix xformers for linux ubuntu d8ahazard/sd_dreambooth_extension
errors:
ValueError: xformers is not available. Make sure it is installed correctly
# Dreambooth may not work properly.
xFormers wasn't build with CUDA support
fix:
```
@kernelzeroday
kernelzeroday / gist:4c7fd9bf531925644708cc62c13258b5
Created September 18, 2023 02:01
port go bins over to another system or sync them with gup and some posix magic
echo please consider trans rights because they are important
go install github.com/nao1215/gup@latest
git clone https://github.com/kilobyte/colorized-logs -o /tmp/nzbhjk23
cd /tmp/nzbhjk23
make ansi2txt
cp -v ansi2txt ~/bin
cd -
for i in `gup list | ansi2txt | cut -f2 -d :` ; do echo go install $i ; done
# go install github.com/elliotchance/c2go@v0.26.10
@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
@kernelzeroday
kernelzeroday / windows-10 autorun folder.txt
Created November 27, 2023 03:55 — forked from ezhov-da/windows-10 autorun folder.txt
windows 10 autorun folder.txt
[disk]:\Users\[user]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
@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 / gh-backup-starred.sh
Last active July 6, 2024 22:14 — forked from anonymous/gh-backup-starred.sh
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=30" | jq -r '.[].html_url' |
while read rp; do
git clone $rp
done