Skip to content

Instantly share code, notes, and snippets.

View json-m's full-sized avatar

Jason M. json-m

View GitHub Profile
json-m / zomboidWorkshopMapper.go
Last active January 18, 2024 01:35
project zomboid dedicated server map load order
package main
// for Project Zomboid Dedicated Server
// converts a ModManager load order string to a map mod name load order
// your own client doesn't need the map names since it loads them via the mod load order anyway
// however, hosting a server requires this specific Map load directive in servertest.ini
// this will output a Map= load order in the same order as the mod load order
// the idea is that getting a stable mod load order is way easier in the game client mod manager
// then you can export and use this on a dedicated server instance to host a mp game with your mod order
json-m / localdeploy.xml
Last active October 17, 2021 00:48
teamcity local docker image deployment meta-runner. traefik+local registry
<meta-runner name="localdeploy">
<description>builds docker image and deploys to local machine</description>
<param name="env.ASSIGNED_PORT" value="8888" />
<runner name="build" type="DockerCommand">
<param name="command.args" value="--pull" />
json-m / isan_v2.yolol
Last active August 27, 2021 22:19
Starbase ISAN document
A=1000 n=1000 pr=0 sp=0 div=(9.6+2.4*pr)*n so=1-sp o=160000 e=8*o c=""
z="origin_" mr=z+"north" br=z+"south" cr=z+"east" z+="west" sm="\nS: "
u=e*3/13 l=2*o mm=l*13/19 k=e*3/19 x/=so sm=c s=c sl="\nsignal lost"
rr="ISAN2 :_\n " xm="\nX: " ym="\nY: " zm="\nZ: " nn=l*13/3
ej=16*sp h="Q" pj=14-pr b=0.5 p=1000000 :at=mr :bt=br :ct=cr :dt=z x=0
t=p-:a t*=t i=p-:b i*=i g=p-:c g*=g f=p-:d f*=f x/=:a*:b*:c*:d goto14
h="M" t=p-:a t*=t er=(t-el)/4 el=t x/=:a :at=br x=8 gotopj// ISAN
i=p-:a i*=i fr=(i-fl)/4 fl=i x/=:a :at=cr x=9 gotopj// From Collective
g=p-:a g*=g gr=(g-gl)/4 gl=g x/=:a :at=z x=10 gotopj// v2.5 - 190821
f=p-:a f*=f hr=(f-hl)/4 hl=f x/=:a :at=mr x=7 gotopj
json-m / main.go
Created July 25, 2021 00:29
numHardLock - persist number lock
package main
for some reason my number lock kept getting turned off and i couldn't figure out why
so i made this to check every 250ms to see if my number lock is off, and if it is, turn it back on
import (
14:57:37 [252]33 IRC Operators online
14:57:37 [253]49 unknown connection(s)
14:57:37 [254]41643 channels formed
14:57:37 [255]I have 3481 clients and 1 servers
14:57:37 [265]3481 3943 Current local users 3481, max 3943
14:57:37 [266]76941 83476 Current global users 76941, max 83476
json-m / main.go
Last active May 13, 2021 03:08
httpserver for quickly sharing a folder on disks contents
httpserver port path cidr
arguments are optional but expected in the above order
current directory via just . works
package main
json-m /
Created February 3, 2021 00:32
h-ify for irssi
use warnings;
use strict;
use IPC::Open3;
use Irssi;
use vars qw($VERSION %IRSSI);
$VERSION = '0.1';
%IRSSI = (
author => 'c|p',
name => 'h-ify',
json-m / aaaa.txt
Created February 1, 2021 23:48
ipv6 multicast
ff02::1 all nodes
ff02::2 all routers
ff02::5 all OSPF (Open Shortest Path First) routers
ff02::6 all OSPF DRs (OSPF Designated Routers)
ff02::9 all RIP (Routing Information Protocol) routers
ff02::a all EIGRP (Enhanced Interior Gateway Routing Protocol) routers
ff02::d all PIM (Protocol Independent Multicast) routers
ff02::f UPNP (Universal Plug and Play) devices
ff02::11 all homenet nodes
ff02::12 VRRP (Virtual Router Redundancy Protocol)
root at summit in ~
# lspci -nn | ag VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics P630 [8086:3e96]
05:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41)
root at summit in ~
# vainfo
libva info: VA-API version 1.8.0
libva info: Trying to open /usr/lib/dri/
libva info: Found init function __vaDriverInit_1_8