-
Reset to factory defaults
reset config bootstrap reset config
-
Configure interfaces
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
# From my .bashrc | |
# Thanks to https://github.com/onmomo/superdrive-enabler | |
SDE=/usr/local/sbin/superdriveEnabler | |
if [ ! -f $SDE ]; then | |
curl -s -o $SDE https://raw.githubusercontent.com/onmomo/superdrive-enabler/master/dist/x86_64/superdriveEnabler_x86_64 | |
chmod a+x $SDE | |
fi | |
SDERULES=/etc/udev/rules.d/99-superdrive.rules | |
if [ -f $SDE ]&&[ ! -f $SDERULES ]; then |
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 | |
# $1 - BUCKET - The S3 bucket to scan | |
# $2 - PATH_TO_CLEAN - The base path to clean. This will | |
# select only subfolders of this path. No leading | |
# or trailing slash. | |
# $3 - DEPTH_TO_KEEP - The number of levels of folders | |
# to exclude from PATH_TO_CLEAN. All folder objects | |
# below this level will be removed. If files still | |
# exist in the folder, the folder will remain visable. |
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 | |
function parse_yaml { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\):|\1|" \ | |
-e "s|^\($s\)\($w\)$s:$s[\"']\(.*\)[\"']$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; |
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
MAIL_SERVER = '' | |
USERNAME = '' | |
PASSWORD = '' | |
MAILBOX = 'Spam' | |
MAX_DAYS = 7 # Deletes messages older than a week | |
import imaplib | |
import datetime | |
today = datetime.date.today() |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<!-- Home: Manual --> | |
<dict> | |
<key>UserDefinedName</key> |
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 | |
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html | |
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; } | |
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; } | |
readonly parameterName="SlawekTestParam" | |
readonly method="POST" |
This is a quick guide to setting up your AP230 as a wireless client bridge, allowing any devices plugged in via eth0 to communicate with the network of the connected SSID. Note that this config uses NAT, and I cannot figure out how to set a static IP for the "WAN" interface, so DHCP it is.
- Connect a console cable to to the "console" port (or do step two, SSH into the address which appears on your network)
- After providing power to the AP (either with PoE or 12v/1a connector), hold the reset button for 30s (or login and execute reset config bootstrap, reset config)
- Default login:
admin:aerohive
- Basic Administravia:
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
Combine one or more inclusion regex with one or more exclusion regex to form a single exclusion regex. This is based on a negative forward lookup to turn an inclusion into an exclusion.
^((?!(
regexp_to_invert)).)*$
# takes single regexp as string or multiple as array, or nil
OlderNewer