Skip to content

Instantly share code, notes, and snippets.

Julian Kornberger corny

Block or report user

Report or block corny

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@corny
corny / otrs.service
Created Mar 1, 2019
Sytemd unit for OTRS
View otrs.service
[Unit]
Description=OTRS daemon
After=network.target
Requires=mysql.service
[Service]
Type=forking
ExecStart=/opt/otrs/bin/otrs.Daemon.pl start
User=otrs
Restart=on-failure
@corny
corny / upgrade.sh
Created Feb 26, 2019
Notes to Upgrade OTRS 2.2 to 4.0
View upgrade.sh
#/bin/sh
host="otrs.example.com"
pass="topsecret"
rsync -av $host:/var/lib/mysql /var/lib/ --exclude usr_\* --exclude confixx --delete
rsync $host:/etc/mysql/debian.cnf /etc/mysql/
# Perl-Pakete für OTRS
apt install --no-install-recommends libtimedate-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libtext-csv-xs-perl libjson-xs-perl libgd-graph-perl libapache-dbi-perl libcrypt-eksblowfish-perl libarchive-zip-perl libtemplate-perl libyaml-libyaml-perl
@corny
corny / sshtunnel.go
Last active Aug 28, 2018 — forked from svett/sshtunnel.go
SSH tunnelling in Golang
View sshtunnel.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net"
"os"
@corny
corny / dynv6.py
Created Feb 14, 2018
dynv6 python script
View dynv6.py
#!/usr/bin/env python2
import subprocess
import re
import urllib2
import os
hostname = "xxx.dynv6.net"
token = "your-secret-token"
@corny
corny / event.go
Last active Apr 16, 2018
Golang observer for devd.pipe
View event.go
package devd
import "strings"
const (
NotifyEvent = iota
DeviceAttached
DeviceDetached
Unknown
)
@corny
corny / dhcp_discover.go
Created Oct 28, 2017
DHCP discover with Go and raw sockets
View dhcp_discover.go
package main
import (
"log"
"math/rand"
"net"
"os"
"os/signal"
"syscall"
@corny
corny / photobox.py
Last active Oct 7, 2017
Raspberry Pi + Picamera = Photobox
View photobox.py
#!/usr/bin/env python3
import bottle
import datetime
import picamera
import RPi.GPIO as GPIO
import sys
import signal
import threading
import time
@corny
corny / puma.service
Created Sep 24, 2017
Puma mit Socket Activation
View puma.service
[Unit]
Description=Puma HTTP Server
After=network.target
Requires=puma.socket
[Service]
User=wiki
# Helpful for debugging socket activation, etc.
Environment=PUMA_DEBUG=1
@corny
corny / txt2pdf.py
Last active May 6, 2017
Wandelt .txt-Emails von Fragdenstaat in PDFs um
View txt2pdf.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from pylatex import *
from pylatex.utils import italic
import fileinput
import sys
from email.header import decode_header, make_header
import io
import argparse
@corny
corny / Makefile
Last active Feb 23, 2017
Redirecting HTTP server
View Makefile
CC=gcc
CFLAGS=-I. -Wall -Wextra
OBJ = redirect.o
redirect: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
clean:
rm -f redirect redirect.o
You can’t perform that action at this time.