Skip to content

Instantly share code, notes, and snippets.

View cbrgm's full-sized avatar
👋

Christian Bargmann cbrgm

👋
View GitHub Profile
@cydh
cydh / Change-Max-Level-on-rAthena.md
Last active April 8, 2022 16:37
How to change MAX LEVEL from 99 to 255 for rAthena

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
@itzg
itzg / README libvirt cloud-init with static networking.md
Last active December 30, 2023 01:46
Configuring a libvirt domain with a static IP address via cloud-init local datasource

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
@danielcosta
danielcosta / docker-compose.sh
Created April 7, 2017 15:18
Run docker-compose inside a container
#!/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
#
@sevkin
sevkin / url_open.go
Last active April 11, 2024 08:20
golang open url in default browser
// 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"}
@tallclair
tallclair / dynamic_crds.go
Last active January 24, 2024 07:18
Example of using CRDs with the dynamic go client
package main
import (
"fmt"
"log"
"os/user"
"path/filepath"
"strings"
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
@juancarlospaco
juancarlospaco / thermal_printer.md
Last active December 4, 2023 11:58
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config
// ==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==
import os
import glob
import math
import random
import numpy as np
import matplotlib.pyplot as plt
import cv2
from tensorflow.python import keras
@dskindell
dskindell / .skhdrc
Last active January 23, 2024 18:46
OSX yabai & skhd Configuration
####### Shortcut Hotkeys #############
# open terminal
lalt - return : $HOME/.config/skhd/open_terminal.sh --single-instance
lalt + shift - return : $HOME/.config/skhd/open_terminal.sh
#alt - t : osascript -e 'tell application "iTerm2" to create window with default profile'
# restart Yabi, SpaceBar, and SKHD
#lalt + lcmd - r : \
# launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; \
# skhd --reload
@Neo23x0
Neo23x0 / log4j_rce_detection.md
Last active January 28, 2024 08:19
Log4j RCE CVE-2021-44228 Exploitation Detection

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