Skip to content

Instantly share code, notes, and snippets.

Avatar

Sebastian Ludwig sebastianludwig

View GitHub Profile
@sebastianludwig
sebastianludwig / jira.css
Last active Jun 24, 2021
User CSS to increase JIRA's and GitHub's information desity
View jira.css
/* GitHub */
/* project view */
/* pack columns tighter together */
div.project-columns-container > div {
margin-right: 8px !important;
}
/* reduce card to column spacing */
@sebastianludwig
sebastianludwig / git-clang-format-os-x
Created Oct 13, 2016
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
View git-clang-format-os-x
#!/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.
#
#===------------------------------------------------------------------------===#
View slim_jira.css
/* Header */
#ghx-header {
padding-top: 3px !important;
padding-bottom: 0px !important;
}
#ghx-header h2 {
line-height: 1 !important;
font-size: 12px !important;
@sebastianludwig
sebastianludwig / lldb_commands.txt
Last active Nov 2, 2015
LLDB command description (including Chisel)
View lldb_commands.txt
# 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
@sebastianludwig
sebastianludwig / i2c_0.py
Last active Aug 29, 2015
Activate second I2C bus on Raspberry Pi with Python
View i2c_0.py
#!/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 / smbusmodule.c
Last active Oct 29, 2016
SMbus for Python3.4 on Raspberry Pi running Raspbian - source http://www.spinics.net/lists/linux-i2c/msg08427.html
View smbusmodule.c
/*
* 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 / Post archive action script
Last active Jan 2, 2016
Xcode post archive Rakefile to prepare files for upload
View Post archive action script
# 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