Skip to content

Instantly share code, notes, and snippets.

2019-05-23 23:01:45 DEBUG (SyncWorker_2) [pyaarlo] starting
2019-05-23 23:01:45 DEBUG (SyncWorker_2) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/login/v2
2019-05-23 23:01:46 DEBUG (EventStream) [pyaarlo] starting event loop
2019-05-23 23:01:46 DEBUG (EventStream) [pyaarlo] starting stream with no timeout
2019-05-23 23:01:46 INFO (SyncWorker_2) [pyaarlo] pyaarlo starting
2019-05-23 23:01:46 DEBUG (SyncWorker_2) [pyaarlo] starting request=https://arlo.netgear.com/hmsweb/users/devices
2019-05-23 23:01:47 DEBUG (SyncWorker_2) [pyaarlo] set:5EX184SH25B77/deviceId=5EX184SH25B77
2019-05-23 23:01:47 DEBUG (SyncWorker_2) [pyaarlo] set:5EX184SH25B77/deviceName=Back
2019-05-23 23:01:47 DEBUG (SyncWorker_2) [pyaarlo] set:5EX184SH25B77/deviceType=camera
2019-05-23 23:01:47 DEBUG (SyncWorker_2) [pyaarlo] set:5EX184SH25B77/mediaObjectCount=718
@optilude
optilude / find-cpu-hogs.sh
Created March 15, 2020 20:09
Capture processes with significant CPU usage (Bash shell script)
#!/bin/bash
# Output CSV-formatted statistics about each process using > ${threshold}% CPU,
# sampling every ${delay} seconds. Assume we'll find them in the top ${max}
# processes returned by `top` sorting by CPU usage.
threshold=${1:-5}
delay=${2:-5}
max=${3:-25}
@optilude
optilude / _app.js
Last active March 25, 2024 15:05
Pattern for accessing a Feathers client via a React context hook
import React, { useState, useEffect } from 'react';
import { FeathersContext, createFeathersClient } from '../feathersClient';
/**
* Top level app wrapper which does a few things:
*
* - Ensure the feathers context is set up, so that pages can just `useFeathers()` to get a client.
* - Listen for login/logout events and pass a `user` prop to pages which is either `null`, or a user object.
*/