Skip to content

Instantly share code, notes, and snippets.

@ahnooie
ahnooie / hosts
Created June 3, 2019 17:42
VMware VMotion Datastore Storage Migration with Ansible Example
[vmware_guests]
vm1
vm2
vm3
vm4
@ahnooie
ahnooie / proxmox-ssl.yml
Created January 20, 2019 05:07
Ansible Playbook to update Proxmox SSL Certs from dehydrated Let's Encrypt
# installs and updates proxmox SSL certs from a local directory on ansible and restarts pveproxy
# ansible-playbook proxmox-ssl.yml
- hosts: proxmox
become: yes
tasks:
- name: Copy SSL certificate to proxmox
copy:
dest: /etc/pve/local/pveproxy-ssl.pem
src: "/etc/dehydrated/certs/{{ item }}/fullchain.pem"
@ahnooie
ahnooie / listwpusers.py
Created September 9, 2018 20:56
Lists users from all wordpress databases on a MySQL/MariaDB database
#!/usr/bin/python3
#
# Lists users from all wordpress databases on a MySQL/MariaDB database
#
# Copyright (c) 2018 Benjamin Bryan
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ahnooie
ahnooie / hook-dns-01-lets-encrypt-route53.py
Last active February 8, 2018 03:34 — forked from grzr/hook-dns-01-lets-encrypt-route53.py
Python 3 script to use as a hook for the letsencrypt.sh client
#!/usr/bin/env python3
# How to use:
#
# LE_HOSTED_ZONE=XXXXXX LE_AWS_PROFILE=dns-access ./letsencrypt.sh --cron --domain example.org --challenge dns-01 --hook /tmp/hook-dns-01-lets-encrypt-route53.py
#
# More info about letsencrypt.sh: https://github.com/lukas2511/letsencrypt.sh/wiki/Examples-for-DNS-01-hooks
# Using AWS Profiles: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-multiple-profiles
# Obtaining your Hosted Zone ID from Route 53: http://docs.aws.amazon.com/cli/latest/reference/route53/list-hosted-zones-by-name.html
@ahnooie
ahnooie / route53.py
Created January 31, 2018 05:57 — forked from rmarchei/route53.py
route53 hook for dehydrated - python2 / python3 + boto2 version. Tested on Ubuntu 16.04
#!/usr/bin/env python
# How to use:
#
# Ubuntu 16.04: apt install -y python-boto OR apt install -y python3-boto
#
# Specify the default profile on aws/boto profile files or use the optional AWS_PROFILE env var:
# AWS_PROFILE=example ./dehydrated -c -d example.com -t dns-01 -k /etc/dehydrated/hooks/route53.py
#
# Manually specify hosted zone:
@ahnooie
ahnooie / _ssrs_print_example.dml
Last active December 30, 2016 23:29
DML SSRS Print Example
FORM SETUP /ROW=3 /COL=2 /HEIGHT=20 /WIDTH=70 /TITLE="Example SSRS Print"
BEGIN_BLOCK Documentation
! =====================================================
! Example SSRS Print
! =====================================================
END_BLOCK
BEGIN_BLOCK Modifications
!
@ahnooie
ahnooie / Bash commands 1
Last active December 22, 2016 21:27
Mule 3.x configuration as a Ubuntu service
$ sudo vim /etc/init.d/mule
@ahnooie
ahnooie / wrapper.conf
Last active December 21, 2016 23:32 — forked from rhoegg/wrapper.conf
setting MULE_ENV system property in wrapper.conf
wrapper.java.additional.4=-Dmule.env=staging
@ahnooie
ahnooie / affirmation
Created November 9, 2016 00:48
MuleSoft Contributor Agreement Acceptance by Benjamin Bryan
I, Benjamin Bryan, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Tue Nov 08 2016 16:48:37 GMT-0800 (Pacific Standard Time)