Skip to content

Instantly share code, notes, and snippets.

@IObert
IObert / .zhsrc
Last active March 3, 2021 11:02
Simple aliases to make the life of CF developers easier
function checkCfStatus () {
if echo $(cf a 2>&1 >/dev/null) | grep -q 'The token expired\|Not logged in' $OUTPUT; then
cf login
fi
}
function preexecHook () {
if echo $1 | grep -q "cf "; then
checkCfStatus
fi
@samuelcolvin
samuelcolvin / motorola_camera_setup.md
Last active October 2, 2022 19:24
Hubble Motorola Focus 66-W Camera "CameraHD" setup

Use the Hubble app to get the camera connected to a wifi network.

Find the Camera's IP address:

> sudo arp-scan --interface=enp3s0 --localnet
Interface: enp3s0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.1.100	00:19:99:0f:6a:98	Fujitsu Technology Solutions
192.168.1.102	c4:6e:1f:53:f0:8b	(Unknown)