View mssql-cli-ubuntu-22.04
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
####################################################################################################### | |
# | |
# How to install the mssql-cli on Ubuntu 22.04 running python 3.10 | |
# | |
# This is pretty hacky so please only do this on dev/test servers | |
# | |
# The first few steps here will also get the mssql-cli working on Ubuntu 20.04 (running python 3.8) | |
# | |
####################################################################################################### |
View index.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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<title>Test Presentation</title> | |
<link rel="stylesheet" href="dist/reset.css"> | |
<link rel="stylesheet" href="dist/reveal.css"> |
View vimrc
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
"vim generic settings | |
set number | |
set nocompatible | |
set backspace=indent,eol,start | |
set nowrap | |
set nobackup | |
set noswapfile | |
set noundofile | |
View main.go
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" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"strconv" | |
"syscall" |
View azure-sql-edge-persistent.yaml
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sqledge-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: sqledge | |
template: |
View azure-sql-edge-pvc.yaml
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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: sqlsystem-pvc | |
spec: | |
volumeName: sqlsystem-pv | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: |
View azure-sql-edge-pv.yaml
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
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: sqlsystem-pv | |
spec: | |
capacity: | |
storage: 1024Mi | |
accessModes: | |
- ReadWriteOnce | |
nfs: |
View azure-sql-edge.yaml
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sqledge-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: sqledge | |
template: |
View testnginxingress.yaml
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
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: ingress-testwebsite | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
spec: | |
rules: | |
- host: www.testwebaddress.com | |
http: |
View DecodeHelmSecrets.sh
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 | |
# get helm secrets from Kubernetes cluster | |
SECRET=$(kubectl get secret $1 -o jsonpath='{ .data.release }' ) | |
# decode the secrets | |
DECODED_SECRET=$(echo $SECRET | base64 -d | base64 -d | gunzip -c ) | |
# parse the decoded secrets, pulling out the templates and removing whitespace | |
DATA=$(echo $DECODED_SECRET | jq '.chart.templates[]' | tr -d '[:space:]' ) |
NewerOlder