Skip to content

Instantly share code, notes, and snippets.

View martezr's full-sized avatar

Martez Reed martezr

View GitHub Profile
@martezr
martezr / centos7golanginstaller.sh
Last active October 23, 2019 00:11
centos7golanginstaller.sh
#!/bin/bash
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xvzf go1.13.3.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/gopath.sh
cat << EOF >> ~/.bash_profile
export GOBIN="$HOME/projects/bin"
export GOPATH="$HOME/projects/src"
EOF
mkdir -p ~/projects/{bin,pkg,src}
source /etc/profile && source ~/.bash_profile
@martezr
martezr / vault.service
Created July 19, 2018 18:06
HashiCorp Vault SystemD
[Unit]
Description=secrets management server
Documentation=https://vaultproject.io/docs/
After=network.target
ConditionFileNotEmpty=/opt/vault/config/vault-config.hcl
[Service]
User=vault
Group=vault
ExecStart=/usr/local/bin/vault server -config=/opt/vault/config/vault-config.hcl
@martezr
martezr / centos7ks.cfg
Last active October 11, 2019 23:10
CentOS 7 Kickstart File
#version=RHEL7
# Action
install
cdrom
lang en_US.UTF-8
keyboard us
text
firewall --service=ssh
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
## Martez Reed ##
################################
## Define variables
@martezr
martezr / Guacamole_096_Ubuntu_Installer
Last active October 21, 2015 01:29
Guacamole 0.9.6 Ubuntu Installer
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
######## Martez Reed ###########
################################
## Define variables
@martezr
martezr / Guacamole_095_Ubuntu_Installer
Last active February 26, 2016 16:38
Guacamole 0.9.5 Ubuntu Installer
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
######## Martez Reed ###########
################################
## Define variables
@martezr
martezr / Guacamole_Installer
Last active March 23, 2017 03:30
Guacamole HTML5 Gateway Installation Script
#!/bin/bash
#Guacamole 0.9.0 Installation Script
#Versioning Variables
guacamoleclientdownload = "http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.0.war"
guacamoleserverdownload = "http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.0.tar.gz"
guacamoleservertar = "guacamole-server-0.9.0.tar.gz"
guacamoleserversource = "guacamole-server-0.9.0"
guacamoleclientwar = "guacamole-0.9.0.war"