Skip to content

Instantly share code, notes, and snippets.

View Kubuxu's full-sized avatar

Jakub Sztandera Kubuxu

  • Protocol Labs
  • Kraków, Poland
View GitHub Profile
@Kubuxu
Kubuxu / github-notifications-beta-unsubscribe-repo.user.js
Last active June 20, 2023 16:35
Userscrip which adds a button to GitHub Beta Notifications Dashboard for unsubscribing from repos
// ==UserScript==
// @name GitHub Notifications Beta Automatic Unsubscribe (Local)
// @namespace https://kubuxu.com/
// @version 0.2
// @description Adds a button to GitHub Beta Notifications Dashboard for unsubscribing from repos
// @author @Kubuxu
// @match https://github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// @require http://code.jquery.com/jquery-latest.js
@Kubuxu
Kubuxu / libp2p pnet - writeup.md
Last active March 27, 2022 13:14
libp2p Private Networks - pnet

Pre-shared Key Based Private Networks in IPFS

This document describes the first version of private networks (PN) featured in IPFS.

Only pre-shared key (PSK) functionality is available for the first implementation, as the Public Key Infrastructure approach is much more complex and requires more technical preparation.

It was implemented as an additional encryption layer before any IPFS traffic and is designed to leak the absolute minimum of information on its own. All traffic leaving the node inside a PN is encrypted, and there is no characteristic handshake.

Interface

Starting from balanced:
(sys, eng, wep)
(1.5, 1.5, 3.0) = right
(1.5, 3.0, 1.5) = up
(3.0, 1.5, 1.5) = left
(1.0, 1.0, 4.0) = right, right
(2.5, 2.5, 1.0) = left, up
(1.0, 4.0, 1.0) = up, up
(2.5, 1.0, 2.5) = left, right
(4.0, 1.0, 1.0) = left, left
@Kubuxu
Kubuxu / doubleSerialize.lua
Last active July 31, 2021 13:29
Two functions allowing for Lua's number serialization.
--[[
The MIT License (MIT)
Copyright (c) 2015 Jakub (Kubuxu) Sztandera
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Kubuxu
Kubuxu / ipfs-daemon-remote.sh
Last active March 2, 2021 06:34
Tunnel IPFS API via SSH
#!/usr/bin/env bash
REMOTE_HOST=${1-"YOUR REMOTE HOST HERE"}
DEFAULT_API_FILE="$HOME/.ipfs/api"
API_FILE="${IPFS_PATH-$DEFAULT_API_FILE}"
if [ -e "$API_FILE" ]; then
echo "IPFS API is already running"
exit 1
fi
@Kubuxu
Kubuxu / NeverSink.filter
Created March 20, 2016 08:31
NeverSink's lootfilter
#---------------------------------------------------------------------------------------------------------------
# NeverSink's Indepth Loot Filter
# VERSION 3.12 - Full Version
#---------------------------------------------------------------------------------------------------------------
#
# You can always find the latest version here:
# http://pastebin.com/Af00CbhA
# Forum discussion thread. You can post question and feedback here:
# http://www.pathofexile.com/forum/view-thread/1246208/page/1
# Please use this thread for feedback, questions and suggestions
defer func() {
var fr [3]uintptr
runtime.Callers(1, fr[:])
frames := runtime.CallersFrames(fr[:])
if _, ok := frames.Next(); !ok {
return
}
frame, ok := frames.Next()
if !ok {
return
#!/usr/bin/env bash
cat <<EOF | xargs -L1 ipfs ping -n 1
QmUd6zHcbkbcs7SMxwLs48qZVX3vpcM8errYS7xEczwRMA
QmbVWZQhCGrS7DhgLqWbgvdmKN7JueKCREVanfnVpgyq8x
QmUEMvxS2e7iDrereVYc5SWPauXPyNwxcy9BXZrC1QTcHE
QmdnXwLrC8p1ueiq2Qya8joNvk3TVVDAut7PrikmZwubtR
QmNSYxZAiJHeLdkBg38roksAR9So7Y5eojks1yjEcUtZ7i
EOF

Ingredients for 12 buns:

  • 450g of white, high protein flour
  • 15g of potato starch or flour
  • 10g of sugar
  • 20g of fresh yeast (I think it might not be easy to find in US so active dry or instant should work too, use about 8g or less).
  • 125ml of milk
  • 125ml of lukewarm water
  • 7g of salt
  • 25g of neutral oil (sunflower, canola)
@Kubuxu
Kubuxu / rand_reads
Last active December 8, 2019 19:53
4KiB, 2525KiB/s
8KiB, 5177KiB/s
12KiB, 6992KiB/s
16KiB, 10.0MiB/s
24KiB, 12.4MiB/s
32KiB, 19.8MiB/s
64KiB, 38.7MiB/s
128KiB, 40.8MB/s
256KiB, 39.6MiB/s
512KiB, 54.8MiB/s