Skip to content

Instantly share code, notes, and snippets.

View naibaf0's full-sized avatar

Fabian Hinz naibaf0

  • Darmstadt, Germany
View GitHub Profile
import org.testng.annotations.*;
import static org.testng.Assert.*;
@Test
public class TestPostOffice {
public void testAddNewProductWhenProductIsNotUnique() {
Product dup = new Product("duplicate", "", 8, 10);
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
@naibaf0
naibaf0 / arch-audit.hook
Last active November 7, 2019 10:12
Pacman Hooks
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
@naibaf0
naibaf0 / script.py
Last active March 2, 2018 09:28
A skeleton for a python script.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SYNOPSIS
python SCRIPT.py [-h,--help] [-v,--verbose]
DESCRIPTION
@naibaf0
naibaf0 / lstlang0.sty
Created August 16, 2017 07:59
Latex Listings definition Golang
%% Listings definition for Go language
%% Go language reference : http://www.golang.org
%% Author : Uriel Corfa <[email protected]>
%% Project home: https://bitbucket.org/korfuri/golang-latex-listings
\ProvidesFile{lstlang0.sty}
[2012/04/13 1.1 listings language file for GoLang]
\lst@definelanguage{Go}
{morekeywords=[1]{break,case,chan,const,continue,default,defer,%
else,fallthrough,for,func,go,goto,if,import,interface,map,%
@naibaf0
naibaf0 / eduroam
Created November 28, 2016 23:29
Netctl configuration file for connection with eduroam
Description='eduroam network'
Interface=wifi0
Connection=wireless
Security='wpa-configsection'
IP=dhcp
ESSID=eduroam
WPAConfigSection=(
'ssid="eduroam"'
'key_mgmt=WPA-EAP'
'eap=TTLS'