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'; | |
// Usage: node read-repos.mjs [root directory] > output-script.sh | |
import { spawn } from 'child_process' | |
import { log } from 'console' | |
import { readdir, readFile, access } from 'fs/promises' | |
import { EOL } from 'os' | |
import { sep, join } from 'path' | |
import { argv, cwd, stdout } from 'process' |
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
{ | |
"author": { | |
"name": "Nicola Dal Maso", | |
"email": "[email protected]", | |
"url": "https://github.com/niktekusho" | |
}, | |
"license": "MIT", | |
"version": "0.0.0" | |
} |
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
# niktekusho's profile! | |
# Put this file in ${HOME}\Documents\PowerShell\ | |
# Custom environment vars | |
# Persist workspace env-var | |
[System.Environment]::SetEnvironmentVariable('GH_PROJECTS_PATH', "$env:HOME\Documents\Github") | |
# Custom prompt |
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 Docker = require('dockerode'); | |
const localDocker = new Docker(); | |
async function setup(hostPort) { | |
const mongoContainer = await localDocker.createContainer({ | |
Image: 'mongo:4.0.0', | |
Hostconfig: { | |
PortBindings: { | |
'27017/tcp': [{ |
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
choco install -y 7zip dbeaver filezilla git gradle nodejs notepadplusplus vscode |
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
;Rev 1.0 Initial Release For Cr-10 | |
;All the "orientations" here are based off of the printer facing you with the extruder closest to you and the Z axis on the left | |
M300 S2000 P1000 ;Make buzzer sound to notify of the beginning of the leveling process "S" is the frequency of the buzzer "P" is duration in milliseconds | |
M117 Starting. ;Show message on screen | |
G4S5 ;Wait for 5 seconds, mostly so it gives you some time to acknowledge it | |
M117 Front left corner. ;Show message on screen | |
G1 Y020 X020 ; Move the head 10mm from the home position to the left | |
G0 Z0 ; Move the head down | |
G4 S20 ;Wait at that position for 20 seconds |