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 | |
LOGFILE=/tmp/backup-gitlab-to-s3.log | |
GITLAB_BACKUP_FOLDER=/var/opt/gitlab/backups | |
S3_FILE_PREFIX=gitlab | |
S3_BUCKET_PATH=bucket-name-goes-here/folder-here | |
SLACK_USERNAME="Backup Gitlab Daily - `hostname`" | |
SLACK_CHANNEL="#od-infra-monitoring" | |
SLACK_ICON="https://s3.amazonaws.com/kudelabs-archives/harddrive256.png" |
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
# import config. | |
# You can change the default config with `make cnf="config_special.env" build` | |
cnf ?= config.env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
# import deploy config | |
# You can change the default deploy config with `make cnf="deploy_special.env" release` | |
dpl ?= deploy.env | |
include $(dpl) |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: admin-user | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: admin-user |
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
variable "aws_default_region" { | |
default = "eu-west-1" | |
} | |
variable "administrator_default_arn" { | |
default = "arn:aws:iam::aws:policy/AdministratorAccess" | |
} | |
variable "developer_default_arn" { | |
default = "arn:aws:iam::aws:policy/PowerUserAccess" |
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
tubectl @tst ++ -n splunk-connect logs splu%% -f |
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/sh | |
# Useful script for setting up my mac | |
### Some useful links ### | |
# Mac Setup (https://sourabhbajaj.com/mac-setup) | |
# Install Python 3 (https://docs.python-guide.org/starting/install3/osx) | |
# Cloud Foundry tools (https://github.com/cloudfoundry/homebrew-tap) | |
# Other Useful CLI tools (https://stevenloria.com/python-clis) | |
# zsh Magic (https://rick.cogley.info/post/use-homebrew-zsh-instead-of-the-osx-default) | |
# https://medium.com/@caulfieldOwen/youre-missing-out-on-a-better-mac-terminal-experience-d73647abf6d7 |
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
#Launch the following at a cmd prompt to install Chocolatey - https://chocolatey.org/ | |
###Launch cmd prompt as admin and run the following to set the proxy (inside Intel) and install Chocolatey#### | |
setx http_proxy http://proxy-chain.intel.com:911 /M | |
setx https_proxy http://proxy-chain.intel.com:911 /M | |
####Write-Host "Installing Chocolatey"###### |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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 | |
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb | |
dpkg -i puppetlabs-release-pc1-trusty.deb | |
apt-get update | |
apt-get -q -y install puppet-agent \ | |
&& echo "[main]" > /etc/puppetlabs/puppet/puppet.conf \ | |
&& echo "server=puppet.adtsys.com.br" >>/etc/puppetlabs/puppet/puppet.conf \ | |
&& echo "environment=adtsys_createcloudinfra" >>/etc/puppetlabs/puppet/puppet.conf \ | |
&& echo "certname=srv-app-aws.adtsys.com.br-$(date +%s)" >>/etc/puppetlabs/puppet/puppet.conf |
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 | |
# Run the following from the parent directory | |
# https://stackoverflow.com/questions/3497123/run-git-pull-over-all-subdirectories | |
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \; |