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 / geth-cli-options
Last active June 4, 2019 02:52
Geth (Go Ethereum) - Example CLI Options | `geth --help`
COMMANDS:
account Manage accounts
attach Start an interactive JavaScript environment (connect to node)
bug opens a window to report a bug on the geth repo
console Start an interactive JavaScript environment
copydb Create a local chain from a target chaindata folder
dump Dump a specific block from storage
dumpconfig Show configuration values
export Export blockchain into file
export-preimages Export the preimage database into an RLP stream
@O1ahmad
O1ahmad / libinput-gestures.config
Created November 16, 2019 15:45
Example libinput gestures config
# Configuration file for libinput-gestures.
# Mark Blakeney, Sep 2015
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
@O1ahmad
O1ahmad / .vimrc
Last active November 26, 2019 18:52
My initial development .vimrc configuration for reference
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" Turn on syntax highlighting
syntax on
" set the runtime path to include Vundle and initialize
@O1ahmad
O1ahmad / CENTOS7 elasticsearch.service
Last active December 8, 2019 15:58
default rhel-centos7 elasticsearch.service unit
[Unit]
Description=Elasticsearch
Documentation=http://www.elastic.co
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
RuntimeDirectory=elasticsearch
PrivateTmp=true
@O1ahmad
O1ahmad / config.toml
Created December 16, 2019 00:44
Lotus default configuration file
# Default config:
#[API]
# ListenAddress = "/ip4/127.0.0.1/tcp/1234/http"
# Timeout = "30s"
#
#[Libp2p]
# ListenAddresses = ["/ip4/0.0.0.0/tcp/0", "/ip6/::/tcp/0"]
#
#[Metrics]
# Nickname = ""
@O1ahmad
O1ahmad / CLI options
Created December 26, 2019 19:20
lotus-storage-miner CLI options
$ lotus-storage-miner run -h
NAME:
lotus-storage-miner run - Start a lotus storage miner process
USAGE:
lotus-storage-miner run [command options] [arguments...]
OPTIONS:
--api value (default: "2345")
--enable-gpu-proving enable use of GPU for mining operations (default: true)
@O1ahmad
O1ahmad / lotus CLI options
Created December 26, 2019 19:22
lotus command-line interface(CLI) options
$ lotus daemon -h
NAME:
lotus daemon - Start a lotus daemon process
USAGE:
lotus daemon [command options] [arguments...]
OPTIONS:
--api value (default: "1234")
--genesis value genesis file to use for first node run
@O1ahmad
O1ahmad / Kibana CLI options
Created January 15, 2020 00:21
Kibana CLI (command-line interfacae) options
$ kibana --help
Usage: bin/kibana [command=serve] [options]
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch.
Commands:
serve [options] Run the kibana server
help <command> Get the help for a specific command
@O1ahmad
O1ahmad / Grafana CLI options
Created January 18, 2020 04:50
Grafana Command-line Interface (CLI) Options
$./grafana-server -h
Usage of grafana-server:
-config string
path to config file
-convey-json
When true, emits results in JSON blocks. Default: 'false'
-convey-silent
When true, all output from GoConvey is suppressed.
-convey-story
When true, emits story output, otherwise emits dot output. When not provided, this flag mirrors the value of the '-test.v' flag
@O1ahmad
O1ahmad / My current .bashrc
Created January 27, 2020 22:46
~/.bashrc - adjust PS1 & add a few aliases
$ cat ~/.bashrc
export PATH="$PATH:$HOME/.rvm/bin"
export PROMPT_COMMAND='export H1="`history 1|sed -e "s/^[\ 0-9]*//; s/[\d0\d31\d34\d39\d96\d127]*//g; s/\(.\{1,50\}\).*$/\1/g"`";history -a;echo -e "sgr0\ncnorm\nrmso"|tput -S'
export PS1='\n\e[1;30m[\j:\!\e[1;30m]\e[0;36m \T \d \e[1;30m[\e[1;34m\u@\H\e[1;30m:\e[0;37m`tty 2>/dev/null` \e[0;32m+${SHLVL}\e[1;30m] \e[1;37m\w\e[0;37m\[\033]0;[ ${H1}... ] \w - \u@\H +$SHLVL @`tty 2>/dev/null` - [ `uptime` ]\007\]\n\[\]\$ '
alias v="vim"
alias ..="cd .."
alias dci="docker info"
alias kl="kitchen list"