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 January 1, 2024 06:06
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 python-openssl git
@singledigit
singledigit / cognito.yaml
Last active April 28, 2024 15:12
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);
}