Skip to content

Instantly share code, notes, and snippets.

View mfalkvidd's full-sized avatar

Mikael Falkvidd mfalkvidd

View GitHub Profile
@mfalkvidd
mfalkvidd / upgrade_bios.md
Created August 22, 2023 19:36
Upgrade Steam Deck BIOS from Ubuntu Linux

Note: This probably works from SteamOS Linux Desktop as well.

sudo apt-get install git
git clone https://gitlab.com/evlaV/jupiter-hw-support.git
cd jupiter-hw-support/usr/share/
for dir in jupiter*; do sudo ln -s $(realpath $dir) /usr/share/$dir; done
cd ~/jupiter-hw-support/
sudo ./usr/bin/jupiter-biosupdate check
@mfalkvidd
mfalkvidd / get_stations.sh
Created July 14, 2021 10:24
Get all stations form the SATNOGS API
#!/bin/bash
PAGE=1
OUTPUT=""
JSONFILE="stations.json"
echo "[" > "$JSONFILE"
while true
do
OUTPUT=$(curl "https://network.satnogs.org/api/stations/?page=$PAGE")
if echo "$OUTPUT" | grep -q 'Invalid page'; then
@mfalkvidd
mfalkvidd / get_all_observations_for_statnogs_station.sh
Created June 23, 2021 12:37
Uses the Satnogs Network API to fetch all observations and output a csv file
#!/bin/bash
re='^[0-9]+$'
if ! [[ "$1" =~ $re ]] ; then
echo "Usage: $0 <station_number>"
exit
fi
PAGE=1
OUTPUT=""
STATION=$1
JSONFILE="observations_$STATION.json"
@mfalkvidd
mfalkvidd / getAllHeliumAPICursor.py
Created June 2, 2021 13:39
Helium API get all data using cursor
#!/usr/bin/env python3
import requests
import json
import sys
from optparse import OptionParser
params = {
"count": "10000",
@mfalkvidd
mfalkvidd / apu4c4-serial-console-vmware-esxi-boot
Created April 9, 2020 09:25
apu4c4 serial console vmware esxi boot
11:20:04.955 -> PC Engines apu4
11:20:05.238 -> coreboot build 20190912
11:20:05.238 -> BIOS version v4.11.0.1
11:20:07.528 -> 4080 MB ECC DRAM
11:20:07.528 ->
11:20:07.688 -> c[?7lSeaBIOS (version rel-1.12.1.3-0-g300e8b7)
11:20:10.709 ->
11:20:10.709 -> Press F10 key now for boot menu
11:20:10.789 ->
11:20:16.827 -> Booting from Hard Disk...
@mfalkvidd
mfalkvidd / apu4c4-iperf3.txt
Last active April 3, 2020 21:50
apu4c4 opnsense inside vmware iperf3 benchmark
[mfalkvidd@centos8 ~]$ iperf3 -c 192.168.1.2
Connecting to host 192.168.1.2, port 5201
[ 5] local 192.168.1.252 port 45182 connected to 192.168.1.2 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 29.3 MBytes 246 Mbits/sec 180 321 KBytes
[ 5] 1.00-2.00 sec 33.7 MBytes 283 Mbits/sec 165 273 KBytes
[ 5] 2.00-3.00 sec 35.9 MBytes 301 Mbits/sec 0 358 KBytes
[ 5] 3.00-4.00 sec 34.1 MBytes 286 Mbits/sec 170 317 KBytes
[ 5] 4.00-5.00 sec 35.0 MBytes 293 Mbits/sec 0 390 KBytes
[ 5] 5.00-6.00 sec 35.3 MBytes 296 Mbits/sec 117 355 KBytes
@mfalkvidd
mfalkvidd / tb-gateway-log
Created May 9, 2019 08:34
tb-gateway-log
This file has been truncated, but you can view the full file.
2019-04-29 00:00:56,100 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Sending message [{deviceId='GATEWAY', payload={"ts":1556496055594,"values":{"devicesOnline":21,"attributesUploaded":0,"telemetryUploaded":0}}, timestamp=0, topic='v1/devices/me/telemetry'id=2aed4b3e-9850-4954-90ae-792ac55d9d83, messageId=21155}]
2019-04-29 00:00:56,319 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Waiting until all messages are sent before going to the next bucket
2019-04-29 00:00:57,333 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Waiting until all messages are sent before going to the next bucket
2019-04-29 00:00:58,346 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Waiting until all messages are sent before going to the next bucket
2019-04-29 00:00:59,347 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Waiting until all messages are sent before going to the next bucket
2019-04-29 00:01:00,421 [pool-2-thread-1] DEBUG o.t.g.service.MqttMessageSender - Waiting until
@mfalkvidd
mfalkvidd / visual-studio-2017-installed-products
Created February 7, 2019 11:22
visual-studio-2017-installed-products
Microsoft Visual Studio Community 2017
Version 15.9.6
VisualStudio.15.Release/15.9.6+28307.344
Microsoft .NET Framework
Version 4.7.03062
Installed Version: Community
ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017
@mfalkvidd
mfalkvidd / nginx-thingsboard
Last active September 30, 2024 07:39
Thingsboard nginx reverse proxy with websocket and HTTPS support (Let's Encrypt)
server {
listen 80;
server_name EXTERNAL_THINGSBOARD_DOMAIN.com;
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
@mfalkvidd
mfalkvidd / Custom CSS
Created December 9, 2017 09:26
MySensors NodeBB customizations
body {
}
.categories h2.title .description, .category h2.title .description, .subcategory h2.title .description {
line-height: 1.2;
}
.categories>li .category-children .fa-stack {