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 | |
airport="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" | |
security find-generic-password -w -a $($airport -I | awk '/ SSID: /{print $2}') |
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 | |
# This will look at the overviewstatus.xml file and | |
# determine if Backblaze is currently transmitting a file. | |
# | |
# Developed against: | |
# macOS 10.13.3 | |
# Backblaze 5.2.0.172 | |
BBSTATUS='/Library/Backblaze.bzpkg/bzdata/overviewstatus.xml' |
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 | |
get_current_wifi_password() { | |
# this command from http://bit.ly/2zWtUhQ | |
current_wifi=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | \ | |
awk '/ SSID/ {print substr($0, index($0, $2))}'` | |
security find-generic-password -a "$current_wifi" -g | tail -0 | |
} | |
get_wifi_password() { |
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 | |
# see LICENSE file on this gist at gist.github.com/codycodes | |
# Requires root permissions. An easy way to run this script is to simply use "sudo bash change_raspberry_pi_hostname.sh" | |
# Changes the hostname on your raspberry pi to what's set in $hostname (variable) | |
# Can be passed in as a parameter by calling this script or set explicitly in this file | |
# Makes a backup of the hosts file (/etc/hosts.bak) |
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 | |
CYAN="$(tput bold; tput setaf 6)" | |
RESET="$(tput sgr0)" | |
clear | |
if command -v python3 > /dev/null 2>&1; then | |
if [ $(python3 -c "print('ye')") = "ye" ]; then | |
clear |
OlderNewer