This file contains 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 pwsh | |
[CmdletBinding()] | |
param( | |
$IpAddress, | |
$Count = 4 | |
) | |
@' | |
var capsState; |
This file contains 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 | |
# references: | |
# - https://medium.com/@nuwanprabhath/installing-opencv-in-macos-high-sierra-for-python-3-89c79f0a246a | |
# - https://www.learnopencv.com/install-opencv3-on-macos/ | |
# - https://bob.ippoli.to/archives/2005/02/06/using-pth-files-for-python-development/ | |
# this is probably /usr/local for you | |
BREW_ROOT="/usr/local/homebrew" |
This file contains 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 | |
# references: | |
# - https://github.com/N4S4/synology-api | |
import requests | |
import argparse | |
import json | |
from getpass import getpass |
This file contains 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 | |
# setup | |
pkgpath=$1 | |
pkgout=/tmp/$(/usr/bin/openssl rand -hex 10) | |
payout=/tmp/$(/usr/bin/openssl rand -hex 10) | |
if [ -d "$pkgout" ]; then | |
echo $pkgout already exists | |
exit 1 | |
fi |
This file contains 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 | |
set -e | |
version=$1 | |
if [[ -z "$version" ]]; then | |
cat << EOF | |
Usage: | |
$0 <version> |
OlderNewer