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
/* | |
Avoid all the confusion with this in your entry script | |
*/ | |
var exec = require('child_process').exec; | |
var cmd = 'git branch | grep "*"' | |
exec(cmd, function(error, stdout, stderr) { | |
console.log("server source : " + stdout); | |
}); |
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
Find all devices | |
---------------- | |
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; | |
[ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; | |
done | |
Using nmap | |
---------- |