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/perl | |
sub Usage { | |
$0 =~ s#.*/##g; | |
die <<EOM; | |
Usage: $0 [-hodsbn] expr [...] | |
expr may contain decimal/hex/octal numbers and operators, unless expr | |
is suffixed with b, in which case it is interpreted as a binary number | |
and operators are not allowed. |
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 -e | |
# | |
# clean up everything in CACHE_DIR last accessed more than DAYS days ago. | |
# also removes files with bogus timestamps in the future. | |
# | |
# ----------------------------------------------------------------------- | |
# Copyright 2021 Todd Derr ([email protected]) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. |
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
// volume_test.cpp: prints a level (0-100) to dB table for the default audio device | |
// I just built this as a console app in VS2019. | |
// Original code from https://github.com/shubham-theway/Codes-here-there/blob/master/volctrl.cpp | |
// | |
// TODO: error checking, device selection, print more device info, ? | |
#include <stdio.h> | |
#include <windows.h> | |
#include <mmdeviceapi.h> | |
#include <endpointvolume.h> |
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
data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxvZ28iIHhtb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