Skip to content

Instantly share code, notes, and snippets.

View aelsabbahy's full-sized avatar

Ahmed Elsabbahy aelsabbahy

View GitHub Profile
@aelsabbahy
aelsabbahy / example.md
Last active May 15, 2020 20:42
matrix table

matrix

Legend

  • x - full supported/tested
  • w - full working/tested, community support
  • w-nt - works no automated tests
  • n/a - Not applicable for this platform
  • #585 - Link to bug(s) for implementation, fixing
  • - (blank) - not yet tried, no data
@aelsabbahy
aelsabbahy / explain
Last active October 17, 2017 15:24
Simple script to explain what a command does using https://explainshell.com/
#!/usr/bin/env ruby
require 'open-uri'
require 'nokogiri'
require 'erb'
if ARGV.size < 1
puts "Usage: explain <COMMAND> [OPTIONS]"
exit 1
@aelsabbahy
aelsabbahy / iamlookup
Last active October 22, 2019 01:57
Simple script to lookup IAM resource conditions
#!/bin/bash
set -e
REPO_DIR=~/.iam_lookup/complete-aws-iam-reference
REPO_URL=https://github.com/widdix/complete-aws-iam-reference
if [[ $1 == "update" ]];then
if [[ -e $REPO_DIR ]];then
(cd "$REPO_DIR" && git pull)
else
@aelsabbahy
aelsabbahy / goss_generate_bench.sh
Last active March 16, 2019 15:53
Goss Benchmarks
#!/usr/bin/env bash
set -e
rm -f goss.json
# Add 100 files from etc
for x in `find /etc | head -100`;do goss add file "$x";done > /dev/null
# Add all users in /etc/passwd