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 / 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 May 8, 2024 09:36
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 / network-socks
Last active August 29, 2015 14:11
Enable Socks on all network devices and create ssh connection, remove it afterwards
#!/bin/sh
echo "Setting up Socks Network"
networksetup listallnetworkservices|grep -v "*"|while read device
do
echo "$device"
sudo networksetup -setsocksfirewallproxy "$device" localhost 8080
sudo networksetup -setsocksfirewallproxystate "$device" on
done

Keybase proof

I hereby claim:

  • I am bitboxer on github.
  • I am bitboxer (https://keybase.io/bitboxer) on keybase.
  • I have a public key whose fingerprint is 44CA 071B 2F98 7A7C 30EE FFF0 75CF 15D5 BE5B 07AA

To claim this, I am signing this object:

@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