Skip to content

Instantly share code, notes, and snippets.

View pilasguru's full-sized avatar

Rodolfo Pilas pilasguru

View GitHub Profile
@pilasguru
pilasguru / test simple
Last active April 8, 2022 13:31
test for access gist
first second third fourth
#!/bin/sh
##############################################################################
# application name: dnsactual
# other files: dnsactual.conf (keeps the last updated ip)
# dnsactual.log (register date & time of the actualization)
# Modified by: Rodolfo Pilas <rodolfo@pilas.guru>
# Original Author: Ernest Danton - Date: 01/29/2007
##############################################################################
#################
@pilasguru
pilasguru / delete_iam_user.sh
Created August 25, 2018 19:19 — forked from kgmoore431/delete_iam_user.sh
Delete an IAM user with AWS CLI
#!/bin/bash
user_name="$1"
echo "Removing user: ${user_name}"
echo "Deleting Access Keys:"
keys=("$(aws iam list-access-keys --user-name "${user_name}" | jq -r '.AccessKeyMetadata[] | .AccessKeyId')")
if [[ "${#keys}" -gt "0" ]]; then
# shellcheck disable=SC2068

Keybase proof

I hereby claim:

  • I am pilasguru on github.
  • I am pilasguru (https://keybase.io/pilasguru) on keybase.
  • I have a public key whose fingerprint is FCE6 6FC5 849D A0F6 E30D D1FC A33C 4E64 23B5 BE7B

To claim this, I am signing this object:

check host mailserver.localdomain with address 192.168.0.25
if failed host mailserver.localdomain port 25
expect "^220.*\r\n"
send "EHLO monitor.localdomain\r\n"
expect "^250.*\r\n"
send "QUIT\r\n"
expect "^221.*\r\n"
then alert
alert alertas@gmail.com