Skip to content

Instantly share code, notes, and snippets.

View murrekatt's full-sized avatar

Tommy Back murrekatt

View GitHub Profile
@murrekatt
murrekatt / gist:37bbd76c2b64221afd85956ff4db8026
Created September 4, 2016 15:52
Example Amazon S3 upload script with public write bucket
#!/bin/bash
file=$1
aws_path="/"
bucket='elblox-media'
date=$(date +"%a, %d %b %Y %T %z")
acl="x-amz-acl:public-read"
content_type='application/x-compressed-tar'
string="PUT\n\n$content_type\n$date\n$acl\n/$bucket$aws_path$file"

Keybase proof

I hereby claim:

  • I am murrekatt on github.
  • I am murrekatt (https://keybase.io/murrekatt) on keybase.
  • I have a public key ASCangL2Z8LVwbR_KKUPDDp_fYY-9tpVLUvh_i56lnry4go

To claim this, I am signing this object:

@murrekatt
murrekatt / gist:e18f338f7fbd3827c476
Created September 29, 2014 10:05
Server Contract default creation input
## What are useful defaults?
### Server Id string
OTLog::Output(0, "Enter the ServerID for your server contract: ");
strServerID = OT_CLI_ReadLine();
### Nym id of server contract signer
OTLog::Output(0, "Enter the Server User ID (the NymID of the Nym who "
"signed the server contract): ");
strNymID = OT_CLI_ReadLine();
@murrekatt
murrekatt / mtgox.css
Created May 6, 2013 16:17
Simple example to test MtGox Streaming API in the browser.
div#status {
padding-bottom: 1em;
}
div#log {
word-wrap: break-word;
padding-bottom: 1em;
}
.notice {