Skip to content

Instantly share code, notes, and snippets.

@tyzbit
tyzbit / README.md
Last active October 31, 2023 21:49 — forked from vasturiano/.blocks.json
The Lightning Network (Mainnet)

Forked from vasturiano, with dataset and minor other changes.

The Lightning Network as seen from my node at about 18:49 UTC on 1-28-2018.

Nodes are colored according to settings set by the node operators. Lines are channels between nodes. Nodes that fly off into the background do not have any visible channels. Line colors are representative of the channel capacity, but is colored dynamically.

@tyzbit
tyzbit / plex-status.js
Last active February 9, 2016 14:31 — forked from Dirrk/plex-status.js
Plex status.js
#!/usr/bin/node
/*
Install nodejs
create directory with this file in it and run the following commands:
npm install wreck@7.0.0 lodash@3.10.1
Setup with crontab:
* * * * * /usr/bin/node /home/dirrk/scripts/plex-info/plex-status.js >> /var/log/plex/plexstatus.log 2>/dev/null
Setup splunk to consume json with timestamp from utc on timestamp field
@tyzbit
tyzbit / plex-dashboard.xml
Last active September 14, 2021 22:54 — forked from Dirrk/plex-dashboard.xml
splunk dashboard for plex
<dashboard>
<label>my-plex-dashboard</label>
<row>
<panel>
<chart>
<title>Plex memory usage - 6 hours</title>
<search>
<query>index="os" source=ps COMMAND=Plex | rex field=ARGS ".*?-i_.*\/media\/.*\/(?&lt;t_file&gt;.*?)_-(?:filter|map_inline|map_[\d])" | rex field=ARGS "Plug.*\/(?&lt;plugin_name&gt;.*)$" | eval memMB=mem_used/1048576 | eval name=if(ARGS LIKE "New_Transcoder%",if(isnull(t_file),"Unknown Video Source",t_file),if(ARGS LIKE "Plug-in%", plugin_name, ARGS)) | timechart limit=20 avg(memMB) by name</query>
<earliest>-6h</earliest>
<latest>now</latest>