Skip to content

Instantly share code, notes, and snippets.

View mkg20001's full-sized avatar
🌟
rinse and repeat, rise and shine

Maciej Krüger mkg20001

🌟
rinse and repeat, rise and shine
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mkg20001 on github.
  • I am mkg20001 (https://keybase.io/mkg20001) on keybase.
  • I have a public key ASDBXtXcFyPoCjSwHreHnZ03aKCQQNo5TV4ds29_TBKAHAo

To claim this, I am signing this object:

@mkg20001
mkg20001 / steam-appmanifest-parser.js
Last active August 24, 2017 13:21
Steam Appmanifest Parser
const fs = require("fs")
module.exports = AppManifestParser
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
function recInt(obj) { //replace numeric strings with integers
for (var p in obj)
if (typeof obj[p] == "object") obj[p] = recInt(obj[p]);
Verifying my Blockstack ID is secured with the address 1Mk8eYoycx1RwDVdVCBfjGuxa3zxH8BZkc https://explorer.blockstack.org/address/1Mk8eYoycx1RwDVdVCBfjGuxa3zxH8BZkc
@mkg20001
mkg20001 / cert-cleanup.sh
Last active July 8, 2018 10:14
A script useful for cleaning up an old certificate archive. Removes orphan keys, ca certs and expired certs.
#!/bin/bash
# A script useful for cleaning up an old certificate archive. Removes orphan keys, ca certs and expired certs.
dir="$(readlink -f $1)"
CLEANUP=false # Enable this AFTER YOU CHECKED IT WORKS! (make backups)
[ -z "$dir" ] && exit 2
cd "$dir"
@mkg20001
mkg20001 / teletunnel-example.js
Created August 6, 2018 18:54
An example of how to use teletunnel to create a protocol matching tunnel server
'use strict'
// load modules
const TCP = require('libp2p-tcp')
const Protocols = require('teletunnel-protocols')
const {sortingHat} = require('teletunnel-core')
const fwAddr = require('forward-addr')
const pull = require('pull-stream')
const multiaddr = require('multiaddr')
@mkg20001
mkg20001 / smbf-quine.bf
Created August 29, 2018 16:43
Self-Modifying Brainfuck Quine
# [Self Modifying Brainfuck](https://soulsphere.org/hacks/smbf/) Quine
<[<]>[.>]
<?php
header('HTTP/1.1 503 SaveTheInternet Blackout', true, 503);
?>
<html>
<head>
<title>#Blackout21</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@mkg20001
mkg20001 / README.md
Created April 8, 2019 12:13
Tiny htop header for you terminal

htop.js

Tiny htop for your terminal

Simply drop this into your $HOME folder and add the following to your .bashrc:

node "$HOME/.htop.js"
@mkg20001
mkg20001 / README.md
Last active September 26, 2019 15:52
new.css

new.css

Tiny "new" badge for your site

preview

Use with

<new/>