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
##!/bin/bash | |
# ======= Generate extensions list by: | |
#code --list-extensions | while read line; do | |
# echo code --install-extension $line | |
#done | |
# ======== My current extensions listcode --install-extension DSKWRK.vscode-generate-getter-setter | |
code --install-extension akamud.vscode-theme-onedark | |
code --install-extension alefragnani.Bookmarks | |
code --install-extension Angular.ng-template |
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
curl -X POST http://localhost:9200/_reindex?pretty=true -d '{ | |
"source": { | |
"index": "dev_1" | |
}, | |
"dest": { | |
"index": "dev_2" | |
} | |
}' |
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
curl -X GET http://localhost:9200/dev-1/categorysearchproductmodel/_search?pretty=true -d '{ | |
"sort" : [ | |
{ "_uid" : {"order" : "asc"}} | |
], | |
"query": { | |
"match_all": {} | |
} | |
}' > els-now.json |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
version: "2.2" | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0 | |
container_name: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: |
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 https = require('https'); | |
module.exports = function (context, req) { | |
context.log('JavaScript HTTP trigger function processed a request.'); | |
https.get('https://ifconfig.co/json', res => { | |
res.setEncoding('utf8'); | |
let body = ''; | |
res.on('data', data => { | |
body += data; |
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
#!/bin/bash | |
# add it as `pre-push` file in your repository `.git/hooks folder` | |
# to test it - run `git push --dry-run`, it might be helpful :) | |
echo "============================= pre-push started ============================= " | |
remote="$1" | |
url="$2" | |
z40=0000000000000000000000000000000000000000 |
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
code --install-extension Angular.ng-template | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension ecmel.vscode-html-css | |
code --install-extension EditorConfig.EditorConfig | |
code --install-extension eg2.tslint | |
code --install-extension Mikael.Angular-BeastCode | |
code --install-extension msjsdiag.debugger-for-chrome | |
code --install-extension pmneo.tsimporter | |
code --install-extension streetsidesoftware.code-spell-checker |
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
for D in *; do (cd $D && npm i); done |
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
{ | |
"scripts": { | |
"cf": "ng g component --spec false --flat --inline-style --inline-template", | |
"c": "ng g component --spec false" | |
} | |
} |