Skip to content

Instantly share code, notes, and snippets.

View devonartis's full-sized avatar
🎯
Focusing

T. Devon Artis devonartis

🎯
Focusing
View GitHub Profile
@devonartis
devonartis / metadata.json
Created May 17, 2021 23:19
Escrow with collateral
{"valueParameterDescriptions":[["Collateral amount","The amount of Lovelace to be deposited by both parties at the start of the contract to serve as an incentive for collaboration."],["Price","The amount of Lovelace to be paid by the *Buyer* as part of the exchange."]],"slotParameterDescriptions":[["Collateral deposit by seller timeout","The deadline by which the *Seller* must deposit the *Collateral amount* in the contract."],["Deposit of collateral by buyer timeout","The deadline by which the *Buyer* must deposit the *Collateral amount* in the contract."],["Deposit of price by buyer timeout","The deadline by which the *Buyer* must deposit the *Price* in the contract."],["Dispute by buyer timeout","The deadline by which, if the *Buyer* has not opened a dispute, the *Seller* will be paid."],["Seller's response timeout","The deadline by which, if the *Seller* has not responded to the dispute, the *Buyer* will be refunded."]],"roleDescriptions":[["Buyer","The party that pays for the item on sale."],["Seller","T
@devonartis
devonartis / Jenkinsfile
Created March 31, 2018 23:36
Set up a build pipeline with Jenkins and Amazon ECS
node {
def app
def commit_id
environment
{
ECRURL = 'http://xxxxx.dkr.ecr.us-east-1.amazonaws.com/node'
}
@devonartis
devonartis / sampleParams.go
Created March 11, 2018 22:18
Example of using Paramaters with GoFormation
package main
import (
"fmt"
"github.com/awslabs/goformation/cloudformation"
)
@devonartis
devonartis / main.go
Created October 4, 2017 00:16
Create EC2 Keys with Golang
package main
import (
"flag"
"fmt"
"io/ioutil"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
@devonartis
devonartis / Dockerfile
Last active May 22, 2017 00:45
Oracle Java Dockerfile
FROM ubuntu:trusty
MAINTAINER Devon Artis<devon@devonartis.com>
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" >> /etc/apt/sources.list
RUN apt-get update && apt-get -y install software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update && apt-get -y upgrade
# automatically accept oracle license
Verifying that "devonartis.id" is my Blockstack ID. https://onename.com/devonartis