Skip to content

Instantly share code, notes, and snippets.

@kyledrake
kyledrake / mime.types
Created April 30, 2023 22:40
mime.types for nginx that works with bluesky resolveHandle
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/javascript js;
application/atom+xml atom;
application/rss+xml rss;
@kyledrake
kyledrake / geocities-link-extensions.txt
Created July 12, 2019 21:53
List of file extensions ever used in the Geocities Archive for src= or href= links.
@kyledrake
kyledrake / geocities-archive-virus-scan.txt
Last active April 24, 2019 18:21
List of "viruses" detected from a clamav scan of the Geocities archive.
www.geocities.com/CollegePark/Gym/4455/booo.zip: Win.Joke.Jep-1 FOUND
www.geocities.com/CollegePark/Gym/4455/speed.zip: Win.Joke.ProjectCool-1 FOUND
www.geocities.com/CollegePark/Gym/4455/whack.zip: Legacy.Trojan.Agent-372 FOUND
www.geocities.com/CollegePark/Gym/4455/light.zip: Win.Trojan.Agent-229806 FOUND
www.geocities.com/CollegePark/Gym/4455/xo.zip: Win.Trojan.3586487-1 FOUND
www.geocities.com/CollegePark/Gym/4455/funny.zip: Win.Trojan.Joke-1 FOUND
www.geocities.com/CollegePark/Gym/1245/ImageFiles/pro.doc: Doc.Trojan.Marker-1 FOUND
www.geocities.com/CollegePark/Gym/1245/ImageFiles/pro.doc: Doc.Trojan.Mamm-1 FOUND
www.geocities.com/CollegePark/Gym/5740/programas/TESTDEPSICOLOGIADELMIEDO.zip: Win.Joke.Pelotas-1 FOUND
www.geocities.com/CollegePark/Square/6517/Haker/E-edup.ZIP: Win.Trojan.Fedup-1 FOUND
@kyledrake
kyledrake / token.rb
Created April 11, 2019 19:13
Script for solving question/answer from Myspace circa 2009
require 'net/http'
module Myspace
class Token
def self.get_for_song(o = {})
return nil unless o[:artist_id] && o[:album_id] && o[:song_id]
headers = HttpHeader.random_agent 'http://lads.myspace.com/videos/Main.swf'
headers['x-myspace-id'] = "ownerId=#{o[:artist_id]};contentId=#{o[:song_id]},#{o[:album_id]}"
@kyledrake
kyledrake / song-genres.txt
Created April 10, 2019 07:20
Myspace Dragon Hoard: Count of songs with tagged genre
2-step (1904)
A'cappella (2561)
Acousmatic (923)
Acoustic (32511)
Afro-beat (3334)
Alternative (47577)
Ambient (13456)
Americana (5809)
Big Beat (1659)
Black Metal (6109)
@kyledrake
kyledrake / dl.sh
Created April 6, 2019 17:58
Myspace dragon hoard faster direct dl (until torrent is fixed)
#!/bin/bash
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/1.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/2.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/3.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/4.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/5.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/6.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/7.zip &
wget --tries=0 --continue https://archive.org/download/myspace_dragon_hoard_2010/8.zip &
@kyledrake
kyledrake / Keybase Proof
Created August 16, 2017 19:23
Keybase Proof
### Keybase proof
I hereby claim:
* I am kyledrake on github.
* I am kyledrake (https://keybase.io/kyledrake) on keybase.
* I have a public key whose fingerprint is B128 E73F A18D ABCB 88D4 087B D184 D8CD DCE6 F6D4
To claim this, I am signing this object:
@kyledrake
kyledrake / bitcoincash.js
Created August 15, 2017 01:43
Spends from a 2 of 3 multisig to a pubkeyhash with Bitcoin Cash (UNTESTED)
/* npm install -g https://github.com/afk11/bitcoinjs-lib/tarball/opt-in-bitcoincash-sighash */
/*
This script spends from a 2 of 3 multisig to a pubkeyhash using Bitcoin Cash
*/
var bitcoin = require('bitcoinjs-lib')
var network = bitcoin.networks['bitcoin']
var outputValue = 4500000 // How much to send (remainder is the miner fee)
var inputValue = 4600000 // utxo value is required for bitcoin cash signature
@kyledrake
kyledrake / ceph-grow-rbd-xfs
Created March 14, 2017 03:58 — forked from briancline/ceph-grow-rbd-xfs
Growing a Ceph RBD volume and an XFS filesystem contained within
# df -h /dev/rbd0
Filesystem Size Used Avail Use% Mounted on
/dev/rbd0 1.5T 1.5T 557M 100% /mnt/media
# rbd info media/media01
rbd image 'media01':
size 1536 GB in 393216 objects
order 22 (4096 kB objects)
block_name_prefix: rb.0.1098.74b0dc51
format: 1
@kyledrake
kyledrake / bird.conf
Last active September 22, 2016 19:34
newbird.conf
log syslog all;
router id **MY_IP**;
protocol bgp vultr {
local as 395409;
source address **MY_IP**;
import none;
export all;
graceful restart on;