Skip to content

Instantly share code, notes, and snippets.

View grisu48's full-sized avatar
🏠
Working from home

Felix Niederwanger grisu48

🏠
Working from home
View GitHub Profile
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
2017/02/10 13:05:50 [...ules/context/repo.go:285 func1()] [E] GetBranches: exit status 1
2017/02/10 13:06:01 [...ules/context/repo.go:285 func1()] [E] GetBranches: exit status 1
@grisu48
grisu48 / AESStream.java
Last active April 28, 2017 08:10
AES Stream implementations, Based on https://gist.github.com/bricef/2436364
package ssl;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
@grisu48
grisu48 / AES.c
Created April 27, 2017 11:08 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>
@grisu48
grisu48 / mosquitto.hpp
Created May 18, 2017 13:49
Mosquitto C++ Wrapper
/**
* Mosquitto C++ Wrapper
* (C) 2017, Felix Niederwanger
* MIT License
*/
#ifndef _MOSQUITTO_HPP_
#define _MOSQUITTO_HPP_
#include <string>
@grisu48
grisu48 / tcpserver.c
Last active May 18, 2017 19:26
General TCP based multithreaded server
/*
* TCP template for creating multithreaded server instances
* 2017, Felix Niederwanger
* MIT License
*
* Usage: See main function at the end
* Compile with -pthread
*/
#include <unistd.h>

Keybase proof

I hereby claim:

  • I am grisu48 on github.
  • I am grisu48 (https://keybase.io/grisu48) on keybase.
  • I have a public key ASCYZ-zOBFyVNbkyUi5JYIjPXSEzr0gXGjQbHU9yS_ZVBwo

To claim this, I am signing this object:

@grisu48
grisu48 / tmux-cheatsheet.markdown
Created April 23, 2018 08:16 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@grisu48
grisu48 / simple_REST.go
Created April 23, 2018 08:21
Simple REST/Sqlite3 program in GO
/* Simple GO REST interface from https://github.com/bopbi/simple-todo */
/* To thet it running, do
* go get github.com/mattn/go-sqlite3
* go get github.com/bmizerany/pat
* go run simple_REST.go
*/
package main
import (
@grisu48
grisu48 / mosquitto.go
Created April 25, 2018 07:41
Mosquitto Subscriber in GO
/* Simple mosquitto subscriber in GO
* See https://gist.github.com/grisu48/9de045bce4247d50209748c5e134542f
*/
package main
import (
"fmt"
"os"
"os/signal"