This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MusicDir = /home/pi/music | |
| ALSADevice = default | |
| ALSAMixer1 = Headphone | |
| #ALSAMixer2 = Master | |
| ALSAStutterDefeat = no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /etc/systemd/system/gpio-watch.service | |
| [Unit] | |
| Description=gpio-watch is a tool for running scripts in response to GPIO events. | |
| [Service] | |
| User=root | |
| WorkingDirectory=/root | |
| ExecStart=/usr/bin/gpio-watch 6:rising | |
| Restart=always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://jan5.fc2web.com/model/mr_color.html | |
| [cols, ...rows] = $$('table[border="1"] tr').map(tr => Array.from(tr.childNodes).filter(cn => cn.nodeName === 'TD').map(td => td.getAttribute('bgcolor') || td.innerText)) | |
| '| ' + cols.join(' | ') + ' |\n| ---- | ---- | ---- | ---- | ---- | ---- |\n| ' + rows.map(row => row.join(' | ').replace(/\n/g, '<br>')).join(' |\n| ').replace(/#([A-F0-9]{6})/g, '') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://docs.docker.com/engine/install/ubuntu/ | |
| apt-get update -y | |
| apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test code for the question: https://stackoverflow.com/q/65525116/8016720 | |
| # Provides configuration details for the Azure Terraform provider | |
| provider "azurerm" { | |
| # !!! Must include features even if empty | |
| features {} | |
| } | |
| variable "appName" { default = "testAppName" } | |
| variable "subscriptionId" { default = "" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ________ ________ ___ __ ___ | |
| |\_____ \|\ __ \|\ \|\ \ |\ \ | |
| \|___/ /\ \ \|\ \ \ \/ /|\ \ \ | |
| / / /\ \ __ \ \ ___ \ \ \ | |
| / /_/__\ \ \ \ \ \ \\ \ \ \ \ | |
| |\________\ \__\ \__\ \__\\ \__\ \__\ | |
| \|_______|\|__|\|__|\|__| \|__|\|__| | |
| ignore Azure, GCP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Most pre-req tooling, etc. is installed using jumphosts.yml playbook | |
| variables: | |
| ADMIN_EMAIL: mrlesmithjr@gmail.com | |
| CLOUD_PROVIDER: Azure # Define Supported Cloud Provider (Azure) | |
| GIT_CRYPT_ENABLED: "true" # Must be lowercase (true|false) | |
| GIT_SUBMODULE_STRATEGY: recursive | |
| ORGANIZATION: example_org | |
| PROJECT_NAME: example_project | |
| TERRAFORM_VERSION: 0.12.28 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import sys | |
| import re | |
| terraform_plan_command_str = ''.join(sys.argv[1:]) | |
| # terraform_plan_command_str = "" | |
| plan_splits = terraform_plan_command_str.rpartition("false") | |
| plan_first_split = plan_splits[0] + plan_splits[1] | |
| plan_second_split = plan_splits[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # see http://information-technology.web.cern.ch/book/cern-cloud-infrastructure-user-guide/advanced-topics/installing-openstack#icehouse | |
| set -x | |
| echo "set term=xterm" >> .vimrc | |
| yum install -y etckeeper | |
| etckeeper init | |
| etckeeper commit | |
| yum install -y http://rdo.fedorapeople.org/rdo-release.rpm | |
| sed -i -e 's/priority.*/priority=1/g' /etc/yum.repos.d/rdo-release.repo | |
| sed --in-place '/^exclude=libmongodb/d;s/^priority=/exclude=libmongodb,pymongo\*,mongodb\*,python-bson,python-webob,python-mako,python-webtest\npriority=/g' /etc/yum.repos.d/slc6-os.repo /etc/yum.repos.d/slc6-updates.repo /etc/yum.repos.d/slc6-extras.repo |