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 / 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"
@grisu48
grisu48 / hostapd.conf
Created April 26, 2018 18:25
Default hostapd.conf
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames with the Host AP driver); wlan0 with many nl80211 drivers
# Note: This attribute can be overridden by the values supplied with the '-i'
# command line parameter.
interface=wlan0
# In case of atheros and nl80211 driver interfaces, an additional
@grisu48
grisu48 / downloadGarmin.py
Last active May 2, 2018 07:16
Simple Python script to download current maps for my Garmin
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Python script for downloading the current GARMIN maps
import os
import requests
import random
import string