-
Reset to factory defaults
reset config bootstrap reset config
The username is
admin
and the password isaerohive
orAerohive1
.
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
#!/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: |
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 | |
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 |
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://gist.github.com/jkoop/577a96fa421a8dfec22a48334a7493a0 | |
function scanForRedLink(link, url) { | |
if (link.classList.contains('no-redlink')) { // for stuff like logout links | |
return; | |
} | |
if (url === null || url.startsWith('javascript:') || url.startsWith('#') || url.length < 1) { // for stuff like javascript and elements | |
return; | |
} |
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
<?php // app/Http/Traits/ClosureTable.php | |
namespace App\Models\Traits; | |
use Exception; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations\BelongsToMany; | |
use Illuminate\Support\Facades\Db; | |
/** |
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
call plug#begin() | |
Plug 'drewtempelmeyer/palenight.vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'wlangstroth/vim-racket' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'rust-lang/rust.vim' | |
Plug 'preservim/tagbar' | |
Plug 'universal-ctags/ctags' | |
Plug 'luochen1990/rainbow' | |
Plug 'vim-syntastic/syntastic' |
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
[Interface] | |
Address = 10.200.200.3/32 | |
PrivateKey = [Client's private key] | |
DNS = 8.8.8.8 | |
[Peer] | |
PublicKey = [Server's public key] | |
PresharedKey = [Pre-shared key, same for server and client] | |
Endpoint = [Server Addr:Server Port] | |
AllowedIPs = 0.0.0.0/0 |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
- There are always 24 hours in a day.
- February is always 28 days long.
- Any 24-hour period will always begin and end in the same day (or week, or month).
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
$INPUTVIDEO='input.mp4' | |
$OUTPUTVIDEO='output.mp4' | |
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
NewerOlder