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 / Alertmanager CLI options
Created January 5, 2020 23:02
Alertmanager command-line interface (CLI) options
$ ./alertmanager -h [14/1934]
usage: alertmanager [<flags>]
Flags:
-h, --help Show context-sensitive help (also try --help-long and --help-man).
--config.file="alertmanager.yml"
Alertmanager configuration file name.
@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"
@O1ahmad
O1ahmad / kitchen.aws.yml
Created February 18, 2020 22:02
Example test-kitchen kitchen.yml for AWS driver
---
driver:
name: ec2
aws_ssh_key_id: ops_admin
region: us-east-1
availability_zone: a
subnet_id: subnet-782b311f
instance_type: t2.micro
security_group_ids: ["sg-11278f3a"]
retryable_tries: 10
@O1ahmad
O1ahmad / kitchen.gcp.yml
Last active February 18, 2020 22:03
Example test-kitchen kitchen.yml for GCP driver
---
driver:
name: gce
project: "basix-testing"
zone: us-east1-c
inst_name: test-kitchen
machine_type: f1-micro
preemptible: true
email: zer0ne.io.x@gmail.com
tags:
@O1ahmad
O1ahmad / kitchen.azure.yml
Created February 18, 2020 22:04
Example test-kitchen kitchen.yml for AzureRM driver
---
driver:
name: azurerm
driver_config:
subscription_id: ca19242d-4d8d-46dc-943a-e7d3ff7c6135
location: East US
machine_size: Standard_B1ms
transport:
@O1ahmad
O1ahmad / ewbf-zcash-miner CLI (--help)
Created February 21, 2020 00:47
EWBF Zcash miner CLI usage
--help, -h Show short help.
--server Stratum server only hostname or ip address.
--port Stratum server port.
--user Stratum user.
--pass Stratum password.
--cuda_devices Space-separated list of cuda devices. Without this option all devices are used.
--solver Disable benchmark and use specified solver. Allowed values from 0 to 3.
Started from version 0.3.0b this option allow you to set the solver for each card separately at this manner: --solver 0 0 0 0
For example if you have 4 cuda devices and you do not use option --cuda_devices
then --solver 0 1 2 3 will be applied to devices 0 1 2 3 accordingly.
@O1ahmad
O1ahmad / ewbf-zcash-miner.cfg (example)
Created February 21, 2020 00:48
EWBF Zcash miner config example
# Common parameters
# All the parameters here are similar to the command line arguments
[common]
cuda_devices 0 1 2 3 4 5
intensity 64 64 64 64 64 64
templimit 80
pec 0
boff 0
eexit 0
@O1ahmad
O1ahmad / elasticsearch CLI options
Last active March 16, 2020 23:25
Elasticsearch Command-Line Interface Options
$ /opt/elasticsearch/bin/elasticsearch --help
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Starts Elasticsearch
Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-V, --version Prints Elasticsearch version information and exits
-d, --daemonize Starts Elasticsearch in the background
-h, --help Show help