This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Summary: In C, compile time constant structs and array with deep self-references. | |
** Context: const and compile-time constants | |
Constructs fully determined at compile time have some benefits. | |
But const in C is weaker than constexpr that C++ has. | |
As prog-fh summarizes on | |
https://stackoverflow.com/questions/66144082/why-does-gcc-clang-handle-code-slightly-differently-example-given |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote -v show | |
origin https://github.com/litex-hub/wishbone-utils (fetch) | |
origin https://github.com/litex-hub/wishbone-utils (push) | |
git describe | |
v0.6.7 | |
RUST_LOG=debug wishbone-tool --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build log | |
# Precompiled toolchain | |
Binaries from https://github.com/im-tomu/fomu-toolchain/releases/download/v1.5.3/fomu-toolchain-linux_x86_64-v1.5.3.tar.gz | |
ld: libm.a(lib_a-sf_expm1.o): in function `.L0 ': | |
sf_expm1.c:(.text+0x4e0): undefined reference to `__math_oflowf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Let's query some keyboard shortcut | |
xfconf-query -c xfce4-keyboard-shortcuts -p '/xfwm4/default/<Alt><Shift>Tab' ; echo $? | |
cycle_reverse_windows_key | |
0 | |
# So far so good. | |
# Let's remove that shortcut. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo {} /* >/dev/null SG\MARKER\VERY\IMPROBABLE\STRING\MY\START | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Transform a relative or absolute path to file or dir into a github URL you can browse and share. | |
# | |
# usage: git_path_to_github_url.sh - | |
# usage: git_path_to_github_url.sh somedir/somefile | |
for ENTRY | |
do | |
( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
editor = edite | |
[user] | |
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 | |
[color] | |
ui = auto | |
[alias] | |
st = status | |
[merge] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Error in `/usr/bin/darktable': double free or corruption (!prev): 0x00007fe2d415d040 *** | |
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fe32df897e5] | |
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7fe32df9237a] | |
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fe32df9653c] | |
/usr/lib/x86_64-linux-gnu/darktable/plugins/libdenoiseprofile.so(process_sse2+0xf8d)[0x7fe2d944fc0d] | |
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x124c89)[0x7fe32e61dc89] | |
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122444)[0x7fe32e61b444] | |
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122683)[0x7fe32e61b683] | |
/usr/bin/../lib/x86_64-linux-gnu/darktable/libdarktable.so(+0x122683)[0x7fe32e61b683] |
NewerOlder