Skip to content

Instantly share code, notes, and snippets.

View donatello's full-sized avatar

Aditya Manthramurthy donatello

  • Bay Area, California
  • 13:38 (UTC -07:00)
View GitHub Profile
@donatello
donatello / GPG-File-Encryption.md
Created April 12, 2019 22:14
GPG based AES256 file encryption example

Encrypting a file /tmp/out

gpg --output /tmp/out.enc --symmetric --cipher-algo AES256 /tmp/out

The above will prompt for a password.

Decrypting a file /tmp/out.enc

@donatello
donatello / config.md
Created September 7, 2018 14:53 — forked from 0XDE57/config.md
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable.

I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@donatello
donatello / run-dist-https.sh
Last active January 18, 2021 23:14
Run Minio on localhost (4 node distributed on ports 9001-9004)
#!/bin/bash
uuid1="export1"
uuid2="export2"
uuid3="export3"
uuid4="export4"
DATA_DIR=/tmp
MINIO=$HOME/Code/minio/go/minio/minio
@donatello
donatello / git-ghrw
Last active October 12, 2017 13:37
A git script to pull branches of github users to a local clone - for reviewing and testing Github PRs locally
#!/bin/bash
USER=$1
BRANCH=$2
function show_help {
cat <<HEREDOC
Summary:

Admin API Version 1 Specification (WIP)

This document contains the REST API specification for version 1 of the Administration API provided by the Minio server.

Common Conventions

  • All response bodies when present are JSON encoded (regardless of
import sys
import time
_PARALLEL_UPLOADERS = 3
#: Python 2.x?
# _is_py2 = (sys.version_info[0] == 2)
#: Python 3.x?
_is_py3 = (sys.version_info[0] == 3)
@donatello
donatello / git-ghrw
Created July 19, 2017 12:22
Github review puller git tool
#!/bin/bash
USER=$1
BRANCH=$2
function show_help {
echo <<EOF
Summary:
@donatello
donatello / minio-go.diff
Created July 3, 2017 22:53
Check server-side copying of client-side encrypted objects
diff --git a/api_functional_v2_test.go b/api_functional_v2_test.go
index cc35d44..22435a5 100644
--- a/api_functional_v2_test.go
+++ b/api_functional_v2_test.go
@@ -19,6 +19,7 @@ package minio
import (
"bytes"
"errors"
+ "fmt"
"io"
@donatello
donatello / gcp-minio-manifest-fs.yml
Created June 28, 2017 15:18
CF Manifests examples for Minio
name: minio
director_uuid: d43a09bc-1291-497d-a04d-1b66d883a9b8
releases:
- {name: minio, version: latest}
stemcells:
- alias: bosh-google-kvm-ubuntu-trusty-go_agent
os: ubuntu-trusty
version: latest
instance_groups:
@donatello
donatello / Proposal_mc_find.md
Last active July 5, 2017 18:44
Adding pattern matching to `mc`

Proposal for mc find command

mc find PATH [ACTION [print|exec ARGS...]]
  • PATH is either a file-path or a remote storage alias-path like myminio/mybucket
  • ACTION is a pattern matching expression and should be one of the following: