Skip to content

Instantly share code, notes, and snippets.

View bitboxer's full-sized avatar
🤟

Bodo Tasche bitboxer

🤟
View GitHub Profile
@bitboxer
bitboxer / index.html
Created March 5, 2024 12:11
index.html
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<title>Test Page</title>
<script src="https://cdn.dashjs.org/latest/dash.all.debug.js"></script>
<script class="code">
function init() {
@bitboxer
bitboxer / output.log
Created March 5, 2024 07:45
Log output
at https://tunnel4.player-dev.tvnow.de/?CH=1 DashJS playbackTimeUpdated
at https://tunnel4.player-dev.tvnow.de/?CH=1 DashJS playbackProgress
at https://tunnel4.player-dev.tvnow.de/?CH=1 DashJS playbackTimeUpdated
at https://tunnel4.player-dev.tvnow.de/?CH=1 DashJS playbackProgress
4at https://tunnel4.player-dev.tvnow.de/?CH=1 DashJS playbackTimeUpdated
[25913][PlaybackController] Native video element event: waiting
at https://cdn.dashjs.org/latest/dash.all.min.js [27178][GapController] Jumping to end of stream because of gap from 634.197311 to 634.566. Gap duration: 0.3686890000000176
at https://cdn.dashjs.org/latest/dash.all.min.js [27180][PlaybackController] Requesting seek to time: 634.566
[27182][PlaybackController] Seeking to: 634.566
at https://cdn.dashjs.org/latest/dash.all.min.js [27188][Stream] onBufferingCompleted - trigger STREAM_BUFFERING_COMPLETED
@bitboxer
bitboxer / makeImage.sh
Created May 8, 2011 18:11
create a sparsebundle for mac os backups
#!/bin/bash
# A bash script to create a time machine disk image suitable for
# backups with OS X 10.6 (Snow Leopard)
# This script probably only works for me, so try it at your own peril!
# Use, distribute, and modify as you see fit but leave this header intact.
# (R) sunkid - September 5, 2009
#
# This will create a time machine ready disk image named with your
# computer's name with a maximum size of 600GB and copy it to
# /Volumes/backup. The image "file" (it's a directory, really) will
@bitboxer
bitboxer / slack-pr-bookmarklet.md
Last active January 23, 2020 08:17
Better Slack PR messages

After reading this blogpost by Thoughtbot I got the idea to implement a simple bookmarklet to help me create these beautiful PR messages in slack.

If you want it, too, simply create a bookmark with the following Javascript as link:

javascript: (function() {const diffStat = document.getElementById("diffstat").textContent.replace(/(\r\n\t|\n|\r\t)/gm,"").trim().replace(/\s\s+/g, ' ');  window.prompt("Copy this", ":pullrequest: " + window.location.toString() + " " + diffStat);})();

Navigate to a GitHub PR and click on the bookmark. You will see a messagebox where you can copy the text and

@bitboxer
bitboxer / tower.sh
Last active June 25, 2018 15:19
Open tower in current directory
# opens the current git repo in tower if no argument is given
tower() {
if [[ "$#" > 0 ]]; then
gittower $@
else
gittower `git rev-parse --show-toplevel`
fi
}
@bitboxer
bitboxer / gist:6567487
Created September 15, 2013 02:16
zephyros crash
Process: Zephyros [49976]
Path: /Applications/Zephyros.app/Contents/MacOS/Zephyros
Identifier: org.degutis.Zephyros
Version: 5.1.1 (5.1.1)
Code Type: X86-64 (Native)
Parent Process: launchd [238]
User ID: 501
Date/Time: 2013-09-14 16:51:59.864 +0200
OS Version: Mac OS X 10.8.5 (12F37)
@bitboxer
bitboxer / terminal_recorder.rb
Last active December 17, 2015 17:48
First version of a terminal recorder. Just for the fun of it
# Highly inspired by https://github.com/sickill/ascii.io-cli/blob/master/bin/asciiio
require 'pty'
CTRL_C_CODE = ?\C-c
def record(command)
old_state = `stty -g`
begin
@bitboxer
bitboxer / jarpod.md
Created September 2, 2012 18:49
Java dependency solution

Java Dependency Solution

  • Bundler/Cocoapods like Interface with Jarpod - File
  • possible commands
    • jarpod search json
    • jarpod install
    • jarpod update
  • Update IDEs with new dependencies
    • eclipse
  • android package manager
@bitboxer
bitboxer / kvb_coordinates.md
Created April 1, 2012 15:23
KVB station coordinates
body {
height: 290px;
font-family: sans-serif;
font-size: 13px;
padding: 5px;
}
form {
display:none;
width: 200px;