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: |
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
<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> |
OlderNewer