Skip to content

Instantly share code, notes, and snippets.

View jcputney's full-sized avatar

Jonathan Putney jcputney

View GitHub Profile
#!/bin/bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install neofetch node lolcat yq jq zsh watch wget vim travis stern mysql-client maven kubeseal kubernetes-helm kubernetes-cli kops jenv imagemagick htop highlight git fortune fluxctl cowsay awscli aws-iam-authenticator
brew cask install 1password docker firefox google-chrome github iterm2 microsoft-office sublime-text textexpander visualvm aerial jetbrains-toolbox browserstacklocal slack swish brave-browser
@jcputney
jcputney / S3OutputStream.java
Last active September 12, 2024 15:59 — forked from blagerweij/S3OutputStream.java
OutputStream which wraps AWS Java SDK v2 S3Client, with support for streaming large files directly to S3
import java.io.ByteArrayInputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.AbortMultipartUploadRequest;
import software.amazon.awssdk.services.s3.model.CompleteMultipartUploadRequest;
import software.amazon.awssdk.services.s3.model.CompletedMultipartUpload;
@jcputney
jcputney / MySQLJsonDelegate.java
Created April 20, 2023 16:43
Store Quartz Job Data in MySQL JSON Column
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobDetail;
import org.quartz.impl.JobDetailImpl;