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
cask "th-makerx" do | |
version "4.5.1" | |
sha256 "6c0e812b9283794b545e2edff7ebaa3612a62a19caa0d14dd3d51d8cd9b6bffc" | |
url "http://www5.wind.ne.jp/miko/mac_soft/th-maker_x/hqx/Th-MakerX_#{version.no_dots}.zip" | |
name "Th-MakerX" | |
desc "makes resized image files of dropped image files" | |
homepage "http://www5.wind.ne.jp/miko/mac_soft/th-maker_x/index-en.html" | |
depends_on macos: ">= :mojave" |
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
/* | |
Receive values from a CO2 Monitor via node-hid | |
AirControl Mini CO2 | |
TFA 31.5006 | |
https://hackaday.io/project/5301-reverse-engineering-a-low-cost-usb-co-monitor/log/17909-all-your-base-are-belong-to-us | |
*/ |
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
acme() { | |
issue=(/root/.acme.sh/acme.sh --issue -w "/var/www/acme/") | |
install=(/root/.acme.sh/acme.sh --install-cert --fullchain-file "/etc/ssl/nginx/${1}.pem" --key-file "/etc/ssl/nginx/${1}.key" --reloadcmd "/etc/init.d/nginx reload") | |
for arg do | |
issue+=(-d "$arg") | |
install+=(-d "$arg") | |
done | |
"${issue[@]}" && "${install[@]}" |
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
<?php | |
/* | |
guid22 is base64 with a slightly changed alphabet (numbers first) | |
*/ | |
function guid22(string $string): string { | |
static $alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+/'; | |
$length = strlen($string); |
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
set n to 0 | |
set m to 0 | |
tell application "Safari" | |
repeat with w in windows | |
try | |
-- Only count windows not closed yet | |
if (visible of w) or (miniaturized of w) then | |
set n to n + (count tabs of w) | |
set m to m + 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
// ==UserScript== | |
// @name Netflix Profile Gate Blocker | |
// @description Get rid of Netflix's annoying "Who's watching?" screen | |
// @include https://www.netflix.com/* | |
// @version 2.0 | |
// ==/UserScript== | |
/* | |
Netflix shows a profile selection window when the | |
user is inactive for more than 30 minutes. |
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
Software Version | Firmware Version | |
=================================== | |
4.0 | 2.9 | |
4.2 | 2.12 | |
6.3 | 2.16 | |
6.4.1 | ? | |
Do you know more corrosponding versions? Fork this gist or comment! |