Skip to content

Instantly share code, notes, and snippets.

View sebastianludwig's full-sized avatar

Sebastian Ludwig sebastianludwig

View GitHub Profile
@sebastianludwig
sebastianludwig / Post archive action script
Last active January 2, 2016 09:38
Xcode post archive Rakefile to prepare files for upload
# Rakefile needs ruby > 1.8, so add brew location to path
PATH=/usr/local/bin:$PATH
# setup logging
LOG="$PROJECT_DIR/post_archive_action.log"
echo '' > $LOG
# run post_archive rake task
cd "$PROJECT_DIR"
rake post_archive >> $LOG 2>&1
@sebastianludwig
sebastianludwig / smbusmodule.c
Last active October 29, 2016 12:00
SMbus for Python3.4 on Raspberry Pi running Raspbian - source http://www.spinics.net/lists/linux-i2c/msg08427.html
/*
* smbusmodule.c - Python bindings for Linux SMBus access through i2c-dev
* Copyright (C) 2005-2007 Mark M. Hoffman <mhoffman@xxxxxxxxxxxxx>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@sebastianludwig
sebastianludwig / i2c_0.py
Last active August 29, 2015 14:08
Activate second I2C bus on Raspberry Pi with Python
#!/usr/bin/env python3
#
# W. Greathouse 13-Feb-2013
# S. Ludwig 26-Oct-2014
#
# Inspired by bcm2835 source - http://www.airspayce.com/mikem/bcm2835/
#
# Enable I2C on P1 and P5 (Rev 2 boards only)
#
@sebastianludwig
sebastianludwig / lldb_commands.txt
Last active November 2, 2015 10:50
LLDB command description (including Chisel)
# lldb
apropos -- Find a list of debugger commands related to a particular
word/subject.
b -- ('_regexp-break') Set a breakpoint using a regular expression
to specify the location, where <linenum> is in decimal and
<address> is in hex.
bt -- ('_regexp-bt') Show a backtrace. An optional argument is
accepted; if that argument is a number, it specifies the number
/* Header */
#ghx-header {
padding-top: 3px !important;
padding-bottom: 0px !important;
}
#ghx-header h2 {
line-height: 1 !important;
font-size: 12px !important;
@sebastianludwig
sebastianludwig / git-clang-format-os-x
Created October 13, 2016 12:24
git-clang-format which also strips \t at the end of filenames in extract_lines - this was necessary for me on OS X 10.11 with git 2.8.4
#!/usr/bin/env python
#
#===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
@sebastianludwig
sebastianludwig / jira.css
Last active June 24, 2021 13:32
User CSS to increase JIRA's and GitHub's information desity
/* GitHub */
/* project view */
/* pack columns tighter together */
div.project-columns-container > div {
margin-right: 8px !important;
}
/* reduce card to column spacing */