Skip to content

Instantly share code, notes, and snippets.

@liberodark
liberodark / s3.sh
Last active May 25, 2018 08:32 — forked from chrismdp/s3.sh
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
@liberodark
liberodark / widevine-flash_arm64.sh
Created May 11, 2020 09:17 — forked from teacupx/widevine-flash_arm64.sh
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
check_curl_wget(){
if command -v wget >/dev/null 2>&1; then
DL="wget -O-"
DL_SL="wget -qO-"
elif command -v curl >/dev/null 2>&1; then
DL="curl -L"
DL_SL="curl -s"