brew install postgres
brew install PostGIS
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
nginx | |
``` | |
sudo apt-get install nginx | |
``` | |
After over a day of going through their documentation, reading GitHub issues, going through the SDK unit tests and shudder the second page of google results, here's how:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout id_rsa -out myCert.pem
(id_rsa is your private key, myCert.pem is your CSR)
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
# Sort disk usage asc | |
du -k -m -h -c / | sort -h | |
# listen for udp packets on a port | |
sudo tcpdump -i lo udp port 514 | |
# make all .sh files in a directory executable | |
find ./ -name "*.sh" -exec chmod +x {} \; | |
# rsync through ssh tunnel |
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": "vlabs", | |
"properties": { | |
"orchestratorProfile": { | |
"orchestratorType": "Kubernetes", | |
"orchestratorVersion": "1.6.6" | |
}, | |
"masterProfile": { | |
"count": 3, | |
"dnsPrefix": "k8s-southcentralus-mgmt", |
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
kind: StorageClass | |
apiVersion: storage.k8s.io/v1 | |
metadata: | |
name: fast | |
provisioner: kubernetes.io/azure-disk | |
parameters: | |
skuName: Premium_LRS | |
location: southcentralus | |
--- |
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
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: jenkins-master-claim | |
namespace: ci | |
annotations: | |
volume.beta.kubernetes.io/storage-class: fast | |
spec: | |
accessModes: | |
- ReadWriteOnce |
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: jenkins-master | |
namespace: ci | |
spec: | |
template: | |
metadata: | |
labels: | |
name: jenkins-master |
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: Service | |
metadata: | |
name: jenkins-master-service | |
namespace: ci | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
name: http |
OlderNewer