Skip to content

Instantly share code, notes, and snippets.

View figassis's full-sized avatar

Assis Ngolo figassis

View GitHub Profile
@figassis
figassis / stripe-keys-and-ids.tsv
Created April 28, 2022 10:36 — forked from fnky/stripe-keys-and-ids.tsv
Stripe keys and IDs
Prefix Description Notes
ac_ Platform Client ID Identifier for an auth code/client id.
acct_ Account ID Identifier for an Account object.
ba_ Bank Account ID Identifier for a Bank Account object.
card_ Card ID Identifier for a Card object.
cbtxn_ Customer Balance Transaction ID Identifier for a Customer Balance Transaction object.
ch_ Charge ID Identifier for a Charge object.
cn_ Credit Note ID Identifier for a Credit Note object.
cs_live_ Live Checkout Session ID Identifier for a checkout Session object in live mode.
cs_test_ Test Checkout Session ID Identifier for a checkout Session object in test mode.

Keybase proof

I hereby claim:

  • I am figassis on github.
  • I am assis (https://keybase.io/assis) on keybase.
  • I have a public key ASD7lGyGan-zOz8NFC0566YEQ6FenyIyDfOjt9g20UBaMAo

To claim this, I am signing this object:

[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@figassis
figassis / s3Sync.sh
Created November 12, 2020 20:27 — forked from kellyrmilligan/s3Sync.sh
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
@figassis
figassis / White label Route 53 nameservers.md
Last active August 18, 2020 20:47 — forked from blofeldthefish/White label Route 53 nameservers.md
AWS Route 53 white label nameserver setup
@figassis
figassis / proto3.md
Last active March 30, 2022 16:59 — forked from shankarshastri/LearnXInYMinProtocolBuffer.proto
Protocol Buffer CheatSheet

Proto3 Cheat Sheet

Information From: https://developers.google.com/protocol-buffers/docs/proto3

A few rules

  • Declaring Message In Protocol Buffer:

  • As you can see, each field in the message definition has a unique number.

  • Field numbers identify fields in message binary format. Should not be changed once message is in use

@figassis
figassis / goinstall.sh
Last active May 13, 2020 17:40 — forked from jpillora/install-go.sh
Install latest version of Go in Linux
#!/bin/bash
mkdir -p $HOME/go
curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer
. ~/.bash_profile
echo "Go is installed and your GOPATH is '$HOME/go'"
echo "Please reload this shell or enter the command '. ~/.bash_profile'"
@figassis
figassis / slice-batch-in-parallel.go
Created February 3, 2020 17:01 — forked from VojtechVitek/slice-batch-in-parallel.go
Golang - Loop over slice in batches (run something in parallel on a sub-slice)
package main
import "fmt"
func main() {
slice := make([]int, 159)
// Split the slice into batches of 20 items.
batch := 20
@figassis
figassis / countries.en.txt
Created January 11, 2020 11:59
some lists
Afghanistan
Akrotiri
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
@figassis
figassis / README.md
Last active April 6, 2024 15:53
Deploy AWS Storage Gateway on VirtualBox

Update Ubuntu

sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove

Install Required Linux Headers

sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms ufw apt-transport-https ca-certificates curl software-properties-common

Add VirtualBox Repository and key