Skip to content

Instantly share code, notes, and snippets.

View bdwyertech's full-sized avatar

Brian Dwyer bdwyertech

View GitHub Profile
@bdwyertech
bdwyertech / gist:454393a863f836fa132c
Created January 7, 2016 06:22
hombrew-cask busted permissions
dev-mac:Homebrew root# ls -lah
total 286584
drwxrwxr-x 18 vagrant admin 612B Jan 6 22:00 .
drwxrwxrwt 7 root admin 238B Jan 6 21:57 ..
drwxr-xr-x 2 root admin 68B Jan 6 22:00 Casks
drwxr-xr-x 7 vagrant admin 238B Jan 6 21:59 Formula
@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 / keybase.md
Created December 9, 2016 00:05
Keybase

Keybase proof

I hereby claim:

  • I am bdwyertech on github.
  • I am bdwyertech (https://keybase.io/bdwyertech) on keybase.
  • I have a public key ASC8xhYgQXl6GbVcVJhldf5KxLA-68FhioA-jP46Bz5wKwo

To claim this, I am signing this object:

@bdwyertech
bdwyertech / Reset_Slack.ps1
Created April 20, 2017 18:39
Reset Slack Windows App -- Typically resolves crashing issues
# Reset_Slack.ps1
# Brian Dwyer - Intelligent Digital Services
# Fixes Slack startup crashing issues on Windows
Stop-Process -Name slack -Force -EA SilentlyContinue
Remove-Item -Path (Resolve-Path "$env:APPDATA\Slack\*") -Recurse -Force -EA SilentlyContinue -Verbose
@bdwyertech
bdwyertech / vmware_fusion_reset_networking.sh
Last active December 8, 2021 10:24
VMWare Fusion - Reset Networking
#!/bin/bash
# Reset VMware Fusion Networking
# Clear out the Configuration
sudo rm -f /Library/Preferences/VMware\ Fusion/networking*
sudo rm -f /Library/Preferences/VMware\ Fusion/*location*
sudo rm -rf /Library/Preferences/VMware\ Fusion/vmnet*
sudo rm -rf /var/db/vmware/vmnet-dhcpd-vmnet*
# Reconfigure Networking
@bdwyertech
bdwyertech / docker_completion.md
Created December 12, 2017 22:38
Docker - Bash Completion

On OS X with Docker for Mac installed

for prog in 'docker' 'docker-machine' 'docker-compose'; do
  ln -sf /Applications/Docker.app/Contents/Resources/etc/${prog}.bash-completion /usr/local/etc/bash_completion.d/${prog}
done

On a *nix Box

@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 / api_client.md
Last active January 5, 2018 01:51
API Clients

Ruby

require 'net/http'

http = Net::HTTP.new('localhost', 8080)

#An example of how to create a new entry

http.post('/rest/MyData/MyKey', DATA HERE', {"Content-Type" => "text/plain"})
@bdwyertech
bdwyertech / Set-GIT_SSH_COMMAND.ps1
Last active January 20, 2018 18:49
Windows - OpenSSH & GIT
# Filename: Set-GIT_SSH_COMMAND.ps1
# Brian Dwyer - 1/20/18
# GIT_SSH_COMMAND = '"C:\Program Files\OpenSSH-Win64\ssh.exe"'
# ***USAGE***
# To Setup the GIT_SSH_COMMAND Variable
# ./Set-GIT_SSH_COMMAND.ps1 set
# To Remove the GIT_SSH_COMMAND Variable
@bdwyertech
bdwyertech / git-crypt-sourcetree.sh
Created February 28, 2018 05:02
Add git-crypt to Sourcetree's PATH
#!/bin/bash
# Add git-crypt to SourceTree's Path
# If you use Sourcetree's embedded GIT, you may have to symlink things into its PATH to make them work.
# git-crypt
ln -s /usr/local/bin/git-crypt /Applications/SourceTree.app/Contents/Resources/bin/