Skip to content

Instantly share code, notes, and snippets.

View lolubyte's full-sized avatar

Daniel Aboyewa lolubyte

View GitHub Profile
@lolubyte
lolubyte / hosts
Created December 31, 2022 21:11 — forked from MinaroShikuchi/hosts
Ansible playbook for automated deployment with docker compose
[environment:children]
prod
[prod]
<ip> ansible_user=<user> ansible_ssh_private_key_file=~/.ssh/id_ansible
@lolubyte
lolubyte / main.tf
Created October 8, 2022 03:17 — forked from bradgignac/main.tf
Terraform Example
/* Providers */
provider "aws" {
region = "us-west-2"
}
/* Variables */
variable "name" {
default = "XXXXX"
@lolubyte
lolubyte / gist:8543ca22e6170809670ee9d8d9fe84f4
Created May 5, 2021 01:06 — forked from benwalton/gist:1777718
Clean up emails in the queue. usage ./postfix-delete.pl email@example.com
#!/usr/bin/perl
$REGEXP = shift || die "no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!";
@data = qx</usr/sbin/postqueue -p>;
for (@data) {
if (/^(\w+)(\*|\!)?\s/) {
$queue_id = $1;
}
if($queue_id) {
@lolubyte
lolubyte / security.json
Created October 31, 2018 01:19 — forked from mixja/security.json
AWS IAM Policy for MFA
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowAllUsersToListAccounts",
"Effect": "Allow",
"Action": [
"iam:ListAccountAliases",
"iam:GetAccountPasswordPolicy",
"iam:ListUsers",