git rm --cached resources/sprite/dist/sprite.svg
git rm -r --cached resources/sprite/svgo
git for-each-ref --sort=-committerdate refs/heads/ |
git for-each-ref --sort='-committerdate' --format='%(refname)%09%(committerdate)' refs/heads | sed -e 's-refs/heads/--' |
#!/bin/bash | |
FILE=build.js | |
if test -f "$FILE"; then | |
printf "\r\n$FILE already exists, start use node build with \"node build --cmd\"\n" | |
else | |
echo "let build = require('sd-unity-build');" > build.js | |
printf "\r\nbuild.js created, start use node build with \"node build --cmd\"\n" | |
fi |
# Create new feature branch from sd-unity-4-0 dev branch | |
# Red | |
RED='\033[0;31m' | |
# Color Function | |
alert(){ | |
echo -ne $RED$1$clear |
green='\e[32m' | |
blue='\e[34m' | |
clear='\e[0m' | |
#Green | |
GREEN=`tput setaf 2` | |
# Red |
[alias] | |
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}' |
#!/bin/bash | |
#Script to get rss feed from special youtube links. | |
# Examples: | |
# 1) https://www.youtube.com/c/NumeroDiez --> type "./yt-rss Numerodiez c" and press enter to get RSS url | |
# 2) https://www.youtube.com/user/simoneaversano --> type "./yt-rss simoneaversano user" and press ENTER to get RSS url | |
# If the channel already have an id in the youtube url use: | |
# 2) https://www.youtube.com/channel/UCk8gzAOGprcGAFMWGzZ2zQw --> type "./yt-rss UCk8gzAOGprcGAFMWGzZ2zQw channel" and press ENTER to get RSS url | |
GREEN=`tput setaf 2` |
If you want to get net wlan show profiles output no matter if it fails or not, you can use either asynchronous version of exec. The callback will have stdout set.
Or you can catch exception and get stdout from there. Something like:
let nestsh_output;
try {
netsh_output = execSync('netsh wlan show profiles');
} catch (ex) {
netsh_output = ex.stdout;