Skip to content

Instantly share code, notes, and snippets.

View bdwyertech's full-sized avatar
☁️

Brian Dwyer bdwyertech

☁️
View GitHub Profile
@bdwyertech
bdwyertech / knife cheat
Created November 16, 2015 21:08 — forked from ipedrazas/knife cheat
Hello!
# knife cheat
## Search Examples
knife search "name:ip*"
knife search "platform:ubuntu*"
knife search "platform:*" -a macaddress
knife search "platform:ubuntu*" -a uptime
knife search "platform:ubuntu*" -a virtualization.system
knife search "platform:ubuntu*" -a network.default_gateway
@bdwyertech
bdwyertech / jenkins-notification-curl.groovy
Created May 20, 2016 05:14 — forked from ahonor/jenkins-notification-curl.groovy
example rundeck notification plugin that triggers a jenkins job via a curl command
import com.dtolabs.rundeck.plugins.notification.NotificationPlugin;
import groovy.text.SimpleTemplateEngine
/**
* This plugin executes a curl command with some arguments as defined
* by the user in the GUI. It wraps an invocation like shown below
*
* curl --user <your_jenkins_username>:<your_jenkins_API_key> http://<jenkins_job_url>
*
*/
@bdwyertech
bdwyertech / xtrabackup_runner.sh
Created December 20, 2017 02:58 — forked from piotr-gbyliczek/xtrabackup_runner.sh
A fancier mysql backup script for Xtrabackup:
#!/bin/bash
# Script to create full and incremental backups (for all databases on server) using innobackupex from Percona.
# http://www.percona.com/doc/percona-xtrabackup/innobackupex/innobackupex_script.html
#
# (C)2017 Piotr Gbyliczek (p.gbyliczek at node4.co.uk)
# - changed to use build in compression mechanism
# - corrected restore process (restore from mixed compressed and uncompressed incrementals is supported as well)
# - tidied up script a bit and added new checks
# - removed unneeded xbstream usage (useful only for network transfers, not compatible with incremental backups)
@bdwyertech
bdwyertech / kubectl.md
Created March 2, 2018 18:42 — forked from so0k/kubectl.md
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