Skip to content

Instantly share code, notes, and snippets.

View reikoNeko's full-sized avatar

Rachel Rawlings reikoNeko

View GitHub Profile
@reikoNeko
reikoNeko / CyberThreatHunting_links.txt
Created April 4, 2020 19:13
Links and acronym expansion from John Strand's "Cyber Threat Hunting" presentation
@reikoNeko
reikoNeko / wp_multisite_hints.txt
Created October 26, 2020 16:18
WP-CLI commands for multisite installations
#### Comment Spam prevention
# Disable comments on all blogs
site_list=`wp site list | cut -f 1 | grep -v blog`
for U in $site_list; do wp db query "update wp_${U}_options set option_value='closed' where option_name='default_comment_status';" ; done
for U in $site_list; do wp db query "update wp_${U}_options set option_value=0 where option_name='close_comments_days_old';" ; done
@reikoNeko
reikoNeko / stations.py
Created January 19, 2021 20:23
Dump radio stations from Rhythmbox to a list
import xmltodict
import pprint
with open('.local/share/rhythmbox/rhythmdb.xml') as F:
rhythmdb = xmltodict.parse(F.read())
stations = sorted( [(E['title'], E['location']) for E in rhythmdb['rhythmdb']['entry'] if E['@type'] == 'iradio'] )
pp = pprint.PrettyPrinter(width=240)
pp.pprint(stations)