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
prefork / dns.rb
Created May 3, 2011
Quick and dirty way to import a Zonefile into PointHQ DNS
View dns.rb
# PointHQ Importer for BIND Records
# Disclaimer: This will probably break stuff
# Copyright (C) 2011 Nate (@rdnck76)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
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)
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;
jberger / gist:3916068
Created Oct 19, 2012
darabase app example
View gist:3916068
#!/usr/bin/env perl
use Mojolicious::Lite;
# connect to database
use DBI;
my $dbh = DBI->connect("dbi:SQLite:database.db","","") or die "Could not connect";
# shortcut for use in template
helper db => sub { $dbh };
taylor / HOWTO-bitlbee+hipchat.mkd
Created Dec 16, 2012
Using bitlbee with HipChat
View HOWTO-bitlbee+hipchat.mkd

Using bitlbee with HipChat

Initial setup

  • account add jabber 'PASSWORD'
  • account hipchat set nick_source full_name
  • account hipchat set resource bot
  • account hipchat on
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)
jehiah / git-branch-status
Last active Aug 20, 2018
show git ahead/behind info for branches
View git-branch-status
moved to github -->
lox /
Last active Nov 19, 2018
A bash script to select the fastest ubuntu apt geo-mirror
#!/bin/bash -e
# benchmarks closest ubuntu mirrors and outputs them in speed order
# bash -c "$(curl -fsSL"
RELEASE=$(lsb_release -c -s 2>/dev/null || echo 14.04)
MIRRORS=$(curl -s
packz / 000.mkd
Created Nov 15, 2012
Static cryptsetup
View 000.mkd

I suppose you use Debian-like systems

$ mkdir rootdir && cd rootdir && export ROOTDIR=$PWD
$ apt-get source libdevmapper1.02.1
$ apt-get source cryptsetup
You can’t perform that action at this time.