Skip to content

Instantly share code, notes, and snippets.

View natbusa's full-sized avatar

Nat Busa natbusa

View GitHub Profile
@natbusa
natbusa / install-bats-libs.sh
Last active March 18, 2021 17:13 — forked from pimterry/install-bats-libs.sh
Set up bats libraries for testing as git submodules in test/libs
mkdir -p tests/libs
cd tests/libs
git submodule add git@github.com:bats-core/bats-core bats
git submodule add git@github.com:bats-core/bats-support bats-support
git submodule add git@github.com:bats-core/bats-assert bats-assert
# try the following three steps
git submodule update --init --recursive
@natbusa
natbusa / bucket-policies-primer.md
Created March 29, 2019 06:28 — forked from harshavardhana/bucket-policies-primer.md
Explanation of bucket polices by example

Bucket Policy

Bucket policy is an access policy available for you to grant anonymous permissions to your Minio resources. Bucket policy uses JSON-based access policy language.

This section presents a few examples of typical use cases for bucket policies. To test these policies, you need to replace these strings with your bucket name. For more information please read Amazon S3 access policy language

Granting Read-Only Permission to an Anonymous User

The following example policy grants the s3:GetObject permission to any public anonymous users. This permission allows anyone to read the object data under testbucket, which is useful for when you have publicly readable assets. A typical example is website assets stored in testbucket.

@natbusa
natbusa / imagenet1000_clsid_to_human.txt
Created May 23, 2017 19:20 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class id to human readable labels
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@natbusa
natbusa / docker-cheat-sheat.md
Created March 29, 2017 08:34 — forked from dwilkie/docker-cheat-sheat.md
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.