Skip to content

Instantly share code, notes, and snippets.

View grahamwhaley's full-sized avatar
💭
Retired. Geeking for myself.

Graham Whaley grahamwhaley

💭
Retired. Geeking for myself.
  • M7GRW
View GitHub Profile

Getting your Pi Pico to reflash from Linux Arduino IDE

I picked up some Pi Picos, because well, bang per buck they are looking good - fairly powerful, very cheap.

I'm a Linux user. I tend to do my simpler embedded development under the Arduino IDE. Well, the Pi Picos have Arduino IDE support, so great...

But, life was not quite that simple. I went with the 'official' Pico MBED tool set as found in the IDE installation options. But when I tried to load a sketch, it errored out. The rp2040load command failed.

@grahamwhaley
grahamwhaley / pax_xover_schematic.png
Last active April 16, 2021 10:20
Paxoline universal crossover details
pax_xover_schematic.png
@grahamwhaley
grahamwhaley / nanovna-saver-Docker.md
Last active July 10, 2020 15:32
nanovna-saver under Docker on Linux

Running nanovna-saver under Docker

I have a nanovna, which I want to use with Linux. Great, probably the best UI out there for the nanovna - nanovna-saver supports use under Linux - it is a Python Qt based app....

So, I tried it on my Ubuntu 18.04 machine. Sigh, it requires Python v3.7, and afaict, that is a royal pain to get working on 18.04 - well, it was for me anyway. I got stuff installed and linked over etc., and could still not run nanovna-saver locally... what to do?

@grahamwhaley
grahamwhaley / sdrsharp.png
Last active August 4, 2023 14:27
Running SDR# under Linux/wine
sdrsharp.png
@grahamwhaley
grahamwhaley / plugwise_wine.md
Last active June 12, 2020 15:51
plugwise_source_under_linux_wine

This document covers my attempts to get the Plugwise Source Windows program running under Linux Wine.

SPOILER - it can be made to run, but you cannot communicate with the USB dongle, so it's a 'no go' for now.

Components

First, we'll detail the versions of the components used, as the ability to make this work is likely

@grahamwhaley
grahamwhaley / dup_elastic_index.md
Last active August 16, 2019 09:12
Duplicate an elasticsearch index with logstash

I wanted to copy an index in my elasticsearch DB, so I could try and re-open it in Kibana whilst ticking the 'not a time series database' option. So, how to copy an index??

I found a useful post at http://david.pilato.fr/blog/2015/05/20/reindex-elasticsearch-with-logstash/ That copies an index from one elastic to another, and is written for an older version of logstash. Updating that to logstash ~7.3 and modifying to copy an index to a new index of a different name in the same DB, I came up with:

# Logstash config to copy one index to another
@grahamwhaley
grahamwhaley / elastic_json.md
Created July 25, 2019 15:45
Basic elastic json

Simple elastic/json setup

I've had to do this twice now, as I lost my info from the first time around. So, let's write it down...

Run up elastic in docker

First, let's run up elastic. Elastic give you info on how to do this on their site. I ended up firing a small docker compose:

version: '2'
@grahamwhaley
grahamwhaley / applying_kata_deploy.sh
Last active July 16, 2019 17:53
Quick script to apply kata_deploy to k8s
#!/bin/bash
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
# applies kata-deploy to the default kubectl cluster
set -e
@grahamwhaley
grahamwhaley / jenkinsfile-runner.md
Created June 18, 2019 09:16
jenkinsfile-runner

How to use jenkinsfile-runner

Developing pipeline jenkinsfiles can be painful. It is slightly easier if you use the jenkinsfile runner to run them locally.

Here is the script I have been using to do that for some in-dev Jenkinsfiles. Writing down as there are some subtleties here that it is going to be easy to lose and hard to re-create.

#!/bin/bash
@grahamwhaley
grahamwhaley / gist:4315f34a8f1da0932d59ce8de8f902ef
Last active December 1, 2021 09:30
many pod per node on k8s

How to config k8s to have many pods (on a node)

I had a need (understand this is for some testing, not for a real deployment ;-) ) to run a lot of pods (like >=1k of them) on a single k8s node. Now, I had the hw available - 88cores and 377Gb of RAM - but, k8s has some inbuilt limits by default that will not let you launch more than 110 pods, and if you get past that, you'll hit a network limit at about 250 pods... so, before I forget, here is how to configure to run more...

kubeadm

In your kubeadm init file, something like: