Skip to content

Instantly share code, notes, and snippets.

View r1ddl3m37h15's full-sized avatar
🤠
howdy

r1ddl3m37h15

🤠
howdy
View GitHub Profile
@chrismdp
chrismdp / s3.sh
Last active March 5, 2024 12:57
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@szepeviktor
szepeviktor / semver_sort.sh
Created April 25, 2015 19:57
Sort files based on semver
#!/bin/bash
# filename.<SEMVER>.zip
NAME="filename."
# https://github.com/cloudflare/semver_bash/
. ./semver.sh
declare -a VERSIONS