Skip to content

Instantly share code, notes, and snippets.

@rnestler
rnestler / output
Created February 7, 2018 12:48
ripgrep output
```
% git grep foo
buildtools/test.txt:Test to find: foobar
% rg --debug foo
DEBUG:grep::search: regex ast:
Literal {
chars: [
'f',
'o',
@rnestler
rnestler / Section of the svd file
Last active December 28, 2017 01:45
Broken svd file
<field>
<name>AADEN</name>
<description>AAD enable.</description>
<bitRange>[2:2]</bitRange>
<enumeratedValues>
<name>ENUM</name>
<enumeratedValue>
<name>AUTO_ADDRESS_DETECT_</name>
<description>Auto Address Detect (AAD) is disabled.</description>
<value>0</value>
@rnestler
rnestler / mandb_c_output.txt
Created November 26, 2016 16:06
mandb -c output
% LC_ALL=C sudo mandb -c
Processing manual pages under /usr/share/man...
Updating index cache for path `/usr/share/man/man1'. Wait...mandb: warning: /usr/share/man/man1/gdk-pixbuf-csource.1.gz: whatis parse for gdk-pixbuf-csource(1) failed
mandb: warning: /usr/share/man/man1/gdk-pixbuf-query-loaders.1.gz: whatis parse for gdk-pixbuf-query-loaders(1) failed
mandb: warning: /usr/share/man/man1/ofxdump.1.gz: whatis parse for ofxdump(1) failed
mandb: warning: /usr/share/man/man1/ctags.emacs.1.gz: whatis parse for ctags.emacs(1) failed
mandb: warning: /usr/share/man/man1/mprof-report.1.gz: whatis parse for mprof-report(1) failed
mandb: warning: /usr/share/man/man1/mjpegtools.1.gz: whatis parse for mjpegtools(1) failed
mandb: warning: /usr/share/man/man1/inkscape.el.1.gz: whatis parse for inkscape.el(1) failed
mandb: can't open /usr/share/man/man1/mysql_client_test.1: No such file or directory
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/roughl/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/__main__.py", line 183, in <module>
Main()
File "/home/roughl/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/__main__.py", line 160, in Main
if not CompatibleWithCurrentCoreVersion():
File "/home/roughl/.vim/bundle/YouCompleteMe/third_party/ycmd/ycmd/server_utils.py", line 52, in CompatibleWithCurrentCoreVersion
@rnestler
rnestler / output
Created February 21, 2015 23:19
Rustc compile error
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:163:29: 163:46 error: type `&'static [u8]` does not implement any method in scope named `slice`
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:163 let zeichen = self.font.slice(start, end);
^~~~~~~~~~~~~~~~~
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:167:14: 167:28 error: requires `iterator` lang_item
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:167 for j in range(0, vert) {
^~~~~~~~~~~~~~
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:168:16: 168:29 error: requires `iterator` lang_item
/home/roughl/proggen/projects/zinc/src/zinc/drivers/lcd/c12332.rs:168 for i in range(0, hor) {
^~~~~~~~~
@rnestler
rnestler / first
Last active August 29, 2015 14:15
Errors when compiling zinc
% rake PLATFORM=lpc17xx build_all
rustc -C opt-level=2 -Z no-landing-pads --cfg cfg_mcu_has_spi --cfg mcu_lpc17xx --cfg arch_cortex_m3 --target thumbv7m-none-eabi -g -L /home/roughl/proggen/projects/zinc/build --out-dir /home/roughl/proggen/projects/zinc/build /home/roughl/proggen/projects/zinc/thirdparty/librlibc/src/lib.rs
/home/roughl/proggen/projects/zinc/thirdparty/librlibc/src/lib.rs:42:32: 42:36 warning: the `uint` type is deprecated; use `usize` or a fixed-sized integer
/home/roughl/proggen/projects/zinc/thirdparty/librlibc/src/lib.rs:42 n: uint) -> *mut u8 {
^~~~
/home/roughl/proggen/projects/zinc/thirdparty/librlibc/src/lib.rs:42:32: 42:36 help: add #![feature(int_uint)] to the crate attributes to silence this warning
/home/roughl/proggen/projects/zinc/thirdparty/librlibc/src/lib.rs:42 n: uint) -> *mut u8 {
@rnestler
rnestler / led.py
Created May 12, 2014 21:52
micro python script
import pyb
from pyb import Pin
def initpin(val):
p = Pin(val)
p.init(Pin.OUT_OD)
return p
def togglepin(pin):
@rnestler
rnestler / Platform.Arm.patch
Created December 6, 2012 15:34
OpenNI / SensorKinect ARM patches
diff --git a/Platform/Linux/Build/Common/Platform.Arm b/Platform/Linux/Build/Common/Platform.Arm
index c85cfb7..3ceb00c 100644
--- a/Platform/Linux/Build/Common/Platform.Arm
+++ b/Platform/Linux/Build/Common/Platform.Arm
@@ -1,7 +1,7 @@
ifeq "$(CFG)" "Release"
# Hardware specifying flags
- CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8
+ CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard #-mcpu=cortex-a8
@rnestler
rnestler / CMakeCache.txt
Created October 25, 2012 19:24
PCL build output
# This is the CMakeCache file.
# For build in directory: /home/HSR/rnestler/PCL-1.6.0-Source/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
@rnestler
rnestler / PCL-1.6.0.patch
Created October 24, 2012 12:05
PCL cygwin patches
--- common/include/pcl/common/eigen.h
+++ common/include/pcl/common/eigen.h
@@ -112,7 +112,7 @@
template<> inline long double
sqrt<long double> (const long double &val)
{
- return (::sqrt (val));
+ return (::sqrtl (val));
}