Oneliners I somehow found useful.
Linux
docker inspect --format '{{ .NetworkSettings.IPAddress }}' mongo
docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)
import { parse } from "https://deno.land/[email protected]/flags/mod.ts"; | |
import { writeText } from "https://deno.land/x/copy_paste/mod.ts"; | |
import { basename } from "https://deno.land/[email protected]/path/mod.ts"; | |
import B2 from 'npm:backblaze-b2'; | |
// Read file name from command line arguments | |
const args = parse(Deno.args); | |
if (args._.length !== 1) { | |
console.error("Please provide a file path as an argument."); | |
Deno.exit(1); |
#!/bin/sh | |
# curl {URL to this script} | sh -s | |
# install docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt-get update | |
apt-cache policy docker-ce | |
sudo apt-get install -y docker-ce | |
sudo systemctl status docker |
"use strict"; | |
const execSync = require('child_process').execSync; | |
const fs = require('fs'); | |
function run(command) { | |
return execSync(command).toString().trim(); | |
} | |
console.log("Reading 'versions' file..."); |
"use strict"; | |
let server = "http://localhost:3000/"; | |
let parallelCount = 500; | |
let http = require("http"); | |
http.globalAgent.maxSockets = parallelCount; | |
var queryCount = 0; |
configure \ | |
-release \ | |
-static \ | |
-nomake examples \ | |
-nomake tools \ | |
-opensource \ | |
-platform win32-msvc2015 \ | |
-nomake tests \ | |
-opengl desktop \ | |
-skip qtwebkit \ |