Skip to content

Instantly share code, notes, and snippets.

@jacqinthebox
jacqinthebox / shortcuts.md
Last active December 22, 2019 17:43
[Keyboard Shortcuts]Keyboard Shortcuts #markdown #vim #vscode
@jacqinthebox
jacqinthebox / vimrc
Last active August 24, 2018 05:44
New vimrc (optimized for note taking)
set laststatus=2
set number
set wrap
set linebreak
set expandtab
set shiftwidth=2
set softtabstop=2
set clipboard=unnamedplus
execute pathogen#infect()
filetype plugin indent on
@jacqinthebox
jacqinthebox / jenkins-agent.sh
Created February 1, 2019 14:05
Create Jenkins agent
apt-get update && apt-get -y upgrade
# useradd jenkins
add-apt-repository universe && sudo apt install openjdk-8-jre-headless -y
# https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-current
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get install apt-transport-https -y
apt-get update && apt-get install dotnet-sdk-2.1 -y
@jacqinthebox
jacqinthebox / providers
Created February 27, 2019 10:14
Azure Microsoft Resource Providers
Microsoft.AAD
Microsoft.ADHybridHealthService
Microsoft.Advisor
Microsoft.AlertsManagement
Microsoft.AnalysisServices
Microsoft.ApiManagement
Microsoft.Authorization
Microsoft.Automation
Microsoft.AzureActiveDirectory
Microsoft.Compute

Notes on how to install Kubernetes on Centos 7

setenforce 0
sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux

yum -y install net-tools 
modprobe br_netfilter
echo '1' > /proc/sys/net/bridge/bridge-nf-call-iptables
yum install vim
@jacqinthebox
jacqinthebox / test1.sh
Last active March 4, 2019 20:51
just a silly test script
#!/bin/bash
echo "$PREFIX-data-rg"
PROBING="Server=tcp:$DB_SERVERNAME.database.windows.net,1433;Persist Security Info=False;User ID=$DB_ADMIN_LOGIN;Password=$DB_PASSWORD;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
PROVISION="Server=tcp:$DB_SERVERNAME.database.windows.net,1433;Database=TenantProvision;Persist Security Info=False;User ID=$DB_ADMIN_LOGIN;Password=$DB_PASSWORD;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
TENANT="Server=tcp:$DB_SERVERNAME.database.windows.net,1433;Database={0};Persist Security Info=False;User ID=$DB_ADMIN_LOGIN;Password=$DB_PASSWORD;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
CONFIGURATION_TENANT="Server=tcp:$DB_SERVERNAME.database.windows.net,1433;Database={0};Persist Security Info=False;User ID=$DB_ADMIN_LOGIN;Password=$DB_PASSWORD;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=
@jacqinthebox
jacqinthebox / install.sh
Last active March 6, 2019 15:09
Prepare Kube
#! /bin/sh
if [ ! -f /tmp/installed ]; then
echo "\nturning off swap\n"
swapoff -a
cp /etc/fstab ~/fstab.old
sed -i '2 d' /etc/fstab
echo "\ninstalling docker\n"
@jacqinthebox
jacqinthebox / cloudSettings
Last active July 20, 2019 13:08
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-07-03T09:41:03.038Z","extensionVersion":"v3.3.1"}
@jacqinthebox
jacqinthebox / install-docker.sh
Created July 20, 2019 12:18
Install Docker on Ubuntu 18.04
# Update the apt package list.
sudo apt-get update -y
# Install Docker's package dependencies.
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
@jacqinthebox
jacqinthebox / versions.json
Created July 25, 2019 12:17
versions.json
{
"pcawidgettemplate": "1.3.2",
"pcasearchch": "1.3.1",
"pcaattendantweb": "1.3.97",
"pcaprovisionservice": "1.3.8",
"pcamailservice": "1.3.7",
"pcastatisticsservice": "1.3.5",
"pcadockerwamprouter": "1.3.3",
"pcabroadsoftservice": "1.3.35",
"pcaomnidirservice": "1.3.9",