Skip to content

Instantly share code, notes, and snippets.

View zbycz's full-sized avatar

Pavel Zbytovský zbycz

View GitHub Profile
@zbycz
zbycz / run.sh
Last active December 29, 2015 10:09
**PAR toolchain** Pokud si dáte časové výstupy do stderr, máte pak krásné podkladové data pro vytvoření grafu. Enjoy!
#!/bin/bash
# PAR tool-chain by zbytopav & hajekm13 :-)
# https://gist.github.com/zbycz/7655258
if [[ $# -lt 5 ]] ; then
echo Spusteni:
echo " ./run.sh typ_ziletky #proc|seq fronta binarka argumenty [infiniband]"
echo
echo ' napr: ./run.sh 4c 16 fast ./bin-par "data001.txt arg2 arg3"'
@zbycz
zbycz / 0_reuse_code.js
Created January 20, 2014 21:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zbycz
zbycz / DateTime.php
Created March 4, 2014 23:11
PHP class DateTime - week support and more
<?php
namespace Clevispace;
/**
* @author Pavel Zbytovský
*/
class DateTime extends \Nette\DateTime
{
@zbycz
zbycz / TreeNode.php
Created March 4, 2014 23:24
Closure tree implementation
<?php
/**
* Class for smart browsing of recursive structures
*
* example:
* {var $node = $rootNode}
* <ul>
* {block #groups}
<!doctype html>
<meta charset=utf-8>
<title></title>
<section itemscope itemtype="http://data-vocabulary.org/Person">
My name is <span itemprop="name">Jindřich Jiný</span> and I work as a <span itemprop="title">post-doc</span>
at the <span itemprop="affiliation">Moje organizace Coolname</span>.
<section itemprop="address" itemscope itemtype="http://data-vocabulary.org/Address"> My office address is
<span itemprop="street-address">Technická 2</span>, <span itemprop="postal-code">16100<span>,
@zbycz
zbycz / github_gpg_key.md
Created April 17, 2018 08:56 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# Mac
@zbycz
zbycz / web-incoming.js
Created April 27, 2018 19:00
http-proxy with ssl dump
var httpNative = require('http'),
httpsNative = require('https'),
web_o = require('./web-outgoing'),
common = require('../common'),
followRedirects = require('follow-redirects');
web_o = Object.keys(web_o).map(function(pass) {
return web_o[pass];
});
#!/usr/bin/env bash
USERNAME='xxx' PASSWORD='xxx' yarn examples-server
@zbycz
zbycz / facebook-messages-to-csv.php
Created June 23, 2018 09:57
Transforms all Facebook Messanger to CSV meta file for further analysis
<?php
// Open https://www.facebook.com/your_information/ and click "Download"
// then select JSON format (and optionaly low quality media) and hit "Create file"
$zip = zip_open("facebook-messages.zip");
$fw = fopen("messages.csv", "w");
if (is_resource($zip)) {
while ($zip_entry = zip_read($zip)) {

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: