Skip to content

Instantly share code, notes, and snippets.

View jamiew's full-sized avatar

Jamie Dubs jamiew

View GitHub Profile

Cute Sparkles

These cool and girly glitters come with lots of flowers, hearts, bows and ribbons! These decorations can suit all sorts of happy and soft aesthetic moods ~ ✨(◕▿◕✿)

✧・゚: *✧・゚:*    *:・゚✧*:・゚✧
.・゜゜・  ・゜゜・.
。・゚゚・  ・゚゚・。
༶•┈┈⛧┈♛ ♛┈⛧┈┈•༶
✧༺♥༻∞  ∞༺♥༻✧

*✿❀ ❀✿*

@jamiew
jamiew / brew-sync.sh
Created January 8, 2016 17:14 — forked from witt3rd/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox (including casks)
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@jamiew
jamiew / google_twunter_lol
Created July 28, 2011 20:34
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
#!/bin/bash
app="$1"
if [ -z "$app" ]; then
echo "$0: specify binary/app name as first and only argument"
exit 1
fi
echo
echo "which: $(which "$app")"
@jamiew
jamiew / beos-netpositive-haiku-errors.txt
Created August 10, 2023 08:44 — forked from benjaminoakes/errors.txt
BeOS (NetPositive) haiku error messages
Not a pretty sight
When the web dies screaming loud
The site is not found.
Morning and sorrow
404 not with us now
Lost to paradise.
@jamiew
jamiew / denylist-import.sh
Created July 19, 2023 17:00
import Helium denylist data into postgres data (e.g. on DeWi ETL)
#!/bin/bash
# import helium denylist data from github to a local postgres table
url="https://raw.githubusercontent.com/helium/denylist/main/denylist.csv"
csv="/tmp/denylist.csv"
db="etl"
echo "downloading from $url ..."
curl -s "$url" > "$csv"
echo "saved to $csv. file has $(cat $csv | wc -l) rows"
@jamiew
jamiew / helium_etl.md
Created July 18, 2023 16:18 — forked from dansku/helium_etl.md
Helium ETL Setup Tutorial

Setting up a Helium ETL

This documents explains a quick intro how to setup your own ETL server for the Helium Blockchain. Running an ETL is not an easy task, but hopefully this document will help you get started, and by the end you will have the blockchain up and running.

Server Requirements

  • 2TB SSD (NVME prefered) disk

Install and configure PostgreSQL + PostGis

@jamiew
jamiew / plex-scan.sh
Created December 7, 2019 16:01
WIP script to intelligently upate my Plex library after sabnzbd downloads are done
#!/bin/bash
# sabnzbd post-download notification script for Plex
# Define $PLEX_TOKEN in your environment
# Debug arguments to sab
echo "Args:"
for word in "$@"; do
echo "$word"
done
@jamiew
jamiew / ipfs-main.json
Last active August 12, 2022 04:52 — forked from eefahy/ipfs-main.json
Grafana dashboard configuration for the IPFS Prometheus endpoint
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@jamiew
jamiew / Munin Passenger Phusion Memory Stats.rb
Created October 31, 2008 18:55
munin plugin to monitor Passenger Phusion memory stats
#!/usr/bin/env ruby
# put in /etc/munin/plugins and restart munin-node
# by Dan Manges, http://www.dcmanges.com/blog/rails-application-visualization-with-munin
# NOTE: you might need to add munin to allow passwordless sudo for passenger-memory-stats
def output_config
puts <<-END
graph_category App
graph_title Passenger memory stats
graph_vlabel count