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
ng new project --routing true --skip-git true --skip-commit true --style scss | |
ng new --prefix=xyz --routing=true --style=scss --viewEncapsulation=ShadowDom project --skip-commit true |
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
ssh git@bunker | |
cd /volume1/git/ | |
git --bare init <repo-name>.git | |
git update-server-info |
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
// array buffer to JSON | |
const dataString JSON.stringify(Array.from(new Uint8Array(arrayBuffer))); | |
// send around | |
// JSON to ArrayBuffer | |
new Uint8Array(JSON.parse(dataString)).buffer |
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
$ vim /usr/share/vim/vim80/defaults.vim | |
" In many terminal emulators the mouse works just fine. By enabling it you | |
" can position the cursor, Visually select and scroll with the mouse. | |
"if has('mouse') | |
" set mouse=r | |
"endif |
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
# delete all local merged branches with no activity within the last week | |
for k in $(git branch --merged | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 week ago' -s $k)" ]; then | |
echo git branch -d $k | |
fi | |
done | |
# delete all merged remote branches with no activity within the last month | |
for k in $(git branch -r --merged | cut -d ' ' -f3 | sed /\*/d); do | |
if [ -z "$(git log -1 --since='1 month ago' -s $k)" ]; then |
NewerOlder