- Create a profile (
~/.unison/bidirsync.prf):
# Unison preferences
label = bi-directonal sync with server
root = /home/<user>/git
root = ssh://<user>@<server-name>//home/<user>/sync/git
sshargs = -oIdentityFile=/home/<user>/.ssh/<privkey-name>
| apt-get update && apt-get upgrade | |
| apt-get install openssh-server | |
| # dyndns | |
| apt-get install ddclient | |
| # do/re-do the settings: dpkg-reconfigure ddclient | |
| # 2FA | |
| sudo apt-get install libpam-google-authenticator | |
| # and follow http://askubuntu.com/questions/609117/how-to-setup-two-factor-authentication-in-ubuntu-for-ubuntu-users-using-google-a |
| sudo apt-get update && sudo apt-get upgrade | |
| # we want to use nodejs 6 | |
| curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - | |
| sudo apt-get install -y nodejs | |
| sudo apt-get install -y git nodejs-legacy npm | |
| npm config set unsafe-perm true | |
| sudo npm install -g @angular/cli # note: the angular-cli crashes at creating projects with "ng new" so you will have to manually run "npm install" after the project has been created | |
| #add docker client (to be run against e.g. Docker for windows) | |
| sudo apt-get install -y docker.io |
| # Extensions to install | |
| AutoImport | |
| PowerShell | |
| # Bash as terminal | |
| File -> Preferences -> Settings | |
| and add | |
| ``` | |
| { | |
| "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe" |
Dockerfile in VSCode and enjoylint_dockerfile:
| hostname: k8s-rancher-vm | |
| rancher: | |
| network: | |
| interfaces: | |
| eth0: | |
| dhcp: true | |
| gateway: 192.168.178.1 | |
| docker: | |
| engine: docker-18.09.6 |
| kind: List | |
| apiVersion: v1 | |
| items: | |
| - apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| annotations: | |
| kubernetes.io/ingress.class: traefik | |
| name: status | |
| spec: |
| kind: List | |
| apiVersion: v1 | |
| items: | |
| - apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| annotations: | |
| kubernetes.io/ingress.class: traefik | |
| name: status | |
| spec: |
| from os import environ | |
| from jira import JIRA | |
| # using jira : pip install jira==3.1.1 | |
| # Following env vars must be SET | |
| # JIRA_URL | |
| # JIRA_ACCESS_TOKEN | |
| # JIRA_PROJECT |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: nginx | |
| name: nginx-deployment | |
| spec: | |
| progressDeadlineSeconds: 600 | |
| replicas: 2 | |
| revisionHistoryLimit: 2 |