Skip to content

Instantly share code, notes, and snippets.

View jakubboucek's full-sized avatar
🚄
Living in trains

Jakub Bouček jakubboucek

🚄
Living in trains
View GitHub Profile
@jakubboucek
jakubboucek / tail.php
Created February 7, 2020 01:55
Php real file monitoring
<?php
declare(ticks=1);
$file = __DIR__ . '/scratch.log';
$f = popen(sprintf('tail -n 0 -f %s', escapeshellarg($file)), 'rb');
while (feof($f) === false) {
$buffer = fgets($f);
echo "Line: $buffer";
usleep(1000);
@jakubboucek
jakubboucek / verification.txt
Created August 30, 2019 20:19
Verifying my Blockstack ID is secured with the address
Verifying my Blockstack ID is secured with the address 19KPFUNsZ1EZffesKRgWawQHkp11MgrfdK https://explorer.blockstack.org/address/19KPFUNsZ1EZffesKRgWawQHkp11MgrfdK
@jakubboucek
jakubboucek / Bootstrap.php
Last active August 23, 2019 14:48
Array configurator
<?php
declare(strict_types=1);
namespace App;
// Bootstrap je třída, která se stará o zavedení aplikace.
class Bootstrap
{
public static function boot(): AppLoader
@jakubboucek
jakubboucek / efail-test.eml
Last active May 16, 2018 17:03
EFAIL test email
From: "Automated EFAIL test" <pan@jakubboucek.cz>
Subject: EFAIL vulnerability test
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="BOUNDARY"
--BOUNDARY
Content-Type: text/html; charset=UTF-8
Část první: Lorem ipsum dolor sit amet, consectetur adipiscing elit. <small>(ion.cz/efail)</small>
--BOUNDARY
@jakubboucek
jakubboucek / xor-led.ino
Last active December 23, 2017 12:52
Arduino, 2 button, 2 LEDs, 1 XOR
int buttonResetId = 2;
int button1Id = 3;
int button2Id = 4;
int ledId = 5;
int ledMonitorId = 6;
int ledActivityId = LED_BUILTIN;
bool defaultState = false;
bool lastState = false;
bool monitorTogglerState = false;
@jakubboucek
jakubboucek / openpgp.txt
Created October 7, 2017 15:03
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dc0bc65a07fd97e3217952f6225fdc9c0bfaa273]
@jakubboucek
jakubboucek / openpgp.txt
Created October 7, 2017 15:03
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dc0bc65a07fd97e3217952f6225fdc9c0bfaa273]
@jakubboucek
jakubboucek / openpgp.txt
Created October 7, 2017 15:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dc0bc65a07fd97e3217952f6225fdc9c0bfaa273]
@jakubboucek
jakubboucek / openpgp.txt
Created October 7, 2017 15:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dc0bc65a07fd97e3217952f6225fdc9c0bfaa273]
@jakubboucek
jakubboucek / openpgp.txt
Created October 7, 2017 15:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dc0bc65a07fd97e3217952f6225fdc9c0bfaa273]