Skip to content

Instantly share code, notes, and snippets.

View bdwyertech's full-sized avatar

Brian Dwyer bdwyertech

View GitHub Profile
@lucabusin
lucabusin / rd-clean.sh
Last active February 5, 2021 22:07
Shell script to purge Rundeck execution history (extended from @unicolet's script https://gist.github.com/unicolet/af648a97163ce6b44645)
#!/bin/sh
# keep last few executions for each job
KEEP=100
# db connection params
HOST=YOURDBHOST
PORT=YOURDBPORT
USERNAME=YOURDBUSERNAME
PASSWORD=YOURDBPASSWORD
@silkimen
silkimen / Outlook_disable_Autodiscover.scpt
Created May 5, 2017 09:30
Disable background autodiscover of Mac Outlook
# This is a Apple Script; use AppleScript Editor to run this
# It will disable autodiscover feature of Mac Outlook for your account
# Adjust the variables "accountName" and "serverUrl" according to your needs
set accountName to "NameOfYourAccount"
set serverUrl to "https://your.domain.org/your/subpath/Exchange.asmx"
tell application "Microsoft Outlook"
set server of every other users folder account of exchange account accountName to serverUrl
set background autodiscover of every other users folder account of exchange account accountName to false
@darkn3rd
darkn3rd / serverspechelpers.md
Last active September 9, 2021 16:13
ServerSpec Spec Helpers

ServerSpec Notes

These are snippets of auto-generated from ServerSpec. The serverspec-init only auto-generates base functionality with cmd, exec, ssh, and winrm backends with some optional vagrant support for dyanmic inventory on ssh backend.

There are additional backends available from SpecInfra, but these are not supported and only documented in O'Reilly book for Serverspec: The Definitive Guide by Gosuke Miyashita (ISBN978-4-87311-709-6), which is in Japanese only:

Spec Helper

@TimJDFletcher
TimJDFletcher / packer-permissions.json
Last active December 9, 2019 21:23 — forked from ogrodnek/packer-permissions.json
packer IAM permissions
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "NonResourceBasedReadOnlyPermissions",
"Action": [
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSnapshots",
"ec2:DescribeImages",
@d3noob
d3noob / .block
Last active November 23, 2024 20:25
Collapsible tree diagram in v7
license: mit