Skip to content

Instantly share code, notes, and snippets.

View hall757's full-sized avatar
🌎
Consuming oxygen... unless this is a simulation!

Randy Hall hall757

🌎
Consuming oxygen... unless this is a simulation!
View GitHub Profile
@atomspring
atomspring / AP230 Client.md
Last active September 13, 2023 19:27
Aerohive AP230 wireless client bridge

AP230 Wireless Client Bridge Setup

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.

Setup steps

  1. Connect a console cable to to the "console" port (or do step two, SSH into the address which appears on your network)
  2. 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)
  3. Default login: admin:aerohive
  4. Basic Administravia:
@santaklouse
santaklouse / CrossOver.sh
Last active May 3, 2024 03:02
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@samdoran
samdoran / aerohive.md
Last active April 19, 2024 22:14
Configuring Aerohive access points using the CLI

Aerohive

Initial setup

  1. Reset to factory defaults

     reset config bootstrap
     reset config
    

    The username is admin and the password is aerohive or Aerohive1.

@slawekzachcial
slawekzachcial / aws-sigv4-ssm-get-parameter.sh
Last active May 3, 2024 02:51
Using CURL to call AWS ReST API, signing request with v4 signature
#!/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"
@thomaswitt
thomaswitt / VPNConfigurationProfiles.mobileconfig
Last active May 1, 2024 18:03
An OnDemand VPN iOS profile for iPad and iPhone that automatically connects you to different VPNs (e.g. Meraki, FRITZ!Box and Streisand) | Blog-Entry: https://thomas-witt.com/auto-connect-your-ios-device-to-a-vpn-when-joining-an-unknown-wifi-d1df8100c4ba
<?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>
@Rathgore
Rathgore / delete_old_mail.py
Created May 4, 2012 21:00
Simple script to delete old messages in an IMAP mailbox
MAIL_SERVER = ''
USERNAME = ''
PASSWORD = ''
MAILBOX = 'Spam'
MAX_DAYS = 7 # Deletes messages older than a week
import imaplib
import datetime
today = datetime.date.today()