Skip to content

Instantly share code, notes, and snippets.

View bdwyertech's full-sized avatar
☁️

Brian Dwyer bdwyertech

☁️
View GitHub Profile
@d3noob
d3noob / .block
Last active July 11, 2024 15:51
Collapsible tree diagram in v7
license: mit
@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",
@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

@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
@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
@kwilczynski
kwilczynski / gist:90ffc7c393a77bd6c7a0bc9ca7bef610
Created February 8, 2017 18:29
Install growpart on CentOS 6.8 to support growing partition on boot in EC2.
#!/bin/bash
set -e
set -u
set -o pipefail
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
yum install -y \
cloud-init cloud-utils-growpart \
@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@colinmollenhour
colinmollenhour / innodb-snapshot.sh
Last active July 20, 2022 11:26
Innobackupex/XtraBackup Helper
#!/bin/bash
# ###################################
# Innodb Snapshot Helper
# ###################################
# Wrapper around innobackupex to either:
# - Take incremental snapshots that are immediately applied to the base snapshot
# - Apply a series of incremental snapshots to a base snapshot
# - Stream an incremental snapshot
#
set -e
@lg
lg / uap-ac-lite-openwrt.txt
Last active October 22, 2023 12:16
making the ubnt wifi awesome (uap ac lite) w/ openwrt
making the ubnt wifi awesome (uap ac lite) w/ lede (openwrt)
the reasons you would do this:
- you get 802.11r
- you get better roaming
- you get access to some new 5ghz channels
I AM NOT TO BE HELD RESPONSIBLE FOR ANYTHING IN HERE. DO AT YOUR OWN RISK. THANK YOU AND HAVE A LOVELY DAY.
** note that though we're using Lede, it's essentially openwrt minus the drama