Skip to content

Instantly share code, notes, and snippets.

View spacecat's full-sized avatar
😺

spacecat

😺
View GitHub Profile
Check the Nginx Configuration
kubectl get pods -n <namespace-of-ingress-controller>
kubectl exec -it -n <namespace-of-ingress-controller> nginx-ingress-controller-67956bf89d-fv58j cat /etc/nginx/nginx.conf
@spacecat
spacecat / Chocolatey
Created February 28, 2018 11:36
Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install googlechrome
@spacecat
spacecat / gist:b71918d49fbd520d18647b0ec3513525
Last active August 20, 2018 15:18
Create a new Ubuntu VM in Azure with desktop and connect using RDP
http://c-nergy.be/blog/?p=10993
1. Create new Ubuntu Server 16.04 LTS in Azure
2. Open RDP in NSG
3. SSH to VM
4. sudo apt-get update
5. sudo apt-get install ubuntu-desktop
6. wget "http://www.c-nergy.be/downloads/install-xrdp-1.9.1.zip"
7. sudo apt-get install unzip
8. unzip install-xrdp-1.9.1.zip
@spacecat
spacecat / gist:c2fbd40eec8e338c88de125dccb97af4
Last active February 13, 2018 19:53
Git, Linux (Ubuntu) and Docker commands
Git commands
git init
git clone
git push
git pull
git commit -m "Message"
Linux (Ubuntu) commands
ls
pwd