Skip to content

Instantly share code, notes, and snippets.

View jagogardiner's full-sized avatar
💻

Jago Gardiner jagogardiner

💻
View GitHub Profile
#!/bin/bash
loop=true
while [ "$loop" = "true" ]
do
result=$(lsusb | grep -c "DFU")
if [ "$result" = "1" ]; then
loop=false
echo "we in dfu bois"
@jagogardiner
jagogardiner / dhrybench.sh
Last active March 23, 2022 05:18
A dhrystone benchmark script I made for finding out dhrystones per frequency, which can be used to find CPU capacities.
#!/bin/sh
# User tunables
# Number of cores in the system
coreno=8
# Cores in the big cluster
bigcluster=4
# Cores in the little cluster