Skip to content

Instantly share code, notes, and snippets.

@jkelin
jkelin / Video library.html
Last active May 30, 2022 11:31
Momence plugins
<iframe src="https://momence.com/video/plugin/5841" style="width:100%;height:1000px;border:0px;" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBhhoLHktKioZVhz+FnflhRRN4UaueH06ie8uyersRaF6mQwRAxW0USo3lVyLbv33YiJ9yca5kheChbTJEkqB0JIwWwTRkKavTLIIrPvYoS2yPu8jAgYz1eOcUcUE5dK6vqxLT1J6i4LJ6ye1bd6dWWIF2u5L3hekVVZlKSHPr9kahrV0f3d4bQfoNr0+TUfVZSm2LaH9fF9vr86XSogkeHMSkDpq9VCgAFrNAZg1ylYIT1sJoczg4KmgQ5dafKt5xrhy8qOQ51GlfzhbKCE/1nyTzL/gc0RfJWVET2SqWT/qrp1xmoG8hMXbkSkKTAF7nMSPj4hmp1uDFlzS1Qu/4u1LVawDkuISPQopi1PoETBB3BWngjYrHjpZKbP6Q435BQN9cU3wOEasMRFGAwwROODeZfz6rmSJjBWzcDpx9WAho2Kmrv52Sw20sYQHsnNUiBVBUrSCp75G2GqgTqt2d3lAL2FP9iQZzs9W8IMff9tZx6j057jYixHSUiLdSBy2Czgp3dDSWnwChAmlTTIInQk5g1ieLHe7wotceZOkd0i56cX2SsH7xA809EAKHY7sREyBd3X8fOVQUKcVd0MT8uOpl6tV2vpCZ92gVtimTGKCRGER0VD0YqsvjxTR5qvl+PV8th10sBaEVDjZoPekc5PI37rP85v1iC3PvFIytSw== jan@ubuntu

Keybase proof

I hereby claim:

  • I am jkelin on github.
  • I am jkelin (https://keybase.io/jkelin) on keybase.
  • I have a public key whose fingerprint is 4519 FFBB E0B9 E1A2 CDE5 3D8A 67A5 A0A7 D4AB FC99

To claim this, I am signing this object:

current revengeance server:

$ sysbench --test=cpu --cpu-max-prime=20000 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.18 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time
Module DataStructures
'
'Data Structures and functions for EncryptX data decoding
'Created by: NMGod
'Email: nmgod@nmgod.com
'
'Replaces enctypex_decoder_convert_to_ipport function, extracting extra
'data using a different way into custom structures, this also means it
'needs to be slightly updated for different parameter queries
'
@jkelin
jkelin / ChatAdmin.uc
Created May 17, 2018 21:23
tribes ChatAdmin mod
class ChatAdmin extends Gameplay.Mutator config(FireMods);
var string SelfServerPackage;
var string AnticsServerPackage;
function PreBeginPlay()
{
Log("[ChatAdmin] PreBeginPlay");
super.PreBeginPlay();
@jkelin
jkelin / howto.md
Last active January 3, 2024 08:55
7 simple-ish steps to green HTTPS on LAN with custom domain, Caddy, LetsEncrypt and Cloudflare. And a bonus tip!

7 simple-ish steps to green HTTPS on LAN with custom domain, Caddy, LetsEncrypt and Cloudflare. And a bonus tip!

Ever felt envious of those pretty green lock on sites like Github.com or Google.com? Ever wished to have one of those for services on your homelab? Well wish no more because I have a guide for you!

This guide is written for Ubuntu 16.04 server with domain registered on NameSilo and nameservers using Cloudflare. However it will work for any OS that Caddy supports (this includes Linux, Windows, macOS and many others on several architectures) and any other DNS provider with an API that Caddy supports.

What will you need:

  1. $$ Domain
  2. Cloudflare account, or account with other DNS provider with API listed in https://caddyserver.com/docs/automatic-https#enabling-the-dns-challenge
  3. Basic understanding of DNS, server management and ability to RTFM
<?php
function loadCache(){
if (file_exists('cache.json')) {
$fh = fopen('cache.json', 'a');
fwrite($fh, '');
} else {
$fh = fopen('cache.json', 'w');
fwrite($fh, '');
}
fclose($fh);