Skip to content

Instantly share code, notes, and snippets.

View markph0204's full-sized avatar

Mark Hurley markph0204

View GitHub Profile
import requests
from time import sleep
import os
import asyncio
import aiohttp
async def submit_and_wait():
print('Submitting request')
request_url = '<base url>/create_request'
@markph0204
markph0204 / gist:da62dfe78cfae01077192b61392f0431
Created May 11, 2017 22:49
Remove development paths from Spotlight
touch ~/Library/Caches/.metadata_never_index
touch ~/Library/Developer/.metadata_never_index
killall Finder
# Create a new virtualenv using the last component of path name
# Activate immediately when created
function pyenv_easy_3() {
result=${PWD##*/}
printf 'Create virtualenv for named local path...'
printf '%s\n' $result
pyenv virtualenv 3.6.1 $result
printf 'Setting local to new virtualenv...\n'
pyenv local $result
@markph0204
markph0204 / application.py
Created November 1, 2016 23:10
Python hug API ran on AWS Elastic Beanstalk
from main import __hug_wsgi__ as application