Skip to content

Instantly share code, notes, and snippets.

View Gelob's full-sized avatar

Ryan Gelobter Gelob

View GitHub Profile
@Gelob
Gelob / libvirt-backup.sh
Created March 19, 2024 20:29
libvirt-backup script slightly modified for Slack notifications. Modified from an original script created by @cpcwood
#Slightly modified from https://cpcwood.com/code-snippets/22-backup-libvirt-domains-using-virtnbdbackup
virtnbdbackup_path=/bin/virtnbdbackup
backup_base_dir=/mnt/backups
remove_backups_older_than_months=3
domains_to_backup=(
"domain-a"
"domain-b"
)
for domain in "${domains_to_backup[@]}"; do
@Gelob
Gelob / ebayid.js
Created October 23, 2022 18:52
eBay ID viewer for HobbyDB
// ==UserScript==
// @name eBay ID viewer for HobbyDB
// @namespace http://tampermonkey.net/
// @version 0.1
// @description show eBay IDs in listing
// @author Ryan
// @match https://www.ebay.com/sch/*
// @icon https://www.google.com/s2/favicons?domain=ebay.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @grant none

Keybase proof

I hereby claim:

  • I am gelob on github.
  • I am gelob (https://keybase.io/gelob) on keybase.
  • I have a public key ASA3JPLKaqitnTl7V1TQ3m4wYM5Sj3T8vExrm-U2DK5A8Qo

To claim this, I am signing this object:

@Gelob
Gelob / hipchat2csv.py
Last active January 3, 2018 15:51
Run with python hipchat2csv.py authtoken email write or post. Example: 'python hipchat2csv.py my.name@example.com print'. This will get the last 1000 messages from my conversations with my.name@example.com and print the csv output. If i use write instead of print it will write to a file with the email as the filename.
#You can get your own API token by going to https://yourcompany.hipchat.com/account/api and generating one.
#If you get an error it might be because something doesn't exist or you typo'd, there isn't much error checking
import json
import sys
import os
import os.path
import requests
def get_history(email, token):
hipchat_url = "https://api.hipchat.com/v2/user/{0}/history/latest?auth_token={1}&max-results=1000&reverse=true".format(email,token)
@Gelob
Gelob / gist:5016966
Created February 22, 2013 22:14
posterous list
!.posterous.com
$$.posterous.com
%2a.posterous.com
*.posterous.com
,.posterous.com
-.posterous.com
-15.posterous.com
-3.posterous.com
-in.posterous.com