Skip to content

Instantly share code, notes, and snippets.

View PeskyPotato's full-sized avatar
🥔

PeskyPotato PeskyPotato

🥔
View GitHub Profile
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active May 14, 2024 11:08
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
# I am ashamed for writing this.
import inspect;
class Cin:
""" time to whip out some python magic """
def __rshift__(self, other):
# I don't want to require that "other" is declared global.
cin = input();
@nealfennimore
nealfennimore / wireguard.conf
Last active April 3, 2024 09:49
Wireguard VPN - Forward all traffic to server
# ------------------------------------------------
# Config files are located in /etc/wireguard/wg0
# ------------------------------------------------
# ---------- Server Config ----------
[Interface]
Address = 10.10.0.1/24 # IPV4 CIDR
Address = fd86:ea04:1111::1/64 # IPV6 CIDR
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Add forwarding when VPN is started
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o eth0 -j MASQUERADE # Remove forwarding when VPN is shutdown

Microphone Realtime background noise reduction

/etc/pulse/default.pa

load-module module-echo-cancel source_name=noechosource sink_name=noechosink
set-default-source noechosource
set-default-sink noechosink
@alexdlaird
alexdlaird / 1_AirNowTextingService.md
Last active December 4, 2018 18:07
Texting service to receive current air quality conditions and maps, powered by AirNow, Twilio, and AWS
@blakehurlburt
blakehurlburt / regex.py
Last active March 1, 2018 00:02
Checks to see if two regexes match the same language (low error but no guarantee)
### Author: Blake Hurlburt
### This program takes in two regular expressions and tries to determine
### whether they recognize the same language.
### If the universe is small enough, it tests the entire universe;
### otherwise, it tests a random sample from the universe.
import itertools as it
import re
import random
import threading
@676339784
676339784 / 4c.css
Last active August 23, 2021 01:09
4chan css
:root {
--black: #0f1c1f;
--black-lighter: #1f3b42;
--black-darker: #141a1a;
--light: #fff;
--light-darker: #f9f9f9;
--grey: #666666;
--accent: #7eb5ac;
--accent-darker: #fff;
--greentext: #669f96;
@mininmobile
mininmobile / example.plugin.js
Last active July 16, 2023 13:57
Example BetterDiscord Plugin
//META{"name":"Example"}*//
class Example {
// Constructor
constructor() {
this.initialized = false;
}
// Meta
getName() { return "Example"; }
@JulesBlm
JulesBlm / .block
Last active February 10, 2024 19:11
Train stations of the Netherlands Voronoi Diagram
license: gpl-3.0
height: 950
scrolling: no
border: yes
@xero
xero / coffee
Last active March 1, 2024 05:24
coffee ansi art. open your term and run `curl -L git.io/coffee`
▄▄▄▄▄▄▄▄▄▄
  ▀▀▀ ▀  ▀▀▀  ▄
 ▀▀  ▀▀▀▀      ▀▀ 
  ▀▀▀▀▀    ▀[4