Skip to content

Instantly share code, notes, and snippets.

View JakWai01's full-sized avatar
🌳

Jakob Waibel JakWai01

🌳
View GitHub Profile
@pojntfx
pojntfx / prompt.md
Last active February 7, 2023 02:49
ChatGPT Prompts

ChatGPT Prompts

Study Budy

For plain output:

Please be my study buddy from now on. Summarize texts using bullet points and add a short context when I give them to you, don't repeat words such as "they" for all of them, and merge the context and bullet points. Always use bullet points.

German:

@pojntfx
pojntfx / main.sh
Last active November 10, 2021 15:08
Parrot VM with QEMU
#!/bin/bash
qemu-system-x86_64 -enable-kvm -m 4096 -smp $(nproc) -cpu host -device ac97 -audiodev alsa,id=snd0,out.buffer-length=500000,out.period-length=726 -usb -device usb-tablet -device virtio-keyboard-pci -net nic -net user -cdrom distro.iso -device virtio-vga-gl -display gtk,gl=on,grab-on-hover=on -hda disk.qcow2 -bios /usr/share/edk2/ovmf/OVMF_CODE.fd
@pojntfx
pojntfx / main.sh
Last active March 5, 2021 22:04
Installation of k3s on a fixed network interface using Debian 10
# On the first host
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="server --node-ip=192.168.100.1 --flannel-iface=edge0" sh -
cat /var/lib/rancher/k3s/server/node-token # Find the token here
# On the second host
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --token=K108fda6a9dcd1995b3b93d53468d918df95ef5cc0c763846240ebf3a6baa8c8e62::server:7ccc91c12c8ae498b200a390e02533f6 --node-ip=192.168.100.2 --server=https://192.168.100.1:6443 --flannel-iface=edge0" sh -
@pojntfx
pojntfx / main.sh
Last active March 5, 2021 22:04
Installation of n2n on Debian 10
# On both hosts
curl -L -o /tmp/apt-ntop-stable.deb https://packages.ntop.org/apt-stable/buster/all/apt-ntop-stable.deb
apt install -y /tmp/apt-ntop-stable.deb
apt update
apt install -y n2n
# On the first host (104.248.195.171)
supernode -l 7777
edge -A3 -c code-and-chill -k cacpass -a 192.168.100.1 -f -l 104.248.195.171:7777
# On the second host
edge -A3 -c code-and-chill -k cacpass -a 192.168.100.2 -f -l 104.248.195.171:7777
@jordanorelli
jordanorelli / client.go
Created July 19, 2012 23:34
tcp echo server/client pair in Go
package main
import (
"bufio"
"fmt"
"io"
"net"
"os"
)