Skip to content

Instantly share code, notes, and snippets.

Thorsten thorsteneckel

Block or report user

Report or block thorsteneckel

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
thorsteneckel /
Last active Mar 8, 2019
ejurgensen/forked-daapd on FreeBSD 10.1

forked-daapd on FreeBSD 10.1

These are my steps installing 'ejurgensen/forked-daapd' on my FreeBSD 10.1 amd64 using user root and editor joe. Feedback would be great!

create working folder

export WORKDIR=/usr/local/src/forked-daapd
mkdir -p $WORKDIR
thorsteneckel / snippets
Last active Mar 17, 2018
Disable all ruby snippets from Sublime 3
View snippets
# mac version
unzip -l /Applications/Sublime\ | grep '.sublime-snippet' | awk '{print $4}' | xargs -L 1 -I {} touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/{}
thorsteneckel / books_controller.rb
Last active Nov 10, 2015 — forked from cupakromer/books_controller.rb
Rails 4 Standard CRUD Controller
View books_controller.rb
# This is a fairly basic / bare controller which does only the basic CRUD.
class BooksController < ApplicationController
before_action :set_book, only: [:show, :edit, :update, :destroy]
def index
respond_with @books = Book.all
def show
respond_with @book
thorsteneckel / facebook_com_video_link.js
Created Dec 16, 2014
Extract video links from via JS console of your browser
View facebook_com_video_link.js
thorsteneckel / OTRSSubjectParse.js
Last active Aug 29, 2015
Parse OTRS subject for TicketNumber and Title in JavaScript
View OTRSSubjectParse.js
function SubjectParse ( Subject, Hook ) {
var Data = {};
var SubjectRegExp = new RegExp( '^'+ Hook + '(\\d+)\\s*(?:-|–)\\s*(.+)$','');
var Match = SubjectRegExp.exec(Subject);
if ( Match && Match.length ) {
Data['Subject'] = Match[0];
Data['TicketNumber'] = Match[1];
thorsteneckel /
Last active Aug 29, 2015
Find statement to get list of files for OTRS SOPM Filelist
# Explanation:
# find
# -name .git -prune -o = skip everything with .git in the name
# -type d -o = skip folders
# -name .DS_Store -prune -o = skip Mac OS X .DS_Store files
# -name "*.sopm" -prune -o = skip SOPM file itself
# -print
# sed
thorsteneckel / HowTo.txt
Last active Aug 29, 2015
Display pending time in date format in AgentTicketZoom (KIX4OTRS)
View HowTo.txt
Usualy the pending time is displayed like this in the AgentTicketZoom view:
Pending till:
23 h
49 m
This gist describes how to change the display format to:
Pending till:
26.06.2014 19:30
You can’t perform that action at this time.