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>
#IAM function
LambdaExecRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
-
Effect: Allow
Principal:
@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
@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
@sanguis
sanguis / reuslts.txt
Created June 30, 2016 18:43
I am doing somthing silly with syntax but what?
TASK [debug] *******************************************************************
ok: [localhost] => {
"omeka_cache": [
{
"app": "/opt/omeka/apps"
},
{
"plugins": "/opt/omeka/plugins"
},
{
@sanguis
sanguis / dict.yml
Created June 29, 2016 15:24
need to access the value set on line 2 from line 6
omeka_instances: # All attributes listed
- omeka.dev: # <--- need to access this on line 6
url: omeka.dev
version: "{{ omeka_default_version }}"
location: "http://omeka.org/files/omeka-{{ self.value.version }}.zip" #gitrepo or or URL of omeka core app
directory: "/srv/www/{{ self.key.value }}"
instance_owner: "{{ omeka_default_instance_user }}"
db_host: "{{ omeka_default_database_host }}"
db_name: "{{ self.url }}"
db_user: "{{ self.url }}"