Skip to content

Instantly share code, notes, and snippets.

Hernan Garcia hernandanielg

Block or report user

Report or block hernandanielg

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
View listcontainers.go
package main
import (
"context"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
)
@hernandanielg
hernandanielg / delete_iam_user.sh
Last active Feb 20, 2019
Bash script to delete IAM users using AWS cli tool
View delete_iam_user.sh
#!/bin/bash
user=$1
echo "User: $user"
user_policies=$(aws iam list-user-policies --user-name $user --query 'PolicyNames[*]' --output text)
echo "Deleting user policies: $user_policies"
for policy in $user_policies ;
do
@hernandanielg
hernandanielg / INSTALL.md
Last active Oct 3, 2018
Install OpenSSL & Freeradius from sources on Linux CentOS 7 x86_64
View INSTALL.md

Install OpenSSL & Freeradius from sources on Linux CentOS 7 x86_64

Steps to compile OpenSSL from sources

:~# curl -O http://openssl.org/source/openssl-<version>.tar.gz
:~# tar xvf openssl-<version>.tar.gz
:~# cd openssl-<version>
:~# yum install perl gcc make zlib-devel -y
:~# ./config --prefix=/usr/local --openssldir=/usr/local/openssl shared zlib-dynamic
:~# make && make install
@hernandanielg
hernandanielg / opendnssec-enum.md
Last active Feb 1, 2016
DNSSEC for ENUM zone
View opendnssec-enum.md

DNSSEC for ENUM zone

This is a basic installation/configuration "how-to" to provide DNSSEC using OpenDNSSEC and BIND. ENUM is involved since it uses NAPTR records.

Install dependencies/packages
apt-get update && apt-get upgrade
apt-get install softhsm opendnssec opendnssec-enforcer opendnssec-enforcer-sqlite3
You can’t perform that action at this time.