Skip to content

Instantly share code, notes, and snippets.

View calvinhp's full-sized avatar

Calvin Hendryx-Parker calvinhp

View GitHub Profile
cdn.mxpnl.com/libs/mixpanel-2-latest.min.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
3001.scriptcdn.net/code/static/1:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
apimprodenvironment.azure-api.net/prod-private-api/Accounts/GetAccountColor/:1 Failed to load resource: the server responded with a status of 404 (Resource Not Found)
apimprodenvironment.azure-api.net/prod-private-api/Chargify/GetAccountSubscriptionDetails/:1 Failed to load resource: the server responded with a status of 404 (Resource Not Found)
apimprodenvironment.azure-api.net/prod-private-api/Accounts/GetUniqueStyleCount/:1 Failed to load resource: the server responded with a status of 404 (Resource Not Found)
apimprodenvironment.azure-api.net/prod-private-api/Accounts/GetMarketMoodPercent/:1 Failed to load resource: the server responded with a status of 404 (Resource Not Found)
apimprodenvironment.azure-api.net/prod-private-api/Accounts/Get30DaysDiscoveryCompletionByAccount/:1 Failed to load reso
@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?
@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]))
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
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):
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 base64
import hashlib
import hmac
import json
import os
import time
import requests
api_endpoint = "https://api.scaleengine.net/stable/"
@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": {
@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. #}
### 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: