# http://osxdaily.com/2011/05/31/enable-disable-airport-wireless-connections-command-line/
# Quickly restart wifi on macOS
networksetup -setairportpower airport off; networksetup -setairportpower airport on
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
// ==UserScript== | |
// @name Alternating Clicks Script | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Clicks one element, waits 5 minutes, clicks another element, and repeats | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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
############ gist usage instructions ############ | |
# clone gist | |
# git clone https://gist.github.com/corysolovewicz/c1c8cf4394dc2988fcd9f23cd4a62a99.git | |
# cd c1c8cf4394dc2988fcd9f23cd4a62a99 | |
# chmod 755 shairport-sync_install.sh | |
# ./shairport-sync_install.sh | |
################################################# | |
############################################################### | |
# Steps for building and installing shairport-sync on a raspi 3 |
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
brew install tesseract opencv@3 log4cplus | |
git clone https://github.com/openalpr/openalpr.git | |
cd openalpr/src | |
mkdir build | |
cd build | |
export OpenCV_DIR="/usr/local/opt/opencv@3/" | |
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr/local -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_MACOSX_RPATH=true -DCMAKE_CXX_FLAGS="-std=c++11" | |
make | |
sudo make install |
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
# https://support.apple.com/en-us/HT201372 | |
# download macOS Catalina | |
# https://itunes.apple.com/us/app/macos-catalina/id1466841314?ls=1&mt=12 | |
# create blank image and put in /tmp directory | |
hdiutil create -o /tmp/Catalina.cdr -size 7000m -layout SPUD -fs HFS+J | |
# mount blank image at install_build | |
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build |
https://github.com/mikebrady/shairport-sync/blob/master/INSTALL.md
shairport-sync --version
3.3.2-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc
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 | |
# Call with <script> "<VPN Connection Name>" | |
set -e | |
#set -x | |
vpn="$1" | |
echo "$vpn" |
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
# copied from https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
#!/usr/bin/env bash | |
# ~/.macos — https://mths.be/macos | |
# Close any open System Preferences panes, to prevent them from overriding | |
# settings we’re about to change | |
osascript -e 'tell application "System Preferences" to quit' |
https://apple.stackexchange.com/questions/94330/how-can-i-convert-a-dmg-to-iso-on-mac-os-x-preferably-for-free
hdiutil makehybrid -iso -joliet -o [filename].iso [filename].dmg
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
# pipe text to openssl command | |
echo -n "<text>" | openssl sha1 | |
# example using the word 'password' as text | |
echo -n "password" | openssl sha1 | |
# (stdin)= 5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8 | |
# check out https://hashes.org/hashlists.php |
NewerOlder