Skip to content

Instantly share code, notes, and snippets.

View amiantos's full-sized avatar
🤘
PSI Rockin

Brad Root amiantos

🤘
PSI Rockin
View GitHub Profile
@jaburns
jaburns / png-embed.js
Created May 13, 2020 00:17
node.js code for embedded data in a png
const fs = require('fs');
const testPng = fs.readFileSync('input.png');
// ===== crc-32 ==============================================
// https://github.com/SheetJS/js-crc32/blob/master/crc32.js
function signed_crc_table() {
var c = 0, table = new Array(256);
for(var n =0; n != 256; ++n){
c = n;
@teasherm
teasherm / s3_multipart_upload.py
Last active September 19, 2024 23:54
boto3 S3 Multipart Upload
import argparse
import os
import boto3
class S3MultipartUpload(object):
# AWS throws EntityTooSmall error for parts smaller than 5 MB
PART_MINIMUM = int(5e6)