Skip to content

Instantly share code, notes, and snippets.

View ghaberek's full-sized avatar

Gregory Haberek ghaberek

View GitHub Profile
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active November 24, 2025 11:24
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
@JfrAziz
JfrAziz / docker-compose.yml
Last active March 14, 2025 14:43
Install Nginx Proxy Manager and disable port 81 from outside
version: "3"
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '81:81'
environment:
@akvadrako
akvadrako / pty-demo.c
Last active November 9, 2025 16:57
Linux pseudo TTY example
/**
* gcc -o pty-demo pty-demo.c
* pty-demo bash
*/
#define _XOPEN_SOURCE 600 /* Single UNIX Specification, Version 3 */
#include <fcntl.h>
#include <errno.h>
#include <stdio.h> /* for convenience */
@taoky
taoky / exp6.asm
Created February 9, 2020 09:49
FTOA and ATOF procedure assembly for 80387
.model SMALL
.386
.STACK 100H
.DATA
TEMP DW ?
NUMB REAL4 ?
STRING DB 1024 DUP(0)
WHOLE DD ?
FRACT DD ?
@rgebee
rgebee / RayForm.cs
Last active March 17, 2025 01:05
Using raylib from inside a win forms application
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using Raylib_cs;
using Color = Raylib_cs.Color;
namespace Rayforms
{
public class RayForm : Form
@mrpeardotnet
mrpeardotnet / PVE-postinstall-5x.md
Last active March 31, 2025 23:30
PVE-postinstall-6.x

Proxmox PVE 6.x Post Installation Steps

This cheatsheet helps to set up your Proxmox Virtual Environment (PVE) host after fresh installation. Designed and tested on PVE version 6.x.

Note about sudo

I do not prepend sudo command to any of commands listed here, but keep in mind that nearly all commands requires su privileges, so use sudo if your account happen to not have root access.

How to edit config files

The simplest way to edit config file is to use vim.tiny editor, for example to edit vzdump.conf file use this command:

@bparaj
bparaj / howto_python_flask_iis_wfastcgi
Last active December 1, 2023 05:42
Python Flask on IIS with wfastcgi
Assume IIS is installed. My machine already had IIs 8.5.
Install Python
==============
1. Download web installer (Python 3.6.3).
2. Run as Administrator.
3. Select custom installation for all users.
4. Choose install directory such that there are no white spaces in the path. Not sure if it needs to be done. Just being cautious.
5. Check the box for "Add Python 3.6 to PATH".
@emoacht
emoacht / MainForm.cs
Created April 4, 2017 22:32
Enable Non-Client Area DPI scaling in WinForms
// app.manifest which declares this application Monitor DPI aware is required.
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
public partial class MainForm : Form
{
public MainForm()
{
@wojteklu
wojteklu / clean_code.md
Last active December 6, 2025 13:31
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules