Skip to content

Instantly share code, notes, and snippets.

View sanguis's full-sized avatar
👁️‍🗨️
DevOpsing all the things

Josh Beauregard sanguis

👁️‍🗨️
DevOpsing all the things
View GitHub Profile
@sanguis
sanguis / PronounMatrixEnglush.md
Created May 2, 2022 11:35
Pronouns A personal reference (english)

| Level | Netural | Male | Femail | example $p | | Informal | They | He | She | $p want a boat | | Posisive | Their | His | Hers | $p boat is awesome | | Groups | all | guys | ladies | Hey $p | | Formal | Y'all | Sir | Madam | Hello good $p | | Titles | Mx | Mr | Ms | Hello $p Williams, your marital status dos not matter in your title |

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.start-minikube</string>
<key>ProgramArguments</key>
<array>
<string>/bin/zsh</string>
<string>-l</string>
@sanguis
sanguis / .profile
Created April 8, 2011 20:23
my mac bash profile file great for MAMP and git work.
complete -o default -o nospace -W "$(/usr/bin/env ruby -ne 'puts $_.split(/[,\s]+/)[1..-1].reject{|host| host.match(/\*|\?/)} if $_.match(/^\s*Host\s+/);' < $HOME/.ssh/config)" scp sftp ssh
export PATH=$PATH:/Applications/MAMP/Library/bin
export PATH=$PATH:/Applications/sshfs/bin
export PATH=$PATH:/home/josh/bin
export CLICOLOR=cons25
##
# Your previous /Users/joshbeauregard/.profile file was backed up as /Users/joshbeauregard/.profile.macports-saved_2011-01-26_at_16:11:54
##
@sanguis
sanguis / .gitconfig
Last active June 2, 2017 14:41
my .gitconfig file minus my name and email
[color]
ui = on
[core]
whitespace= fix,-indent-with-non-tab,-indent-with-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[alias]
df = !git diff --no-prefix && git diff --staged --no-prefix
clear = reset --hard
st = status
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
@sanguis
sanguis / mobbing.md
Last active April 19, 2017 14:19
Mob Programming Guildlines

Mob Programming Basics

Goals

  • Get the task at hand done
  • Create knowledge redundancy
  • Bring skillets together to create stronger tools
  • Learn the tools used in the session
#IAM function
LambdaExecRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
-
Effect: Allow
Principal:
@sanguis
sanguis / checkcontroler.rb
Created February 10, 2017 15:11
ruby mixin loop
ruby_block "checkcontroler" do
block do
pass_codes = [200, 302, 000]
Chef::Mixin::Shellout.send(:include Mixin::Shellout::ShellOut)
retcode = "curl --insecure --silent --output /dev/null --write-out '%{http_code}' https://#{node.private_ip}"
until pass.include?(retcode.std_out) do
execute 'cfn-signal'
# TODO: get info on this
command "/opt/aws/bin/cfn-signal --success true ' - Ref: WaitHandle02"
end
skipping: [host.com] => (item=https://github.com/foobar/example-theme.git) => {"changed": false, "item": "https://github.com/foobar/example-theme.git", "ski
p_reason": "Conditional check failed", "skipped": true}
TASK [debugging for each row.] *************************************************
ok: [localhost] => {
"msg": " this is the data for row 2"
}
TASK [debug each rows data] ****************************************************
ok: [localhost] => {
"row.1.values().0.2.effectiveValue.stringValue": "VARIABLE IS NOT DEFINED!"
}
@sanguis
sanguis / playboo.yml
Created July 26, 2016 15:39
ansible when syntax
vars:
web_user: web_user
dirs:
cache: /opt/ansible/cache
web_root: /srv/www/
repo: redacted
#set password to "random" to have password auto_generated
mysql:
user: fop_user
db: fop_db