Skip to content

Instantly share code, notes, and snippets.

View JPT580's full-sized avatar

Jan Philipp Timme JPT580

View GitHub Profile

Keybase proof

I hereby claim:

  • I am JPT580 on github.
  • I am jottpehtee (https://keybase.io/jottpehtee) on keybase.
  • I have a public key whose fingerprint is D66F 4F76 87CD 68D7 8EA9 D12D 3B1C 09F0 2E57 908E

To claim this, I am signing this object:

package main
import "fmt"
func main() {
data_pipe := make(chan string)
go produce(data_pipe)
done_one := make(chan bool)
done_two := make(chan bool)
@JPT580
JPT580 / AspectsOfServiceDocumentation.txt
Last active February 4, 2017 15:00
An attempt to collect the most important aspects of doing service documentation inspired by ITIL
When documenting services (inspired by ITIL), these viewpoints (#) with their aspects (+) are interesting:
# Service (viewpoint for end users using the service)
+ criticality
+ maintenance windows
+ guaranteed uptime
+ guaranteed time to repair
+ guaranteed time windows in which repairs will be done (weekdays, weekends, holidays, ... / 8 AM - 10 PM)
+ end user manual, faq
+ communication strategy for changes, issues, downtimes, maintenance windows, ...
@JPT580
JPT580 / basic_socket_test.c
Created December 25, 2014 22:11
A very basic example how to establish a TCP connection to a hostname+port in C using the very basic sockets. This does not take care of connection loss or anything else you can imagine. It just reads from the socket into a buffer and prints it out.
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
extern int errno;