Skip to content

Instantly share code, notes, and snippets.

View h4cc's full-sized avatar

Julius Beckmann h4cc

  • ZENNER IoT Solutions
  • Hamburg, Germany
View GitHub Profile
@h4cc
h4cc / with_example.exs
Created June 12, 2017 06:31
Elixir example for using "with" for a "unhappy path" lol.
#
# Checkout: WithExample.inverse_with
#
defmodule WithExample do
# Helper functions
def ok(result), do: {:ok, result}
def error(error), do: {:error, error}
@h4cc
h4cc / Makefile
Created April 26, 2017 09:43
Ubuntu 17.04 Zesty Zapus - Basic packages i usually install
#
# Ubuntu 17.04 (Zesty Zapus)
#
# Basic packages i usually install.
#
# Author: Julius Beckmann <github@h4cc.de>
#
# Upgraded Script from 16.04: https://gist.github.com/h4cc/fe48ed9d85bfff3008704919062f5c9b
# Upgraded Script from 14.04: https://gist.github.com/h4cc/7be7f940325614dc59fb
Wissensfragen
Alexa, warum ist der Himmel blau?
Alexa, wie hoch ist der Mount Everest?
Alexa, was ist die Hauptstadt von ?
Alexa, was war das erste Album von ?
Alexa, was ist die Quadratwurzel von 64?
Alexa, wer ist der Sänger von ?
Alexa, wie weit ist es von hier bis ? GEHT NICHT
Alexa, was ist die Definition von paradox?
@h4cc
h4cc / my-xubuntu-shortcuts.md
Last active May 3, 2017 10:40
XUbuntu Shotcuts
@h4cc
h4cc / howto.md
Created October 4, 2016 09:14
Linux: Howto: bizhub C280 : Linux Cups driver
wget -O "KMbeuUXv1_11-EFIGS.tgz" "https://o.cses.konicaminolta.com/file/Default.aspx?FilePath=DL/201605/30111732/KMbeuUXv1_11%20EFIGS.tgz"
tar xfvz KMbeuUXv1_11-EFIGS.tgz
cd KMbeuUXv1_11\ EFIGS/
sudo ./install.pl
@h4cc
h4cc / topics.exs
Last active August 30, 2016 09:11
Some ideas for topics to discuss at hh.ex meetup
# Return values
# What is the difference here?
Logger.warn("Something went wrong!")
# and
:ok = Logger.warn("Something went wrong!")
# What will happen when that logger is added?
def do_somtething(), do: {:ok, 42}
@h4cc
h4cc / google-quic-notes.md
Created August 2, 2016 06:29
Some notes a made from blog post by Mattias Geniar

Notes on Google QUIC

Source: https://ma.ttias.be/googles-quic-protocol-moving-web-tcp-udp/

  • TCP has Handshakes and slow TLS negotiation.
  • TCP has a "synchronous nature".
  • QUIC builds on UDP and tries to be faster than TCP.
  • It may easier to deploy a new protocol, than improving existing TCP.
  • QUIC adopts well to HTTP2.
  • QUIC provides:
#!/bin/sh
git shortlog -sn | cut -f2 | sort --ignore-case > CONTRIBUTORS
@h4cc
h4cc / cynefin-notizen.md
Created May 2, 2016 19:59
Ein paar Notizen zu Cynefin.

Cynefin

Domänen

  • Unterscheidung von Systemen in 4 angrenzende aber fließend übergehende Domänen:
    • Einfach
    • Kompliziert
    • Komplex
  • Chaotisch
@h4cc
h4cc / Makefile
Last active April 17, 2019 15:54
Ubuntu 16.04 LTS Xenial Xerus - Basic packages i usually install
#
# Ubuntu 16.06 LTS (Xenial Xerus)
#
# Basic packages i usually install.
#
# Author: Julius Beckmann <github@h4cc.de>
#
# Upgraded Script from 14.04: https://gist.github.com/h4cc/7be7f940325614dc59fb
#