Skip to content

Instantly share code, notes, and snippets.

View O1ahmad's full-sized avatar
🌎
Working from home

Ahmad O1ahmad

🌎
Working from home
View GitHub Profile
@O1ahmad
O1ahmad / .bashrc
Created October 18, 2021 20:53
basic bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
{
"key": "f145e924b7484d03c0530b4e",
"addrs": []
}
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
###############################################################################
### Client Configuration ###
###############################################################################
# The network chain ID
chain-id = ""
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
# NOTE: Any path below can be absolute (e.g. "/var/myawesomeapp/data") or
# relative to the home directory (e.g. "data"). The home directory is
# "$HOME/.tendermint" by default, but could be changed via $TMHOME env variable
# or --home cmd flag.
#######################################################################
### Main Base Config Options ###
# This is a TOML config file.
# For more information, see https://github.com/toml-lang/toml
###############################################################################
### Base Configuration ###
###############################################################################
# The minimum gas prices a validator is willing to accept for processing a
# transaction. A transaction's fees must meet the minimum of any denomination
# specified in this config (e.g. 0.25token1;0.0001token2).
@O1ahmad
O1ahmad / Kubespray Ops
Last active July 22, 2021 04:01
Kubernetes Cluster Setup Notes
1. Create kubespray image based on master repo
** NOTE: add iproute2 to dockerfile build
docker build -t kubespray:fix --network host . (from root of kubespray repo @ master)
2. Update Kubernetes inventory under <kubespray-root>/inventory/<cluster>/<hosts-file>
3. Execute containerized kubespray against host inventory with proper SSH key
docker run --network host --rm -it --mount type=bind,source="$(pwd)"/inventory/<inventory>,dst=/inventory \
--mount type=bind,source="${HOME}"/.ssh/id_rsa,dst=/root/.ssh/id_rsa \
<fixed-kubespray-image> ansible-playbook -i /inventory/<host-file> --private-key /root/.ssh/id_rsa cluster.yml --become --user <ssh-user>
@O1ahmad
O1ahmad / akash.service
Created June 25, 2021 11:49
Custom Akash Systemd service file
[Unit]
Description=Cosmos Akash Node
After=network.target
[Service]
Type=simple
User=ahmad
WorkingDirectory=/home/ahmad
Environment=AKASH_MONIKER=morph-01
Environment=AKASH_CHAIN_ID=akash-testnet-6

Keybase proof

I hereby claim:

  • I am 0x0i on github.
  • I am basix01 (https://keybase.io/basix01) on keybase.
  • I have a public key ASBcwHKkIYYtn6Cm0bvqWlONvS2h0hQzLwq8yk5A0q2Hpwo

To claim this, I am signing this object:

terraform {
required_version = ">= 0.12.0"
backend "s3" {
key = "terraform-autonet.tfstate"
encrypt = true
region = "us-west-2"
bucket = "o1labs-terraform-state"
acl = "bucket-owner-full-control"
}
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

module.ci_testnet.module.kubernetes_testnet.data.google_client_config.current: Refreshing state...
module.ci_testnet.data.aws_route53_zone.selected: Refreshing state...
------------------------------------------------------------------------
An execution plan has been generated and is shown below.