Skip to content

Instantly share code, notes, and snippets.


Stéphane Gourichon fidergo-stephane-gourichon

View GitHub Profile
fidergo-stephane-gourichon /
Last active Dec 19, 2020
Advent of code, step 1: an unusual math context where operators have no priority!
#!/usr/bin/env python3
import itertools
from enum import Enum, auto
import re
import logging
import sys
import numbers
logging.basicConfig(level=logging.INFO, stream=sys.stderr)
View gist:049156c7856477f44ddfe58fc97d7def
git remote -v show
origin (fetch)
origin (push)
git describe
RUST_LOG=debug wishbone-tool --version
View gist:870a9f9ba9ee24c91f1cb80cef7b6929
# Build log
# Precompiled toolchain
Binaries from
ld: libm.a(lib_a-sf_expm1.o): in function `.L0 ':
sf_expm1.c:(.text+0x4e0): undefined reference to `__math_oflowf'
fidergo-stephane-gourichon /
Created Jan 1, 2020
Bug in xfconf-query regarding setting keys shortcuts?
# Let's query some keyboard shortcut
xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/default/<Alt><Shift>Tab' ; echo $?
# So far so good.
# Let's remove that shortcut.
# This file is both a valid CSS style sheet,
# and a valid bash script.
# It adjusts your main Firefox profile so that github and all the
# stackexchange websites do not artifically limit main area width.
# Hooray! No more clobbered listings!
# More technically, it configures and enables userContent.css. It
fidergo-stephane-gourichon /
Last active Aug 14, 2019
This bash script will transform a relative or absolute path to file or dir into a github URL you can browse and share.
# Transform a relative or absolute path to file or dir into a github URL you can browse and share.
# usage: -
# usage: somedir/somefile
View .gitconfig
editor = edite
name = FIXME put your name here, to be included into each commit
email = FIXME put your e-mail address here, to be included into each commit
ui = auto
st = status
fidergo-stephane-gourichon / outlet
Created Jun 17, 2018 — forked from awaxa/outlet
apc pdu outlet expect script
View outlet
set timeout 3
if {[llength $argv] == 0} {
send_user "Usage: outlet [1-8] [on|off|reboot] \n"
exit 1
set number [lindex $argv 0]
set onoff [lindex $argv 1]
View gist:2d02f236b9387dbe49d3e0115576f654
*** Error in `/usr/bin/darktable': double free or corruption (!prev): 0x00007fe2d415d040 ***
======= Backtrace: =========
View gist:9f31753bf9b63083def43448b9bb7c42
==27749== Memcheck, a memory error detector
==27749== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==27749== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==27749== Command: /usr/bin/darktable .
==27749== Thread 8 worker 3:
==27749== Conditional jump or move depends on uninitialised value(s)
==27749== at 0x4D384813: ??? (in /usr/lib/x86_64-linux-gnu/darktable/plugins/lighttable/
==27749== by 0x78891D3: ??? (in /usr/lib/x86_64-linux-gnu/
==27749== by 0x78A39A5: g_signal_emit_valist (in /usr/lib/x86_64-linux-gnu/