Skip to content

Instantly share code, notes, and snippets.

View Sher-Chowdhury's full-sized avatar

Sher Chowdhury Sher-Chowdhury

View GitHub Profile
{
"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": {
@Sher-Chowdhury
Sher-Chowdhury / slice.go
Created September 5, 2019 14:41
gsg - slice
package main
import (
"fmt"
)
func main() {
var theSlice = []string{"uk", "usa", "canada"}
@Sher-Chowdhury
Sher-Chowdhury / gist:ab6c4bfe19ad165a0a304f01cc1c8759
Last active February 6, 2019 20:21
push all branches to a new empty github/bitbucket repo
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
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
#!/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'
@Sher-Chowdhury
Sher-Chowdhury / general-list-of-rpms.sh
Last active May 4, 2018 08:29
this is a list of general rpms that should be installed on all boxes
#!/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
#----------------------------------------------------------------------------
# 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
#----------------------------------------------------------------------------
{
#--------------------------------------------------------------------------
#!/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'