Skip to content

Instantly share code, notes, and snippets.

View json-m's full-sized avatar
🏴

Jason M. json-m

🏴
View GitHub Profile
// The events are from https://www.w3.org/TR/html5/semantics-embedded-content.html#media-elements-event-summary
import videojs from 'video.js'
const Plugin = videojs.getPlugin('plugin')
const EVENTS = [
'loadstart',
'progress',
'suspend',
'abort',
'error',
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/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_8
@json-m
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)
@json-m
json-m / hify.pl
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
json-m / main.go
Last active May 13, 2021 03:08
httpserver for quickly sharing a folder on disks contents
/*
syntax:
httpserver port path cidr
arguments are optional but expected in the above order
current directory via just . works
*/
package main
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
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 (
"github.com/gonutz/w32"
@json-m
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
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>
<settings>
<parameters>
<param name="env.ASSIGNED_PORT" value="8888" />
</parameters>
<build-runners>
<runner name="build" type="DockerCommand">
<parameters>
<param name="command.args" value="--pull" />