Skip to content

Instantly share code, notes, and snippets.

View sn0opy's full-sized avatar

Sascha Ohms sn0opy

View GitHub Profile

Introduction

As most readers already know, I have been working hard for more than one year to replace the old SpiderMonkey 24 engine, which has been powering our JavaScript runtime since 2015, with a completely new, entirely redesigned, and fully rewritten runtime based on V8, Google's high-performance, open-source JavaScript and WebAssembly engine.

This monumental work is now complete, and the new runtime, available in version 1.9.4 Lockhart of PixInsight, has been thoroughly tested for stability and compatibility. We have already ported the most important standard scripts of our platform to the new V8 runtime, including the WBPP and FBPP preprocessing scripts, all astrometry scripts, and most utility and development scripts. The work to complete the transition to V8 will continue during the coming months. Many non-trivial scripts require substantial modifications to run on the new runtime. This is a delicate task, but for most scripts it isn't really difficult if properly implemented

@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)