Skip to content

Instantly share code, notes, and snippets.

View siedentop's full-sized avatar
👋

Christoph Siedentop siedentop

👋
View GitHub Profile
@xqms
xqms / opensync-google-calendar.py
Created August 25, 2010 19:14
Google calendar plugin for opensync
"""
Google calendar plugin for opensync.
Installation:
- Install the opensync python plugin (debian: opensync-module-python)
- Copy this file to /usr/lib/opensync/python-plugins/ (may have to create the directory)
Quite ugly, but works for me.
If someone wants to work on it:
- opensync-style configuration (Google AuthSub session token)
@fbuchinger
fbuchinger / .picasa.ini
Created July 9, 2011 18:26
.picasa.ini decoded
#==============================================================
# .picasa.ini FILE STRUCTURE
#
# reverse-engineered by Franz Buchinger <fbuchinger@gmail.com>
# licensed to the public domain
#
# Picasa Version(s): 3.8.0
#
# Changelog:
# v0.1: initial release
@l15n
l15n / git-branches-by-commit-date.sh
Created July 13, 2012 08:47 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
@JodiTheTigger
JodiTheTigger / gdbBacktraceToJson.py
Created January 14, 2014 01:52
gdbBacktraceToJson.py parses the output of the command "thread apply all bt full" and turns it into a json array. Useful for automating the analysis of coredump files generated when an application crashes. Use the tokenised json to search a database of crashes for similar crashes or make a nice web interface for viewing back traces. You could ma…
#!/usr/bin/python2
#
# gdbBacktraceToJson.py. Parses gdb backtraces into json.
# Copyright (C) 2014 Richard Maxwell <jodi.the.tigger@gmail.com>
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
@revelt
revelt / Hugo — Replace dashes on taxonomy terms
Created June 19, 2016 06:04
When your Hugo taxonomy term consists of multiple words, it will be shown with dashes. Here's how to restore spaces.
<a href="/categories/{{ $name | urlize }}">{{ replace $name "-" " " }}</a>
@benjamincharity
benjamincharity / autonomous.txt
Last active May 17, 2024 22:47
Instructions on how to reset the autonomous desk. This fixes a problem where the desk will not lower (also reportedly fixes incorrectly reported heights).
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these
> steps thoroughly.
Reset Steps:
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds.
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass.
3. Release both buttons.
4. Press the down buttons until the desk beeps one more time or 20 seconds pass.
@jlblancoc
jlblancoc / gist:44be9d4d466f0a973b1f3808a8e56782
Last active February 16, 2023 15:45
GCC sanitizer with CMake

For memory leaks

Build in CMake with these params:

CMAKE_CXX_FLAGS:STRING= -fsanitize=address  -fsanitize=leak -g
CMAKE_C_FLAGS:STRING=-fsanitize=address  -fsanitize=leak -g
CMAKE_EXE_LINKER_FLAGS:STRING=-fsanitize=address  -fsanitize=leak
CMAKE_MODULE_LINKER_FLAGS:STRING=-fsanitize=address  -fsanitize=leak

Which can be done with: