Skip to content

Instantly share code, notes, and snippets.

Avatar
🏳️‍🌈
#fcknzs

Yannic Haupenthal tohn

🏳️‍🌈
#fcknzs
View GitHub Profile
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active June 4, 2023 22:51
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC
View 20211210-TLP-WHITE_LOG4J.md

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
p0deje / README.md
Last active August 24, 2022 20:10
Reset titles migration for Maccy 0.21
View README.md
  1. Run the following in Terminal.app:
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
tomdaley92 / README.md
Last active May 28, 2023 19:50
Proxmox - SPICE Client setup for MacOS
View README.md

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
percygrunwald / _table_of_contents.html
Last active August 18, 2019 12:41
Yet another Hugo partial for generating a Table of Contents
View _table_of_contents.html
{{ $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
pyrrho / input
Last active August 18, 2019 12:41
Another Hugo partial for generating a Table of Contents
View input
## 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
@jzacsh
jzacsh / LICENSE
Last active September 18, 2020 09:23
fix annoying broken `aws s3 sync` content-type uploads
View LICENSE
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
@christopheranderton
christopheranderton / update-outdated-brew-casks.sh
Last active June 2, 2023 13:51
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.
View update-outdated-brew-casks.sh
# 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
liangfu / ffmpeg.md
Created May 24, 2017 04:46 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files
View ffmpeg.md

ffmpeg

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:

@hans2103
hans2103 / server.badbots
Last active February 24, 2023 14:37
NGINX to block bad bots. (add Twenga|TwengaBot if you want to exclude them too)
View server.badbots
if ($http_user_agent ~* (360Spider|80legs.com|Abonti|AcoonBot|Acunetix|adbeat_bot|AddThis.com|adidxbot|ADmantX|AhrefsBot|AngloINFO|Antelope|Applebot|BaiduSpider|BeetleBot|billigerbot|binlar|bitlybot|BlackWidow|BLP_bbot|BoardReader|Bolt\ 0|BOT\ for\ JCE|Bot\ mailto\:craftbot@yahoo\.com|casper|CazoodleBot|CCBot|checkprivacy|ChinaClaw|chromeframe|Clerkbot|Cliqzbot|clshttp|CommonCrawler|comodo|CPython|crawler4j|Crawlera|CRAZYWEBCRAWLER|Curious|Curl|Custo|CWS_proxy|Default\ Browser\ 0|diavol|DigExt|Digincore|DIIbot|discobot|DISCo|DoCoMo|DotBot|Download\ Demon|DTS.Agent|EasouSpider|eCatch|ecxi|EirGrabber|Elmer|EmailCollector|EmailSiphon|EmailWolf|Exabot|ExaleadCloudView|ExpertSearchSpider|ExpertSearch|Express\ WebPictures|ExtractorPro|extract|EyeNetIE|Ezooms|F2S|FastSeek|feedfinder|FeedlyBot|FHscan|finbot|Flamingo_SearchEngine|FlappyBot|FlashGet|flicky|Flipboard|g00g1e|Genieo|genieo|GetRight|GetWeb\!|GigablastOpenSource|GozaikBot|Go\!Zilla|Go\-Ahead\-Got\-It|GrabNet|grab|Grafula|GrapeshotCrawler|GTB5|GT\:\:WWW|Guzz
@tofirius
tofirius / mysql-dump-tables-by-prefix.txt
Last active January 16, 2023 19:56
MySQL dump of tables that begin with a given prefix
View mysql-dump-tables-by-prefix.txt
mysql database_name -u username -pPassWord -N -e 'show tables like "tableprefix\_%"' | xargs mysqldump database_name -u username -pPassWord > prefixedtable_dump.sql