Skip to content

Instantly share code, notes, and snippets.

View tohn's full-sized avatar

Yana/Yannic Haupenthal tohn

View GitHub Profile
SwitHak /
Last active June 22, 2024 10:52
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
p0deje /
Last active November 14, 2023 14:42
Reset titles migration for Maccy 0.21
  1. Run the following in
defaults write org.p0deje.Maccy migrations -dict "2020-02-22-history-item-add-copied-at" 1 \
                                                 "2020-02-22-history-item-add-number-of-copies" 1 \
                                                 "2020-04-18-switch-storage-to-core-data" 1 \
                                                 "2020-04-25-allow-custom-ignored-types" 1 \
                                                 "2020-06-19-use-keyboardshortcuts" 1 \
                                                 "2020-09-01-ignore-keeweb" 1 \
 "2021-02-20-allow-to-customize-supported-types" 1 \
tomdaley92 /
Last active June 17, 2024 16:39
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

percygrunwald / _table_of_contents.html
Last active August 18, 2019 12:41
Yet another Hugo partial for generating a Table of Contents
{{ $headers := findRE "<h[2-4].*?>(.|\n])+?</h[2-4]>" .Content }}
{{ $numHeaders := len $headers }}
{{ $hasHeaders := ge $numHeaders 1 }}
{{ if $hasHeaders }}
<nav id="toc" data-toggle="toc">
<!-- TOC header -->
<h4 class="text-muted toc-heading">Table of Contents</h4>
<ol class="toc">
{{ range $i, $header := $headers }}
pyrrho / input
Last active August 18, 2019 12:41
Another Hugo partial for generating a Table of Contents
## Pangrams Are Fun!
### Pack My Box With Five Dozen Liquor Jugs
#### Pack My Box With Five Dozen Liquor Jugs
##### Pack My Box With Five Dozen Liquor Jugs
###### Pack My Box With Five Dozen Liquor Jugs
## We Can Drop And Raise Heading Levels By More Than One Step!
#### The First Was An H2
#### The Second Third And Fourth Are H4s
#### This Is The Fourth
mohanpedala /
Last active June 22, 2024 09:27
set -e, -u, -o, -x pipefail explanation
jzacsh / LICENSE
Last active June 27, 2023 18:21
fix annoying broken `aws s3 sync` content-type uploads
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
The GNU Affero General Public License is a free, copyleft license for
christopheranderton /
Last active February 4, 2024 17:29
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
# Upgrade / Update outdated casks installed.
# --------------------------------------------------------------------------------
# Looks for outdated casks and installs the the latest version.
# User data (like application preferences) is intact.
# Updated one liner (thanks Henrik242)
# --------------------------------------------------------------------------------
brew upgrade $(brew outdated --cask --greedy --quiet)
liangfu /
Created May 24, 2017 04:46 — forked from protrolium/
using ffmpeg to extract audio from video files


Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: