Skip to content

Instantly share code, notes, and snippets.

Igor Gentil igorlg

Block or report user

Report or block igorlg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
igorlg /
Created Sep 9, 2019
Generate Install script for your Atom Plugins

Breaking down the script

apm list -p -e --no-dev -i -j \

List (apm list) packages (-p) that are enabled (-e), excluding dev packages (--no-dev), that are installed (-i) in JSON format (-j)

  | jq -cM '.user[] | { name: .name, url: .homepage, desc: .description}' \
igorlg /
Last active May 30, 2019
YADM Hooks

YADM Hooks

My personal YADM hooks, used to automate and/or improve some functionalities from YADM. For details on YADM hooks, check the documentation here.


This hook performs two actions after running the command yadm encrypt:

  1. Calculate the SHA256 checksum of all files listed under .yadm/encrypt; backup sum file to .yadm/encrypted.sha256sum.old; store these values in .yadm/encrypted.sha256sum;
igorlg /
Created May 30, 2019
Improved Python version display for PyEnv

List available PyEnv versions

Usage: /Users/igor/Applications/bin/pyver [options] [filter]

Filters: -M: Display only the latest Major versions (default) -m: Display only the latest Minor versions -p: Display all versions -i: Display installed versions


igorlg / htop2_htoprc
Created Mar 29, 2019
My htoprc files
View htop2_htoprc
# Beware! This file is rewritten by htop when settings are changed in the interface.
# The parser is also very primitive, and not human-friendly.
fields=0 48 17 18 38 39 40 2 46 47 49 1
igorlg / Makefile
Created Feb 11, 2019
Makefile for Packer builds - IN PROGRESS
View Makefile
inspec_version = 3.6.4
packer_version = 1.3.4
packer_inspec_version = 0.2.1
terraform_version = 0.11.11
uname_s = $(shell uname -s)
uname_m = $(shell uname -m)
cmd_unzip = @unzip -u -q
cmd_wget = @wget -q -O
cmd_rm = @rm -f
igorlg /
Created Nov 2, 2018
CloudWatch Dasboard for EC2/EBS

Creates a basic CloudWatch Dashboard for an EC2 instance and it's EBS volumes.

usage: [-h] [--dashboard_name DASHBOARD_NAME]
                           [--skip_devices [SKIP_DEVICES [SKIP_DEVICES ...]]]
                           [--volume_group VOLUME_GROUP]
                           [--aws_profile AWS_PROFILE] [--dump]

Generate a CloudWatch Dashboard for an EC2 Instance
igorlg /
Last active Jul 31, 2017
List AWS AZs and Regions

Required Gems

  • aws-sdk
  • terminal-table

Install: gem install aws-sdk terminal-table


Run ruby awsazs-update.rb to generate the JSON file.

Run ruby awsazs.rb to see the output:

igorlg / Gemfile
Created Jul 28, 2017
Small ruby script to print the Profiles from ~/.aws/config
View Gemfile
source ''
gem 'colorize'
gem 'inifile'
igorlg /
Created Jun 27, 2017
Show number of each weekday in a year
from datetime import datetime, timedelta
from tabulate import tabulate
from calendar import day_name
import sys
def wd(d):
return list(day_name)[d]
def sorted_week():
return sorted([(j+1)%7 for j in range(7)], key=lambda n: (n+1)%7)
You can’t perform that action at this time.