Skip to content

Instantly share code, notes, and snippets.

@chrisnx
chrisnx / .bash_profile
Last active March 9, 2021 12:15
Handy alias for cleaning up stale local branches with git.
alias gitclean='git branch --merged | egrep -v "(^\*|master|develop|main)" | xargs git branch -d'
@chrisnx
chrisnx / fakealert.json
Last active May 24, 2018 15:27
Test Alert For Cube Scraper
[
{
"identifier": "cubetest30",
"description": "This is a test alert, please ignore!",
"severity": 4,
"certainty": 2,
"urgency": 3,
"event": "hurricane watch",
"region": {
"type": "Circle",
@chrisnx
chrisnx / gist:3ce20f68f5a64df3fb6bef9e8735772d
Created December 7, 2017 14:06
Unprocessed alert type - 119 Local Area Emergency - NOAA_691d65b9e84b61813a27317f2e07d1b5 - http://www.wsaz.com/content/news/Golden-alert-issued-for-man-with-dementia-462351423.html
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<ns1:alerts xmlns:ns1="http://gov.fema.ipaws.services/feed">
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
<identifier>03EDDD78-42C5-4CE6-843A-26FBE4E6000C</identifier>
<sender>OTG:jdunfeegem@gmail.com</sender>
<sent>2017-12-07T08:33:19-05:00</sent>
<status>Actual</status>
<msgType>Alert</msgType>
<source/>
<scope>Public</scope>