Skip to content

Instantly share code, notes, and snippets.

@zarmstrong
zarmstrong / ec2tags.rb
Last active July 4, 2016 19:03 — forked from drohr/ec2tags.rb
replaces spaces with pipes to take into account non-word (\w) characters in key or value.
require 'facter'
if Facter.value("ec2_instance_id") != nil
instance_id = Facter.value("ec2_instance_id")
region = Facter.value("ec2_placement_availability_zone")[0..-2]
tags = Facter::Util::Resolution.exec("ec2dtag --filter \"resource-id=#{instance_id}\" --region #{region} | cut -f 4-|awk 'BEGIN{FS=\" \";OFS=\"|\"} {$1=$1; print $0}'")
tags.scan(/(.*)\|+(.*)/) do |key, value|
fact = "ec2_tag_#{key}"
Facter.add(fact) { setcode { value } }
end
@zarmstrong
zarmstrong / renamer.sh
Last active January 2, 2016 05:20 — forked from anonymous/renamer.sh
#!/usr/bin/env bash
# This is a script to rename movies files
# from: Edge of Tomorrow [2014 BluRay].mp4
# to: Edge of Tomorrow [2014 720p].mp4
##############
# EDIT THESE #
##############
Name: pam_yubico
Version: 2.26
Release: 1%{?dist}
Summary: A Pluggable Authentication Module for yubikeys
Group: System Environment/Base
License: BSD
URL: http://opensource.yubico.com/yubico-pam/
Source0: https://developers.yubico.com/yubico-pam/Releases/pam_yubico-%{version}.tar.gz
#Patch0: pam_yubico-pamuid_t.patch
@zarmstrong
zarmstrong / clone.json
Last active July 31, 2026 00:37
autoshift-clone.json
{"count":195,"uniques":87,"clones":[{"timestamp":"2026-06-30T00:00:00Z","count":2,"uniques":1},{"timestamp":"2026-07-01T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-02T00:00:00Z","count":2,"uniques":2},{"timestamp":"2026-07-03T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-04T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-05T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-06T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-07T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-08T00:00:00Z","count":1,"uniques":1},{"timestamp":"2026-07-09T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-10T00:00:00Z","count":1,"uniques":1},{"timestamp":"2026-07-11T00:00:00Z","count":3,"uniques":2},{"timestamp":"2026-07-12T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-13T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-14T00:00:00Z","count":155,"uniques":60},{"timestamp":"2026-07-15T00:00:00Z","count":10,"uniques":7},{"timestamp":"2026-07-16T00:00:00Z","cou
@zarmstrong
zarmstrong / traffic.json
Last active July 31, 2026 00:52
autoshift-traffic.json
{"count":21,"uniques":5,"views":[{"timestamp":"2026-06-30T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-01T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-02T00:00:00Z","count":3,"uniques":1},{"timestamp":"2026-07-03T00:00:00Z","count":2,"uniques":1},{"timestamp":"2026-07-04T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-05T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-06T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-07T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-08T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-09T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-10T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-11T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-12T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-13T00:00:00Z","count":0,"uniques":0},{"timestamp":"2026-07-14T00:00:00Z","count":3,"uniques":1},{"timestamp":"2026-07-15T00:00:00Z","count":11,"uniques":1},{"timestamp":"2026-07-16T00:00:00Z","count":0,
@zarmstrong
zarmstrong / traffic.json
Last active July 31, 2026 00:24
zarmstrong/Twitch-Channel-Points-Miner-v3 traffic statistics
{
"count": 48,
"uniques": 14,
"views": [
{
"timestamp": "2026-06-30T00:00:00Z",
"count": 0,
"uniques": 0
},
{
@zarmstrong
zarmstrong / clone.json
Last active July 31, 2026 00:46
zarmstrong/Twitch-Channel-Points-Miner-v3 clone statistics
{
"count": 3652,
"uniques": 904,
"clones": [
{
"timestamp": "2026-06-30T00:00:00Z",
"count": 0,
"uniques": 0
},
{
@zarmstrong
zarmstrong / twitch-drops.json
Last active July 31, 2026 05:27
TCPMS_DROPS
{
"version": 1,
"generated_at": "2026-07-31T05:27:25.228638+00:00",
"source": "https://twitchdrops.app/",
"counts": {
"games": 87,
"campaigns": 106,
"drops": 282
},
"scrape_stats": {
@zarmstrong
zarmstrong / twitch-badges.json
Last active July 31, 2026 05:26
TCPMS_BADGES
{
"version": 1,
"generated_at": "2026-07-31T05:26:30.600909+00:00",
"source": "https://api.twitch.tv/helix/chat/badges/global",
"counts": {
"sets": 337,
"versions": 457
},
"sets": [
{