Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Bargmann cbrgm

View GitHub Profile
@Neo23x0
Neo23x0 / log4j_rce_detection.md
Last active Oct 12, 2022
Log4j RCE CVE-2021-44228 Exploitation Detection
View log4j_rce_detection.md

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@dskindell
dskindell / .skhdrc
Last active Oct 19, 2021
OSX Yabai Configuration
View .skhdrc
####### Shortcut Hotkeys #############
# open terminal
alt - return : $HOME/.config/skhd/open_terminal.sh
# restart Yabi, SpaceBar, and SKHD
alt + shift - r : \
launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; \
skhd --reload
View automatic_coloring.py
import os
import glob
import math
import random
import numpy as np
import matplotlib.pyplot as plt
import cv2
from tensorflow.python import keras
View nukeMediumEverywhere.js
// ==UserScript==
// @name Nuke medium everywhere!
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Yes, for the love of God!
// @author Richard Vasquez
// @match *://*/*
// @grant none
// ==/UserScript==
@juancarlospaco
juancarlospaco / thermal_printer.md
Last active Apr 25, 2022
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config
View thermal_printer.md
@tallclair
tallclair / dynamic_crds.go
Last active Oct 20, 2022
Example of using CRDs with the dynamic go client
View dynamic_crds.go
package main
import (
"fmt"
"log"
"os/user"
"path/filepath"
"strings"
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
@sevkin
sevkin / url_open.go
Last active Nov 16, 2022
golang open url in default browser
View url_open.go
// https://stackoverflow.com/questions/39320371/how-start-web-server-to-open-page-in-browser-in-golang
// open opens the specified URL in the default browser of the user.
func open(url string) error {
var cmd string
var args []string
switch runtime.GOOS {
case "windows":
cmd = "cmd"
args = []string{"/c", "start"}
@danielcosta
danielcosta / docker-compose.sh
Created Apr 7, 2017
Run docker-compose inside a container
View docker-compose.sh
#!/bin/bash
#
# Run docker-compose in a container
#
# This script will attempt to mirror the host paths by using volumes for the
# following paths:
# * $(pwd)
# * $(dirname $COMPOSE_FILE) if it's set
# * $HOME if it's set
#
@itzg
itzg / README libvirt cloud-init with static networking.md
Last active Nov 13, 2022
Configuring a libvirt domain with a static IP address via cloud-init local datasource
View README libvirt cloud-init with static networking.md

Here is how to create a cloud-init disk image and OS disk image suitable for configuring into a libvirt domain file.

In my case I am naming my domain (a.k.a. virtual machine or VM) xenial with a static IP address of 192.168.0.101. The filenames "network-config" and "user-data" files are arbitrary, so they can be named with a prefix for the domain, etc.

First, get the cloud image and convert into QCOW2 format:

qemu-img convert -O qcow2 xenial-server-cloudimg-amd64-disk1.img xenial-server-cloudimg-amd64-disk1.qcow2
@cydh
cydh / Change-Max-Level-on-rAthena.md
Last active Apr 8, 2022
How to change MAX LEVEL from 99 to 255 for rAthena
View Change-Max-Level-on-rAthena.md

How to change MAX LEVEL from 99 to 255 for rAthena

Adding EXP tables for Base Level 255 from level 99

All you need is Notepad++ to change max level from 99 to 255 by editing the job_exp.txt file. Follow these quick instructions:

  1. Open job_exp.txt (pre | re) by using Notepad++
  2. Create a new blank file
  3. Makes 156 empty lines, because to add max level from 99 to 255 needs 156 more EXP entries 156 empty lines
  4. In that empty blank file at first line, click Edit menu > choose Column Editor..., or press ALT+C Open Column Editor