Skip to content

Instantly share code, notes, and snippets.

Avatar
🍼
Parenting

Bodo Tasche bitboxer

🍼
Parenting
View GitHub Profile
@bitboxer
bitboxer / makeImage.sh
Created May 8, 2011
create a sparsebundle for mac os backups
View makeImage.sh
#!/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 Jan 23, 2020
Better Slack PR messages
View slack-pr-bookmarklet.md

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 Jun 25, 2018
Open tower in current directory
View tower.sh
# 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
}
View gist:6567487
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 Dec 17, 2015
First version of a terminal recorder. Just for the fun of it
View terminal_recorder.rb
# 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 Sep 2, 2012
Java dependency solution
View jarpod.md

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 Apr 1, 2012
KVB station coordinates
View kvb_coordinates.md
View gist:1803510
body {
height: 290px;
font-family: sans-serif;
font-size: 13px;
padding: 5px;
}
form {
display:none;
width: 200px;
@bitboxer
bitboxer / devise.de.yml
Created Oct 11, 2011 — forked from chrugail/devise.de.yml
german i18n for devise
View devise.de.yml
de:
errors:
messages:
expired: "ist abgelaufen, bitte fordern Sie es neu an"
not_found: "nicht gefunden"
already_confirmed: "wurde bereits bestätigt"
not_locked: "ist nicht gesperrt"
not_saved:
one: "1 Fehler verhinderte, das %{resource} gespeichert werden konnte:"
other: "%{count} Fehler verhinderten, das %{resource} gespeichert werden konnte:"
View gist:443318
# Logfile created on Fri Jun 18 08:12:29 +0200 2010 by logger.rb/22285
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] INFO : Dispatcher: passenger
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] INFO : Connecting workers after forking.
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] INFO : New Relic RPM Agent 2.12.3 Initialized: pid = 20506
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] INFO : Agent Log found in /Users/btasche/tr/ruby/ror/putpat/log/newrelic_agent.log
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] DEBUG : Processing instrumentation file '/Users/btasche/tr/ruby/ror/putpat/vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/active_merchant.rb'
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] DEBUG : Processing instrumentation file '/Users/btasche/tr/ruby/ror/putpat/vendor/plugins/newrelic_rpm/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb'
[06/18/10 08:12:29 +0200 local.putpat.tv (20506)] DEBUG : Traced method: class = , method = find_by_sql, metr
You can’t perform that action at this time.