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 / doubleSerialize.lua
Last active May 26, 2024 19:37
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 / keybase.md
Created April 20, 2015 10:12
keybase.md

Keybase proof

I hereby claim:

  • I am kubuxu on github.
  • I am kubuxu (https://keybase.io/kubuxu) on keybase.
  • I have a public key whose fingerprint is 2836 EF0B 0F02 1DB4 9A1E 8DE8 09B9 A726 3267 5D5B

To claim this, I am signing this object:

@Kubuxu
Kubuxu / cjsnds.pac
Created June 25, 2015 12:26
PAC file for cjdns proxy
function FindProxyForURL(url, host) {
// If we can't resolve this means that this host is IPv4 only. Trying cjdns won't hurt.
// It also make IPv4 only hosts connect ot clearnet IPv6 hosts if proxy is IPv6 capable.
// If we can resolve check if the host is insice cjdns network space.
if (shExpMatch(host, "fc*:*") || !dnsResolve(host) || shExpMatch(dnsResolve(host), "fc*:*")) {
return "SOCKS5 localhost:8080";
}
return "DIRECT";
}
@Kubuxu
Kubuxu / dispatch.md
Last active September 8, 2015 06:30
FuelRats

Fuel Rat Dispatch

RATSIGNAL

Say your Cmdr name and the closest simple named system found in the navigation list on the left. PC or XB1.

Emergency Air

If you are on Emergency air log out to the main menu. If not drop SC and turn off all modules EXCEPT life support.

Wing Mechanic

Are you familiar with wing mechanics?

@Kubuxu
Kubuxu / keys
Last active September 13, 2015 13:10
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
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
Mathematical Analysis:
* Kinga MC Inerney (duty hours: Wed. 8:15am-9:9:45
* stolot@agh.edu.pl
* 16, 22th - basic Test
* differentiation
* Taylor
* curve scratching
* 13, 19ᵗʰ Nov - Exam
* indefinite integrals - 10, 11st Dec - Exam

Mathematical Analysis:

  • Kinga MC Inerney (duty hours: Wed. 8:15am-9:9:45
  • stolot@agh.edu.pl
  • 16, 22ᵗʰ Oct - basic Test
  • differentiation, Taylor series, curve scratching
  • 13, 19ᵗʰ Nov - Exam
  • indefinite integrals - 10, 11st Dec - Exam
  • definite integrals - 7, 8ᵗʰ Jan
  • Final additional test - 18ᵗʰ Jan
@Kubuxu
Kubuxu / glibc.log
Last active January 25, 2016 05:32
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
@Kubuxu
Kubuxu / ipfs-publish
Created February 22, 2016 16:04
Script to publish directory to filesAPI with timestamping support
#!/usr/bin/env bash
usage() {
echo "$0 [dir_to_publish [, target_dir_in_files_api]]"
echo "If there are no arguments file .ipfspublish in current working directory is loaded and evaluated."
echo "It has to assign value to PUBLIC_DIR and can assign value to TARGET_DIR."
echo "If there is no target directory specified its value is same as public directory."
exit 1
}