Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am alessio on github.
  • I am alessio (https://keybase.io/alessio) on keybase.
  • I have a public key whose fingerprint is 0416 0004 A827 6E40 BB98 90FB E8A4 8AE5 311D 765A

To claim this, I am signing this object:

GNU nano 2.2.6 File: .buildpacks
https://github.com/virtualstaticvoid/heroku-buildpack-r#cedar-14
https://github.com/heroku/heroku-buildpack-python
@alessio
alessio / go
Created December 11, 2016 11:13 — forked from mem/go
go wrapper to automatically set GOPATH
#!/bin/sh
get_inode() {
stat -c '%i' "$1"
}
find_go() {
self=`get_inode $(readlink -m "$1")`
local IFS=:
{"type":"cosmos-sdk/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"testing"},"commission":{"rate":"0.100000000000000000","max_rate":"0.200000000000000000","max_change_rate":"0.010000000000000000"},"min_self_delegation":"1","delegator_address":"cosmos1d8lxcf9ef4y4qfrtg4l2668yvu82z74k43ntqq","validator_address":"cosmosvaloper139ge8zja3cdeqyj9ln4w7864ns2qd32mzqvxks","pubkey":"cosmosvalconspub1zcjduepqphuekucs22f5sc48f2truzu5ckvghtj9y4uq2g7gw0funw8gcw8svgzdmt","value":{"denom":"stake","amount":"100000000"}}}],"fee":{"amount":[],"gas":"200000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AyD7bZGcZUCvrK3W3kkKouJgBVJlzLaqyK4B8wbjfnRd"},"signature":"RcqEAbVWkzQjU3vVwkIZPzWpCkR8w9h0tMyTa4TivYMXagiC2TpVnY7b4+acLKT9JKLK5SOaU/BIu3vH3cSsOg=="}],"memo":"[email protected]:26656"}}
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Subject: Cosmos Mainnet Security Advisory Lavender
Dear partners,
All In Bits Inc. (dba Tendermint Inc.), All In Bits GmbH, Informal Systems Inc., and
Interchain GmbH have been working closely together on the release of patches that
address security vulnerabilities affecting Tendermint's several release series.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Subject: Lavender update released
Dear partners,
The patches that resolve the issues comprising Advisory Lavender have been released
in versions 0.32.10 and 0.33.3 of Tendermint, in version 0.37.9 and 0.38.3 of the
Cosmos SDK, and in version 2.0.8 of Gaia. Additionally, All In Bits Inc. provided a

0x24abe08c1e0f1ac3fd4a38ef7e0a9877c12457e1af2724b41984c797fe8bca30

@alessio
alessio / macapp.go
Created September 26, 2023 22:58 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// Package main is a sample macOS-app-bundling program to demonstrate how to
// automate the process described in this tutorial:
//
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5
//
// Bundling the .app is the first thing it does, and creating the DMG is the
// second. Making the DMG is optional, and is only done if you provide
// the template DMG file, which you have to create beforehand.
//
// Example use:
# shared memory limits (chrome needs a ton)
kern.shminfo.shmall=6291456
kern.shminfo.shmmax=2147483647
kern.shminfo.shmmni=2048
# semaphores
kern.shminfo.shmseg=2048
kern.seminfo.semmns=4096
kern.seminfo.semmni=1024
@alessio
alessio / Homebrew in a multi-user environment.md
Created January 13, 2024 22:13 — forked from claui/Homebrew in a multi-user environment.md
Using Homebrew on macOS in a multi-user environment

I’ve had success using Homebrew in a multi-user environment the following way:

Create a shared Homebrew user

Create a new (non-GUI) user, group and home directory:

sudo /usr/sbin/sysadminctl -addUser brew \
  -fullName 'Homebrew' -admin -home /var/brew \
  -password - -UID 430 \