Skip to content

Instantly share code, notes, and snippets.

View sn0opy's full-sized avatar

Sascha Ohms sn0opy

View GitHub Profile
@sn0opy
sn0opy / Dockerfile
Created January 17, 2024 09:48
build custom blocky image, add config and publish to ghcr
FROM ghcr.io/0xerr0r/blocky:latest
ADD config.yml /app/config.yml
ADD allowlist.txt /app/allowlist.txt
ENTRYPOINT ["/app/blocky"]
import random
if __name__ == "__main__":
countrynum = "121400" # de
bankcode = "10020000"
for i in range(1, 25):
accno = str(random.randrange(1000000000, 1999999999))
bban = bankcode + accno
checksummod = int(bban + countrynum) % 97
name: Hugo deployment
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
@sn0opy
sn0opy / gist:b83eeb59296df11256fb23ad2f0baa41
Last active January 9, 2023 18:54
Voron 0 Extruders/Cowlings
{
"layouts": {
"keymap": [
[
{
"c": "#777777"
},
"0,0",
"0,1",
"0,2",
@sn0opy
sn0opy / void9.json
Created January 28, 2021 22:22
void9 VIA design/config
{
"name": "VOID9",
"vendorId": "0xF055",
"productId": "0x3534",
"lighting": "none",
"matrix": { "rows": 3, "cols": 3 },
"layouts": {
"keymap": [
["0,0", "0,1", "0,2"],
["1,0", "1,1", "1,2"],
@sn0opy
sn0opy / nginx site config
Last active August 24, 2020 16:47
Sample Nginx config for MAD and RM
# This is a sample site config for Nginx utilizing a single (sub)domain for
# everything MAD related.
#
# MADmin will be available under https://mad.domain.tld/madmin
# RGC needs to be configured to connect to "wss://mad.domain.tld/rgc"
# PD needs to be configured to send data to "https://mad.domain.tld/pd"
# RocketMAD will be available under https://mad.domain.tld/
# How to test if everything's working:
#
@sn0opy
sn0opy / Dockerfile
Created June 21, 2020 17:18
il2cppdumper Dockerfile
ARG I2CD_VERSION=6.2.1
FROM alpine:3.7 as download
ARG I2CD_VERSION
RUN wget -O source.zip https://github.com/Perfare/Il2CppDumper/archive/v${I2CD_VERSION}.zip
RUN mkdir /dumpersource && unzip -d /dumpersource -q source.zip
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine as compile
ARG I2CD_VERSION
WORKDIR /source
@sn0opy
sn0opy / generate_icon.py
Last active June 7, 2020 14:07
generate mon icons in several formats
import cv2
import numpy as np
import os
# original asset mon icon path
assets = "../PogoAssets/pokemon_icons/"
def crop(img):
channels = cv2.split(img)
# pip install gpapi
import requests
from apkutils import APK
from gpapi.googleplay import GooglePlayAPI
host = "https://matlink.fr/token"
package = "com.nianticlabs.pokemongo"
version = None