Skip to content

Instantly share code, notes, and snippets.

View sashagoebbels's full-sized avatar
:octocat:
Thinking a lot

Dr. Sasha Göbbels sashagoebbels

:octocat:
Thinking a lot
View GitHub Profile
@sashagoebbels
sashagoebbels / split.py
Created January 8, 2019 22:00 — forked from fdemmer/split.py
Quick and dirty mp4 file cutting by cue sheet.
#!/usr/bin/python
"""Quick and dirty mp4 file cutting by cue sheet.
The cue sheet shall look somewhat like this::
PERFORMER "Calexico & ORF Radio-Symphonieorchester"
TITLE "FM4 Radiosession mit Calexico"
FILE "mp4_rs_calexico_final_2_q4a_200152.mp4" MP3
TRACK 01 AUDIO
@sashagoebbels
sashagoebbels / visual-event-2_bookmarklet.js
Created September 21, 2018 09:05 — forked from thegitfather/visual-event-2_bookmarklet.js
Visual Event is an open source Javascript bookmarklet which provides debugging information about events that have been attached to DOM elements. Visual Event shows: Which elements have events attached to them. The type of events attached to an element. The code that will be run with the event is triggered. The source file and line number for whe…
javascript:(function()%20{var%20protocol%20=%20window.location.protocol%20===%20'file:'%20?'http:'%20:%20'';var%20url%20=%20protocol+'//www.sprymedia.co.uk/VisualEvent/VisualEvent_Loader.js';if(%20typeof%20VisualEvent!='undefined'%20)%20{if%20(%20VisualEvent.instance%20!==%20null%20)%20{VisualEvent.close();}else%20{new%20VisualEvent();}}else%20{var%20n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src',url+'?rand='+new%20Date().getTime());document.body.appendChild(n);}})();
function chmown {
if [ -z "$1" ]
then
echo "Usage: chmown <rights> <owner> <target>"
return 1
fi
if [ -z "$2" ]
then
echo "Usage: chmown <rights> <owner> <target>"
return 2