Skip to content

Instantly share code, notes, and snippets.

@nickoe
nickoe / build_tips_for_kicad.txt
Last active December 16, 2021 14:25
Build tips for kicad
CC="distcc gcc" CXX="distcc g++" cmake .. -DKICAD_USE_OCC=ON -DwxWidgets_CONFIG_EXECUTABLE=$(which wx-config-gtk3) -DCMAKE_INSTALL_PREFIX=/tmp/kicad/usr/local
-DwxWidgets_CONFIG_EXECUTABLE=$(which wx-config-gtk3) -DCMAKE_INSTALL_PREFIX=/tmp/kicad/usr/local
Using ninja with multi config, see https://cmake.org/cmake/help/v3.17/generator/Ninja%20Multi-Config.html
CC="distcc gcc" CXX="distcc g++" cmake .. -DKICAD_USE_OCC=ON -DwxWidgets_CONFIG_EXECUTABLE=$(which wx-config-gtk3) -DCMAKE_INSTALL_PREFIX=/tmp/kicad/usr/local -DCMAKE_DEFAULT_BUILD_TYPE=Release -G"Ninja Multi-Config
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold
Use this one:
@nickoe
nickoe / FindwxWidgets.cmake
Last active November 30, 2020 16:26
FindwxWidgets.cmake needed to make findwx work on windows with vcpkg and msvc
# Taken directly from https://github.com/CaeruleusAqua/vcpkg-wx-find/commit/17993e942f677799b488a06ca659a8e46ff272c9
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindwxWidgets
-------------
Find a wxWidgets (a.k.a., wxWindows) installation.
@nickoe
nickoe / gist:3f3c11314ee8c5699a3f7671cb3d5897
Created March 5, 2020 07:33
radiosonde_auto_rx Jutland config example
[nickoe@z620 auto_rx]$ pwd
/home/nickoe/radiosonde_auto_rx/auto_rx
[nickoe@z620 auto_rx]$ python auto_rx.py -c station.cfg
#
# Radiosonde Auto RX v2 Station Configuration File
#
# Copy this file to station.cfg and modify as required.
#
@nickoe
nickoe / gnuradio_issues.md
Last active January 10, 2021 18:02
GNU Radio issues I think should just be closed

Bugs or pull requests that clearly needs to be closed, merged or rejected):

Should be backported to maint-3.9

gnuradio/gnuradio#4018


@nickoe
nickoe / compare-bom-generators.sh
Created February 14, 2018 15:42 — forked from odurc/compare-bom-generators.sh
compare BOM files generated by KiCad using python2 and python3
#!/usr/bin/bash
generators=(bom_csv_grouped_by_value.py bom_csv_grouped_by_value_with_fp.py bom_csv_sorted_by_ref.py bom_html_by_value.py bom_html_grouped_by_value.py bom_html_with_advanced_grouping.py bom_sorted_by_ref.py)
for generator in ${generators[@]}; do
python2 ${generator} /tmp/bom-test.xml /tmp/bom-test-py2.out
python3 ${generator} /tmp/bom-test.xml /tmp/bom-test-py3.out
[[ `diff /tmp/bom-test-py2.out /tmp/bom-test-py3.out` ]] && echo "Fail: ${generator}" && exit 1
done
@nickoe
nickoe / appveyor-msys2-debug.yml
Last active July 8, 2018 10:45
Debugging msys2 install on appveyor
install:
- C:\msys64\usr\bin\pacman --noconfirm --ask 20 --sync --refresh --refresh --sysupgrade --sysupgrade
build_script:
- C:\msys64\usr\bin\pacman -Q
- C:\msys64\usr\bin\pacman --noconfirm --needed -S bash pacman pacman-mirrors msys2-runtime
- C:\msys64\usr\bin\pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
- C:\msys64\usr\bin\pacman --noconfirm -Sy
- C:\msys64\usr\bin\pacman --noconfirm -S vim
- C:\msys64\usr\bin\pacman --noconfirm -S p11-kit
@nickoe
nickoe / appveyor.yml
Last active July 8, 2018 13:16
Test for appveyor.yml for kicad with msys2
image: Visual Studio 2017
build_script:
# - C:\msys64\usr\bin\pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
- C:\msys64\usr\bin\pacman -Q
- make_x86_64.bat
- dir
cache:
- path: msys64
@nickoe
nickoe / sdrsharptocfile.grc
Created May 1, 2016 07:25
Example to read SDR# IQ wav file into gnuradio and save it as a gnuradio IQ cfile
<?xml version='1.0' encoding='utf-8'?>
<?grc format='1' created='3.7.9'?>
<flow_graph>
<timestamp>Sat Apr 30 20:44:08 2016</timestamp>
<block>
<key>options</key>
<param>
<key>author</key>
<value></value>
</param>
(kicad_pcb (version 4) (host pcbnew "(2015-01-07 BZR 5263)-osx-trackpad-gestures")
(general
(links 33)
(no_connects 32)
(area 115.735099 72.237599 181.267101 137.769601)
(thickness 1.6)
(drawings 18)
(tracks 187)
(zones 0)