Skip to content

Instantly share code, notes, and snippets.

View yakhyadabo's full-sized avatar
🏠
Working from home

Yαkηyα Δαβο yakhyadabo

🏠
Working from home
View GitHub Profile
@yakhyadabo
yakhyadabo / example-vault-admin-policy.hcl
Created May 23, 2020 22:18 — forked from kawsark/example-vault-admin-policy.hcl
An example Vault admin policy with capability to manage leses
# Allow managing leases
path "sys/leases/*"
{
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
}
# Manage auth methods broadly across Vault
path "auth/*"
{
capabilities = ["create", "read", "update", "delete", "list", "sudo"]
### Keybase proof
I hereby claim:
* I am yakhyadabo on github.
* I am yakhyadabo (https://keybase.io/yakhyadabo) on keybase.
* I have a public key whose fingerprint is 6168 B981 1BA2 8207 218C DF63 F482 3C33 C9D8 41C0
To claim this, I am signing this object:

The first step is to install some dependencies for Ruby.

$ sudo apt-get update
$ sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev

The installation for rvm is pretty simple:

$ sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev

Check VirtualBox version

vboxmanage -v

Cleand old version

sudo apt-get purge "^virtualbox-.*"
sudo apt-get update
@yakhyadabo
yakhyadabo / install_vagrant.adoc
Last active November 12, 2016 13:00
Intsalling Vagrant on Ubuntu 14.04

Install Virtualbox:

$ sudo apt-get install virtualbox

Downloand and Install Vagrant 1.8.5:

$ wget https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb -O /tmp/vagrant_1.8.5_x86_64.deb
@yakhyadabo
yakhyadabo / tmux-cheatsheet.markdown
Created August 16, 2016 14:04 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@yakhyadabo
yakhyadabo / tmux_install.adoc
Last active August 17, 2016 11:04
Install tmux 2.0 on Ubuntu 14.04
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=2.0-1~ppa1~t
@yakhyadabo
yakhyadabo / check_docker_container.sh
Last active August 29, 2015 14:25 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# The script checks if a container is running.
# OK - running