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
@sesopenko
sesopenko / backup-encrypted-debian-12.md
Last active April 29, 2025 03:19
Backup and restore process of encrypted debian 12 install

Encrypted Install Backup

Backup and restoration process of Debian 12 installation with automated partitioning option of LVM with Luks encryption.

Prerequisites

Installed by default:

  • cryptsetup
  • lvm2
@drconopoima
drconopoima / pyenv-common-build-problems-useful.md
Last active August 1, 2025 20:46
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 September 20, 2025 17:27
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);
}