Skip to content

Instantly share code, notes, and snippets.

View calvinhp's full-sized avatar

Calvin Hendryx-Parker calvinhp

View GitHub Profile
@calvinhp
calvinhp / gist:7880209
Created December 9, 2013 20:28
Vagrant 1.4 upload error debugging
INFO global: Vagrant version: 1.4.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/help/plugin.rb
### Keybase proof
I hereby claim:
* I am calvinhp on github.
* I am calvinhp (https://keybase.io/calvinhp) on keybase.
* I have a public key whose fingerprint is E88A B6EC D770 CEDF CFF9 A1B9 E46C C198 87CE 0B0D
To claim this, I am signing this object:
@calvinhp
calvinhp / complex_salt_orchestrate.sls
Created June 2, 2019 20:38 — forked from whiteinge/complex_salt_orchestrate.sls
An example of a complex, multi-host Salt Orchestrate state that performs status checks as it goes
# /srv/salt/upgrade_the_app.sls
# Example of a complex, multi-host Orchestration state that performs status checks as it goes.
# Note, this is untested and is meant to serve as an example.
# Run via: salt-run state.orch upgrade_the_app pillar='{nodes: [nodeA, nodeB], version: 123}'
{% set nodes = salt.pillar.get('nodes', []) %}
{% set all_grains = salt.saltutil.runner('cache.grains',
tgt=','.join(nodes), tgt_type='list') %}
{# Default version if not given at the CLI. #}
@calvinhp
calvinhp / resume.json
Last active September 18, 2023 17:39
{
"basics": {
"name": "Calvin Hendryx-Parker",
"label": "CTO and Co-Founder",
"picture": "https://s.gravatar.com/avatar/4d1fa184d439599ed301821daec94063",
"email": "calvin@sixfeetup.com",
"phone": "+1 (415) 320-3308",
"website": "http://about.me/calvinhp",
"summary": "Calvin Hendryx-Parker is the co-founder and CTO of Six Feet Up, a Python development and Cloud consulting company established in 1999. At Six Feet Up, Calvin establishes the company's technical vision and leads all aspects of the company's technology development. He provide the strategic vision for enhancing the offerings of the company and infrastructure, and works with the team to set company priorities and implement processes that will help improve product and service development. Calvin is the co-founder of the Python user group IndyPy, the largest tech meetup in Indiana with 1,700+ members. In 2017, he also founded IndyAWS, now the fastest growing cloud meetup in the state with 700+ members.",
"location": {
import base64
import hashlib
import hmac
import json
import os
import time
import requests
api_endpoint = "https://api.scaleengine.net/stable/"
import os
from pprint import pprint
import requests
def grab_data():
cdn = os.environ["SE_CDN"]
secret = os.environ["SE_SECRET"]
api_endpoint = f"https://{cdn}:{secret}@api.scaleengine.net/v2"
import re
from urllib.parse import urlparse
import click
import requests
from bs4 import BeautifulSoup
@click.command()
@click.argument('url')
def grab_twitter_handles(url):
Driver Info:
Driver name : uvcvideo
Card type : Logitech BRIO
Bus info : usb-0000:38:00.0-2
Driver version : 5.4.44
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
@calvinhp
calvinhp / pick_meetingplace_winnder.py
Last active October 13, 2020 22:21
Picking a meetup winner with requests and beautifulsoup
import requests
import random
from bs4 import BeautifulSoup
r = requests.get("https://meetingplace.io/indypy/events/2649/rsvps")
soup = BeautifulSoup(r.text)
members = soup.findAll("div", {"class":"member-name"})
print(random.choice([t.text for t in members]))
@calvinhp
calvinhp / revoke_shared_dropbox_links.py
Created August 18, 2021 20:53
Ever wanted to clear your DropBox business account of all old shared links?