Build image
docker build --tag <image tag>
Run container exposing port 4444 and mounting /views directory
docker run -p 4444:4444 /${PWD}/views:/code/views <image tag>
List running containers
SKU,Qty | |
DP-2,10 |
{ | |
"tracking_number": "asdfadsf1234" | |
} |
{ | |
"token":"XYZ123" | |
} |
const { exec } = require("child_process"); | |
exec(`osascript -e 'display notification "Hello World!"'`, (error, stdout, stderr) => { | |
if (error) { | |
console.log(`error: ${error.message}`); | |
return; | |
} | |
if (stderr) { | |
console.log(`stderr: ${stderr}`); | |
return; |
# Move all *.csv files from current directory to _archive subdirectory | |
mmv *.csv _archive |
Build image
docker build --tag <image tag>
Run container exposing port 4444 and mounting /views directory
docker run -p 4444:4444 /${PWD}/views:/code/views <image tag>
List running containers
(async () => { | |
let i = 0; | |
let quotes = []; | |
while (true) { | |
const quoteResp = await fetch(`https://indie-hackers.firebaseio.com/loadingQuotes/${i++}.json`); | |
const quote = await quoteResp.json(); | |
if (!quote) break; | |
quotes.push(quote); | |
console.log(i); | |
} |
var AWS = require('aws-sdk'), | |
fs = require('fs'); | |
// For dev purposes only | |
AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' }); | |
// Read in the file, convert it to base64, store to S3 | |
fs.readFile('del.txt', function (err, data) { | |
if (err) { throw err; } |