Skip to content

Instantly share code, notes, and snippets.

View oakaigh's full-sized avatar
👻
* { color: black !important; }

Jared C oakaigh

👻
* { color: black !important; }
View GitHub Profile
import re
def _text_sep(f, rexp):
with open(f) as cells_md_f:
s = ''
rr = re.compile(rexp)
for l in cells_md_f.readlines():
if re.match(rr, l):
yield s
curl -L https://github.com/github/gitignore/raw/main/{C,C++,Global/{Linux,Windows,macOS,Vim,SublimeText,VisualStudioCode}}.gitignore > .gitignore
import itertools
import collections
import numpy as np
def isiter(a):
return isinstance(a, collections.abc.Iterable)
def iter_to_str(a, seps=itertools.repeat(' ')):
def _impl(_a, _sep, _nseps):
@oakaigh
oakaigh / upgrade.sh
Last active February 8, 2022 22:48
CentOS Stream 8 to 9 Upgrade
#!/usr/bin/env bash
sudo dnf -y --disablerepo epel-modular install http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-{gpg-keys,stream-{release,repos}}-9.0-9.el9.noarch.rpm
sudo dnf -y --disablerepo epel-modular --nogpgcheck upgrade epel-release
sudo dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync
sudo rpmdb --rebuilddb
strace $(printf -- '-p %s ' $(pgrep bash))

(NOTES) Cisco® Aironet® 2700 Series

(CASE: WLC unable to find AP) Firmware Upgrade

In Cisco IOS command-line interface (CLI):

enable
debug capwap console cli
delete /f /r flash:update
apt remove --purge motd-news-config
function pscmd() {
for e in $@; do
ps -p`pgrep $e` -wwo args | tail -n+2
done
}
while true; do airport -I | grep CtlRSSI | tr '\n' '\0'; sleep 0.1; printf '\r'; done