Rpi-monitor https://github.com/XavierBerger/RPi-Monitor is a very nice app for monitoring sbc (single board computers/ actually bigger computers as well) like RPi on a web. it give you a quick look at various system metrics cpu load, uptime, temperatures etc and more on a nice web page. and on top, makes nice time series graphs for the same, practically a dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> | |
<body> | |
<wicket:panel> | |
<table id="dataitems" class="table table-striped"> | |
<thead class="table-secondary"> | |
<th class="col-md-1" wicket:id="hdrRepeater"></th> | |
</thead> | |
<tbody> | |
<wicket:container wicket:id="dataRepeater"></wicket:container> | |
</tbody> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# requires psutil (pip3 install psutil) | |
# | |
# This script runs ps_util.cpu_percent(interval=0.5) for each process to calc | |
# the cpu utilization percentage | |
# It does so concurrently as otherwise each calls sleeps 0.5 secs to sample the data | |
# to run it faster use more threads in ThreadPoolExecutor(max_worker=x or | |
# reduce the interval for cpu_percent(interval=x | |
# To make readings more 'accurate' use a longer interval e.g. 1.0 for 1s. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#usage: sdimage-u-boot-patcher.py [-h] [--nobak] [--ignimgsize] [--bkname BKNAME] image uboot_bin | |
# | |
#patch u-boot binary into image | |
# | |
#positional arguments: | |
# image image file | |
# uboot_bin u-boot bin file | |
# | |
#options: |
- install hostapd
apt install hostapd
- configure hostapd
/etc/hostapd/hostapd.conf
# the interface used by the AP
interface=wlan0
These are some steps for building armbian using Ubuntu (jammy) in a systemd-nspawn container. This is an alternative for building armbian from a Linux system (as like docker containers).
However this method requires the PREFER_DOCKER=no build flag as docker engines cannot be run within a systemd-nspawn container.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright 2012-2013 University of Stavanger, Norway | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# version 0 (alpha) | |
# | |
# This make file for stm32duino core and Marlin 2.0 is possibly *dangerous* | |
# i.e. it compiles the sources (in src, Marlin, Arduino_Core_STM32, variants and CMSIS_5) directory | |
# and overwrite all the stuff in $(out_dir) | |
# $(out_dir) is the binary directory where the object files are dumped there | |
# | |
# make clean *deletes* the *$(out_dir)* (coded here as build ) | |
# | |
# this is a relative path makefile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# version 0 (alpha) | |
# this is only tested in linux | |
# this is for this board https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0.html | |
# | |
# This make file for stm32duino core is possibly *dangerous* | |
# i.e. it compiles the sources (in src and Arduino_Core_STM32) directory | |
# and overwrite all the stuff in $(out_dir) | |
# $(out_dir) is the binary directory where the object files are dumped there | |
# | |
# make clean *deletes* the *$(out_dir)* (coded here as build ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* The MIT License | |
* | |
* Copyright (c) 2010 LeafLabs LLC. | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies |
NewerOlder