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 November 8, 2024 17:29
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
@nealfennimore
nealfennimore / wireguard.conf
Last active September 25, 2024 19:58
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
@techthoughts2
techthoughts2 / schedule_cron
Last active June 14, 2024 10:06
Scheduled cron expressions and examples of using cron to scheudle things in AWS
cron(Minutes | Hours | Day-of-month | Month | Day-of-week | Year)
cron(0 0/4 * * ? *) Every 4 hours
cron(0 10 * * ? *) 10:00AM UTC everyday
cron(15 12 * * ? *) 12:15PM UTC everyday
cron(0 18 ? * MON-FRI *) 6:00PM UTC every Mon-Fri
cron(0 8 1 * ? *) 8:00AM UTC every first day of the month
cron(0/10 * ? * MON-FRI *) Every 10 min Mon-Fri
cron(0/5 8-17 ? * MON-FRI *)Every 5 minutes Mon-Fri between 8:00AM - 5:55PM UTC
cron(0 9 ? * 2#1 *) 9:00AM UTC first Monday of each month
@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 10, 2024 23:19
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