Skip to content

Instantly share code, notes, and snippets.

@rigid
rigid / build.shell-session
Created October 20, 2019 13:23
code-eli tests (verbose)
$ VERBOSE=1 make
/usr/bin/cmake -S/var/tmp/portage/sci-libs/code-eli-9999/work/code-eli-9999 -B/var/tmp/portage/sci-libs/code-eli-9999/work/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/sci-libs/code-eli-9999/work/build/CMakeFiles /var/tmp/portage/sci-libs/code-eli-9999/work/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/var/tmp/portage/sci-libs/code-eli-9999/work/build'
make -f example/airfoil_fit/CMakeFiles/AirfoilFitExample.dir/build.make example/airfoil_fit/CMakeFiles/AirfoilFitExample.dir/depend
make -f example/vsp_pod/CMakeFiles/VSPPodExample.dir/build.make example/vsp_pod/CMakeFiles/VSPPodExample.dir/depend
make -f test/constants/CMakeFiles/ConstantsMathTest.dir/build.make test/constants/CMakeFiles/ConstantsMathTest.dir/depend
make[2]: Entering directory '/var/tmp/portage/sci-libs/code-eli-9999/work/build'
cd /var/tmp/portage/sci-libs/code-eli-9999/work/build && /usr/bin/cmake -E cmake_depen
@rigid
rigid / build.shell-session
Created October 20, 2019 12:18
code-eli tests
$ make
Scanning dependencies of target ConstantsMathTest
Scanning dependencies of target VSPPodExample
Scanning dependencies of target ADTest
Scanning dependencies of target AirfoilFitExample
Scanning dependencies of target DMTest
[ 3%] Building CXX object example/vsp_pod/CMakeFiles/VSPPodExample.dir/vsp_pod.cpp.o
[ 3%] Building CXX object test/constants/CMakeFiles/ConstantsMathTest.dir/constants_math_test.cpp.o
[ 5%] Building CXX object test/mutil/ad/CMakeFiles/ADTest.dir/ad_test.cpp.o
[ 7%] Building CXX object example/airfoil_fit/CMakeFiles/AirfoilFitExample.dir/airfoil_fit.cpp.o
[daniel:~/code … 66/mine/irrigator/readline-6.3/build] $ LC_ALL="C" CFLAGS="-mlongcalls" LDFLAGS="-nostdlib -Wl,--start-group -lmain -lnet80211 -lwpa -llwip -lpp -lphy -Wl,--end-group -lgcc" ../configure --host=xtensa-lx106-elf --disable-largefile --disable-shared --disable-multibyte --without-curses --without-purify
checking build system type... x86_64-unknown-linux-gnu
checking host system type... xtensa-lx106-elf
Beginning configuration for readline-6.3 for xtensa-lx106-elf
checking whether make sets $(MAKE)... yes
checking for xtensa-lx106-elf-gcc... xtensa-lx106-elf-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
@rigid
rigid / swiften-9999.ebuild
Created April 18, 2016 18:50
swiften live ebuild
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
SCONS_MIN_VERSION="1.2"
LANGS=" ca de es fr hu nl pl ru se sk"
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
/********** ACCURATE TIMER for REAL TIME CONTROL ***
This C program illustrates accurate timing on a
Raspberry Pi by sending a 50kHz signal to a GPIO pin
with a jitter of about 0.1 microseconds. It uses the
processor's 1MHz timer and disables interrupts.
It includes GPIO setup and read/write code.
Compiled from console with gcc under the standard
Debian distribution.
Calculating dependencies ... done!
[ebuild N ] dev-python/pillow-2.0.0-r1 USE="jpeg lcms tiff truetype zlib -doc -examples -scanner {-test} -tk -webp" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" 1,376 kB
[ebuild N ] virtual/python-imaging-2 USE="-tk" PYTHON_TARGETS="python2_7 python3_3 -python2_6 -python3_2" 0 kB
[ebuild N ] dev-python/gconf-python-2.28.1:2 USE="-examples" 550 kB
[ebuild N ] gnome-extra/gnome-screensaver-3.6.1 USE="pam systemd -debug -doc" 556 kB
[ebuild N ] gnome-base/gnome-panel-3.8.0-r1 USE="introspection -eds -networkmanager" 0 kB
[ebuild N ] x11-wm/muffin-1.8.2-r1 USE="introspection xinerama {-test}" 2,623 kB
[ebuild N ] gnome-extra/nemo-1.8.5 USE="exif introspection (-packagekit) {-test} -tracker -xmp" 3,717 kB
[ebuild N ] gnome-extra/cinnamon-1.8.8.1-r1 USE="bluetooth networkmanager" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" 4,381 kB
[blocks B ] d
@rigid
rigid / gist:6870621
Created October 7, 2013 16:17
sensors output
sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +105.0°C)
temp2: +29.8°C (crit = +105.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +29.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +28.0°C (high = +80.0°C, crit = +100.0°C)
@rigid
rigid / gist:6870265
Created October 7, 2013 15:56
sensors-detect
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `jc42':
* Bus `SMBus I801 adapter at 0580'
Busdriver `i2c_i801', I2C address 0x18
Chip `Microchip MCP98243' (confidence: 5)
Driver `to-be-written':
* ISA bus, address 0xca2
apollo
description: System
product: X10SLH-F/X10SLM+-F (To be filled by O.E.M.)
vendor: Supermicro
version: 0123456789
serial: 0123456789
width: 64 bits
capabilities: smbios-2.7 dmi-2.7 vsyscall32
configuration: boot=normal chassis=server family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=00000000-0000-0000-0000-002590D27590
*-core
@rigid
rigid / gist:5025299
Last active December 14, 2015 03:59
static void RCC_Config(void)
{
/* RCC system reset */
RCC_DeInit();
/* Enable HSE */
RCC_HSEConfig(RCC_HSE_ON);
/* Wait till HSE is ready */
ErrorStatus status;