Skip to content

Instantly share code, notes, and snippets.

@samdoran
samdoran / aerohive.md
Last active March 20, 2025 01:29
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.

@jkoop
jkoop / redlinks.js
Last active March 6, 2022 01:28
Try each link on the page, and if it's dead, made it red
@jkoop
jkoop / split-media-by-chapters.sh
Last active September 30, 2022 01:37
use ffmpeg to split file by chapter metadata
#!/bin/bash
while [ $# -gt 0 ]; do
extension="${1##*.}"
ffmpeg -i "$1" 2> tmp.txt
# Chapter #0:0: start 0.000000, end 1290.013333
# first _ _ start _ end
while read -r first _ _ start _ end; do
@jkoop
jkoop / get-list-of-clients-from-aerohive-aps.php
Created April 11, 2023 02:30
Get a list of all Wifi clients from AeroHive APs
#!/usr/bin/php
<?php
/**
* This script SSHes into all of my AeroHive Wifi APs, gets a list of current
* connected clients from each if them, assembles the list into one, and writes
* that list to a JSON file.
*
* This is intended to be run as a minutely `cron` job. As such, the path of the
* output file is the date, formatted to not put a million files in one folder: