Skip to content

Instantly share code, notes, and snippets.

View jcass8695's full-sized avatar
🦊
Over on Gitlab

Jack Cassidy jcass8695

🦊
Over on Gitlab
View GitHub Profile
@jcass8695
jcass8695 / MyMetricsClient.ts
Created July 20, 2020 16:57
StatsdClient typings update example
import SDC from 'statsd-client';
export default class StatsDClient {
private client: SDC;
constructor(config: any) { # config must be passed as any or we reimpliment CommonOptions/TcpOptions etc.
this.client = new SDC(config);
}
counter(metricName: string, delta: number, tags?: any) {
@jcass8695
jcass8695 / rdr2-weapon-stats.sh
Last active June 13, 2020 12:55
Bash/jq one liner to grab the stats on every weapon in Red Dead Redemption 2 and format in nice pretty JSON
#! env bash
curl "https://www.gtabase.com/media/com_jamegafilter/en_gb/8.json" \
| jq "[.[] | { name: .name } * ([.attr[] | { key: (.title | if type == \"array\" then .[0] else . end), value: (.value | if type == \"array\" then .[0] else . end) }] | from_entries)]"
@jcass8695
jcass8695 / 4od-blocklist.txt
Last active October 5, 2024 12:26
4OD blocklist for pihole
2356e.v.fwmrm.net
ads-pres.channel4.com
cdn.http.anno.channel4.com
cdn.ss.anno.channel4.com
p.videologygroup.com
securecdn.videologygroup.com
toots-a.akamaihd.net
trk-euwest.tidaltv.com
2a7e9.v.fwmrm.net