Skip to content

Instantly share code, notes, and snippets.

@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
@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 / delete_iam_user.sh
Last active Nov 18, 2020
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
View listcontainers.go
package main
import (
"context"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
)
You can’t perform that action at this time.