This file contains hidden or 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
# These aliases depend on the following: az-cli, gum, kubectx, kubens | |
# Choose your Azure Account | |
alias azacc='choice=$(az account list -o tsv --query "[].name" | gum choose --selected="$(az account show --query "name" -o tsv)") && az account set --name "$choice"' | |
# Choose your Kubernetes Context | |
alias kctx='choice=$(kubectx | gum choose --selected=$(kubectx -c)) && kubectx "$choice"' | |
# Choose your Kubernetes Namespace | |
alias kns='choice=$(kubens | gum choose --selected=$(kubens -c)) && kubens "$choice"' |
This file contains hidden or 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 express = require('express'); | |
const app = express(); | |
const port = 3000; | |
const https = require('https'); | |
const options = { | |
hostname: 'ink.twetch.com', | |
port: 443, | |
path: '/twonks/market/sold', | |
method: 'GET' |
This file contains hidden or 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
type Thing = { | |
shape: Shape, | |
size: number, | |
} | |
enum Shape { | |
Circle, | |
Square, | |
Rectangle, | |
Triangle, |
This file contains hidden or 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 request = require("request"); | |
const http = require("http"); | |
var agent = new http.Agent({ | |
keepAlive: true, | |
//maxSockets: 25, // uncomment this line to fix the problem | |
keepAliveMsecs: 3000 | |
}); | |
async function asyncGet() { |