Skip to content

Instantly share code, notes, and snippets.

View sesopenko's full-sized avatar

Sean Esopenko sesopenko

  • Benevity, Inc.
  • Calgary, Canada
View GitHub Profile
@drconopoima
drconopoima / pyenv-common-build-problems-useful.md
Last active October 25, 2024 07:57
Pyenv Wiki Common Build Problems when it was useful

Prerequisites

Make sure to follow this guidance for your platform before any troubleshooting.

  • Ubuntu/Debian:
sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git cmake
@singledigit
singledigit / cognito.yaml
Last active August 14, 2024 09:14
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@sesopenko
sesopenko / Html5Upload.js
Last active December 11, 2015 10:38
Example code for an ajax file upload with jQuery and HTML5.
if(window.FormData){
var formData = new FormData($('form#uppic', $('div#upload'))[0]);
$.ajax({
url:'/upload/'+gUUID,
type:'POST',
xhr:function(){
var myXhr = $.ajaxSettings.xhr();
if(myXhr.upload){//check if upload property exists
myXhr.upload.addEventListener('progress', sendpic.progressHandle);
}