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
#!/bin/sh | |
# Queued download script. | |
# Takes one or more download list files as arguments. | |
# Each line in a list file has the format: <url> <download directory name> | |
# (Use '%20' for spaces in the URL.) | |
if [ $# -lt 1 ]; then | |
echo "usage: qdl <download list file...>" | |
exit 1 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/dkio.h> | |
int main(int argc, char **argv) |
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
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "usage: `basename $0` <directory>" | |
exit 1 | |
fi | |
find "$@" '(' -name '*.sha512' -or -name '*.sha384' -or -name '*.sha256' -or -name '*.sha224' -or -name '*.sha1' ')' -exec bash -c ' | |
pushd "$(dirname "$0")" > /dev/null | |
filename="$(basename "$0")" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
int main(int argc, char **argv) | |
{ |
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
#!/bin/sh | |
while true; do | |
for i in /sys/devices/platform/windfarm.0/cpu-temp-*; do | |
echo -n "CPU Core $(echo "$i" | cut -d - -f 3): $(cat "$i")°C " | |
done | |
sleep 1 | |
printf '\r' | |
done |