dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.416
Commit: 8d3765c609
Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
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
'use strict'; | |
describe('mocha before and after hooks', function () { | |
before(() => console.log('*** top-level before()')) | |
beforeEach(() => console.log('*** top-level beforeEach()')) | |
after(() => console.log('*** top-level after()')) | |
afterEach(() => console.log('*** top-level afterEach()')) | |
describe('nesting', function () { | |
before(() => console.log('*** nested before()')) | |
beforeEach(() => console.log('*** nested beforeEach()')) |
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: kustomize.config.k8s.io/v1beta1 | |
kind: Kustomization | |
resources: | |
- namespace.yaml | |
patchesJson6902: | |
# deletes a single label from a kubernetes resource. | |
# the label includes a slash '/' character | |
# we replace the '/' character with '~1'. | |
- target: | |
version: v1 |
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
require('http').get({host: '<REPLACE_ME>.<REPLACE_ME>.svc.cluster.local.', path:'/graphql', port:3000}, (resp) => { console.log(resp.statusCode); }).on("error", (err) => { console.log("error: " + err.message);}); |
ssh-keygen -t rsa -b 4096 -C "YOUR EMAIL ADDRESS"
- write ssh key to
~/.ssh/gcp-sstp-box
- also save the key to an encrypted location, e.g. Lastpass
gcloud config set project YOURGCPPROJECTNAME
gcloud config compute/region set europe-west1
(or wherever you wish to host it)gcloud config compute/zone set europe-west1-b
(or wherever)
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: Namespace | |
metadata: | |
name: sonobuoy | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: |
bbl director-ssh-key > director-ssh-key.pem
- Open director-ssh-key.pem and copy contents into buffer
bbl ssh-key > jumpbox-ssh-key.pem
chmod 600 jumpbox-ssh-key.pem
ssh -i jumpbox-ssh-key.pem -t jumpbox@$(bbl jumpbox-address) bash
- You should now be on the jumpbox
vi director-ssh-key.pem
- paste the director key contents (which you copied earlier) into the file and save
chmod 600 director-ssh-key.pem
ssh -vvv 10.0.0.6 -i director-ssh-key.pem
#Replace 10.0.0.6 with the internal IP address of your bosh director
- make changes
git stash save
git checkout -b xxx
git stash pop
where xxx
is the new branch name
Get node.couchapp:
git clone https://github.com/mikeal/node.couchapp.js.git
cd node.couchapp.js
install globally:
npm install -g
install locally, where test
is the directory name which will contain your app: