Skip to content

Instantly share code, notes, and snippets.

View suhailpatel's full-sized avatar
🕶️

Suhail Patel suhailpatel

🕶️
View GitHub Profile
@suhailpatel
suhailpatel / oreilly-live-events.py
Created December 27, 2022 17:58
A CLI to interact with the O'Reilly Live Events site
#!/usr/bin/python3
import cmd, json, sys, traceback
from collections import defaultdict
from dataclasses import dataclass
from typing import List, Dict
import requests
# This is part of Suhail's talk on the Infrastructure and Ops Superstream
# track for O'Reilly
@suhailpatel
suhailpatel / LICENSE
Last active October 27, 2022 19:57
Implementation of a database for "Dissecting the humble LSM Tree and SSTable" for SRECon EMEA 2022
The MIT License (MIT)
Copyright (c) 2022 Suhail Patel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@suhailpatel
suhailpatel / qcon-london-2022.py
Created March 19, 2022 21:41
A CLI to interact with the QCon London 2022 website
#!/usr/bin/python3
import cmd, re, sys, traceback
from dataclasses import dataclass
from typing import List
import requests
from bs4 import BeautifulSoup
# This is part of Suhail's talk on the Developer Enablement
# track at QCon London 2022

Keybase proof

I hereby claim:

  • I am suhailpatel on github.
  • I am suhailpatel (https://keybase.io/suhailpatel) on keybase.
  • I have a public key whose fingerprint is 1963 8EC8 A1C1 37AB 9073 5CE4 A8F5 B9F7 FA0C C68B

To claim this, I am signing this object:

@suhailpatel
suhailpatel / number-adding.py
Created December 30, 2013 13:20
The Guardian Science Twitter Account posted an interesting problem and I had 10 minutes or so spare to tackle it using Python. The problem is: >> New year conundrum: complete the equation 10 9 8 7 6 5 4 3 2 1 0 = 2014 @AlexBellos http://t.co/EMedtSq9WT
# The Guardian Science Twitter Account posted an interesting problem and
# I had 10 minutes or so spare to tackle it using Python. The problem is:
#
# New year conundrum: complete the equation 10 9 8 7 6 5 4 3 2 1 0 = 2014
# @AlexBellos http://t.co/EMedtSq9WT
#
# Not a very elegant solution but it does the job just fine
numbers = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
target = 2014
#!/bin/bash
# Define some Constants as Variables
SCRIPT_VERSION="0.9.9"
RUBYGEMS_FILENAME="rubygems-1.3.5.tgz"
RUBYGEMS_FOLDER="rubygems-1.3.5"
RUBYGEMS_SOURCE="http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz"
SPAWNFCGI_FILENAME="spawn-fcgi-1.6.2.tar.gz"