Skip to content

Instantly share code, notes, and snippets.

Ján Sáreník jsarenik

Block or report user

Report or block jsarenik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JakubVanek / Framebuffer to PNG
Last active Aug 10, 2019
Convert raw BGRA framebuffer to RGB png file
View Framebuffer to PNG
This program can be used to convert raw BGRA 8888 framebuffer to standard PNG file.
eatnumber1 / renameat2.c
Last active Jul 21, 2019
Command-line tool to call renameat2(2)
View renameat2.c
#define _GNU_SOURCE
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <getopt.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
godber / ncp
Created Jan 10, 2015
ncp - Netcat and Pigz based network file copy (faster than scp, but unencrypted)
View ncp
#! /usr/bin/bash
# ncp - Netcat and Pigz based network file copy (faster than scp, but unencrypted)
# From this blog post
FILE_DIR=$(dirname $FILE_FULL)
myusuf3 /
Created Nov 3, 2014
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
gavinandresen /
Last active Aug 16, 2019
O(1) block propagation

O(1) Block Propagation

The problem

Bitcoin miners want their newly-found blocks to propagate across the network as quickly as possible, because every millisecond of delay increases the chances that another block, found at about the same time, wins the "block race."

CoinWhisperer / burn-btc
Last active Jun 28, 2019
A simple python program to create bitcoin burn addresses.
View burn-btc
#! /usr/bin/env python
burn-btc: create a bitcoin burn address
By James C. Stroud
This program requries base58 (
Call the program with a template burn address as the only argument::
penk / main.cpp
Last active Sep 13, 2016
minimal QtWebEngine example
View main.cpp
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtWebEngine/qtwebengineglobal.h>
int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQmlApplicationEngine appEngine;
zbrdge / mDNSResponder.plist.patch
Created Apr 12, 2014
OS X Chroot mDNSResponder
View mDNSResponder.plist.patch
--- /System/Library/LaunchDaemons/ 2014-04-12 05:15:39.000000000 -0700
+++ /tmp/ 2014-04-12 05:15:11.000000000 -0700
@@ -26,6 +26,7 @@
+ <array>
View README.txt
nweb README for version 23
1) Bug fixed - was duplicating errors in the nweb.log file
- thanks to Kieran Grant for stopping this and pointing out the fix.
2) Added support for favicon.ico - if nothing elase this will stop annoying
errors in the log file. Most browsers on first encountering a webpage
also ask for this file. The name mean favourite icon - Wikipedia has
more on this. It is a tiny Bit Map image (normally called .bmp and
BMP editors can be used to create one - I used Windows Paint)
View nweb23.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
You can’t perform that action at this time.