View gist:cc3dfb95c2a6e7a16854805f0668aad2
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
--- Printers>machine settings> | |
Start G-code | |
^Firmware:V1.05 | |
^Minfirmware:V1.05 | |
^DRM:000000000000 | |
^ConfigAndConfiguration:X562-X560 | |
^PrinterModel:CUBE3 |
View node-red download array of links
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
[{"id":"a71a3f4e.12c4","type":"tab","label":"download files","disabled":false,"info":""},{"id":"d683d63f.c95dc8","type":"file in","z":"a71a3f4e.12c4","name":"from links.json","filename":"/mnt/g/links/links.json","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":200,"y":140,"wires":[["f3baa287.54b27"]]},{"id":"8c7858d8.de5d28","type":"inject","z":"a71a3f4e.12c4","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":80,"wires":[["d683d63f.c95dc8"]]},{"id":"9e4a41ff.7d3aa","type":"split","z":"a71a3f4e.12c4","name":"","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","x":330,"y":260,"wires":[["da83d475.cf4eb8"]]},{"id":"f3baa287.54b27","type":"json","z":"a71a3f4e.12c4","name":"","property":"payload","action":"","pretty":false,"x":250,"y":200,"wires":[["9e4a41ff.7d3aa"]]},{"id":"c6e345ea.ec81c8","type":"http request","z":"a71a3f4e.12 |
View node-red-debug
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
alias red='node --inspect ~/.nvm/versions/node/v11.15.0/bin/node-red' | |
alias redb='node --inspect-brk ~/.nvm/versions/node/v11.15.0/bin/node-red' | |
ndb ... |
View gist:9bc78db94bba7f7530065f3d26981a6a
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
export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\]@\w\[\033[0;32m\]$(__git_ps1)[\D{%m-%d %H:%M}]\n\[\033[0;32m\]└─\[\033[0m\033[0;32m\]\$\[\033[0m\033[0;32m\] ▶\[\033[0m\]' |
View Gremlins
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
require(['gremlins'], function(gremlins) { | |
function positionSelector() { | |
const $list = $('.app'); | |
const offset = $list.offset(); | |
return [ | |
parseInt(Math.random() * $list.outerWidth() + offset.left), | |
parseInt(Math.random() * ($list.outerHeight() + $list.outerHeight()) + offset.top) | |
]; | |
} |
View git alias
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
# This is Git's per-user configuration file. | |
[user] | |
# Please adapt and uncomment the following lines: | |
name = Andrii | |
email = tamerjlah@gmail.com | |
[alias] | |
alias = config --get-regexp ^alias\\. #display all aliases | |
cm = commit -m #{@message} commit with message |