This file contains 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 | |
yum install -y wget | |
yum install -y epel-release | |
yum install -y jq | |
yum install -y vim | |
cd /root | |
wget -O - https://downloads.puppetlabs.com/puppetlabs-gpg-signing-key.pub | gpg --import | |
curl -L -o pe-latest.tgz 'https://pm.puppetlabs.com/cgi-bin/download.cgi?dist=el&rel=7&arch=x86_64&ver=latest' |
This file contains 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
#---------------------------------------------------------------------------- | |
# Puppet Enterprise installer configuration file | |
# https://docs.puppet.com/pe/latest/install_pe_conf_param.html | |
# | |
# Format: Hocon | |
# https://docs.puppet.com/pe/latest/config_hocon.html | |
#---------------------------------------------------------------------------- | |
{ | |
#-------------------------------------------------------------------------- |
This file contains 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/env bash | |
set -ex | |
yum install -y bind-utils # contains the dig command for doing dns lookups. | |
yum install -y epel-release | |
yum install -y vim | |
yum install -y facter | |
yum install -y bash-completion | |
yum install -y man-pages | |
yum install -y tree |
This file contains 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/env bash | |
# exit 0 | |
set -ex | |
echo '##########################################################################' | |
echo '##### About to run install-gnome-gui.sh script ##################' | |
echo '##########################################################################' | |
# https://codingbee.net/tutorials/vagrant/vagrant-enabling-a-centos-vms-gui-mode | |
yum groupinstall -y 'gnome desktop' |
This file contains 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://www.reddit.com/r/golang/comments/6zyhb0/caddy_business_use_now_requires_a_commercial/ | |
# hence this is no longer allowed | |
# curl https://getcaddy.com | bash -s personal tls.dns.route53 | |
# https://www.digitalocean.com/community/tutorials/how-to-host-a-website-with-caddy-on-centos-7 |
This file contains 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
git remote set-url origin [email protected]:xxxx/xxxx.git | |
for branch in $(git branch -r | grep -v HEAD | cut -d'/' -f2) ; do git checkout $branch ; git push --set-upstream origin $branch ; done |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var theSlice = []string{"uk", "usa", "canada"} |
This file contains 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
{ | |
"workbench.editor.enablePreview": false, | |
"go.formatTool": "goimports", | |
"go.testFlags": ["-v"], | |
"go.useLanguageServer": true, | |
"go.coverOnSingleTest": true, | |
"go.coverOnTestPackage": true, | |
"go.coverOnSingleTestFile": true, | |
"explorer.confirmDragAndDrop": false, | |
"vs-kubernetes": { |