- Bracket Pair Colorizer 2 - Color brackets in pair
- Prettier - Code formatter - Best code formatter
- ESLint - JavaScript linting support
- Quokka.js - Live Scratchpad for JavaScript.
- One Monokai Theme - Personal preferrence
- DotEnv - Syntax highlight for
.env
file - npm Intellisense - Provide intellisense support when importing npm modules
- [Path Intellisense](https://marketplace.visualstudio.c
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
/** @jsx jsx */ | |
import { | |
React, | |
jsx, | |
type AllWidgetProps, | |
classNames, | |
DataSourceComponent, | |
type QueriableDataSource, | |
Immutable, | |
appActions, |
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
const fs = require('fs') | |
const path = require('path') | |
async function start () { | |
const filepath = path.resolve(__dirname, 'config.json') | |
const config = await fs.promises.readFile(filepath, 'utf8') | |
const json = JSON.parse(config) | |
console.log(json) | |
} |
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
const fs = require('fs'); | |
const readFile = async filePath => { | |
try { | |
const data = await fs.promises.readFile(filePath, 'utf8') | |
return data | |
} | |
catch(err) { | |
console.log(err) | |
} |
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
const fs = require('fs'); | |
const readFile = async filePath => { | |
try { | |
const data = await fs.promises.readFile(filePath, 'utf8') | |
return data | |
} | |
catch(err) { | |
console.log(err) | |
} |
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
# Pre-requisite | |
# 1. change <my-namespace> to the namespace to alter finalizing | |
# 2. change <my-cluster-id> to the cluster id from rancher url (e.g. https://my-rancher-ip/c/<my-cluster-id>/nodes | |
# 3 Replace the following commands in a text editor and run | |
(NAMESPACE=<my-namespace>; CLUSTER=c-fm5bd; kubectl proxy & kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json; curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/k8s/clusters/$CLUSTER/api/v1/namespaces/$NAMESPACE/finalize; ) | |
# Source: https://github.com/rancher/rancher/issues/16477 |
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
... | |
host replication all ::1/128 trust | |
host all andy 172.17.0.0/16 trust | |
^ ^ ^ | |
host user ip range of host trust = no password | |
... |
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
{ | |
"prettier.eslintIntegration": true, | |
"editor.tabSize": 2, | |
"editor.minimap.enabled": false, | |
"eslint.autoFixOnSave": false, | |
"editor.formatOnPaste": true, | |
"editor.formatOnSave": false, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 12, |
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
[user] | |
name = Some dude | |
email = [email protected] | |
[core] | |
excludesfile = /Users/somedude/.gitignore_global | |
editor = vi | |
pager = less -FRSX | |
whitespace = trailing-space,cr-at-eol | |
autocrlf = input | |
[color] |
NewerOlder