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
| import {createApp} from 'vue'; | |
| import App from './App.vue; | |
| const requireComponent = require.context('./', true, /App[A-Z]\w+\.(vue/js/ts)$); | |
| const app = createApp(App); | |
| requireComponent.keys().forEach(filename => { | |
| let baseComponentConfig = requireComponent(filename); | |
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 . -name $1 -exec rm -rf {} \; |
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
| # [ONLY LOCALLY] | |
| git branch | grep "commonPrefix" | xargs git branch -d | |
| # [ONLY REMOTELY] | |
| git branch --remote | grep -v 'excludeBranch1' | grep -v 'excludeBranch2' | cut -b 10- | xargs git push --delete origin |
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
| function processHtmlBody(asyncResult) { | |
| var hiddenURL = $(asyncResult.value).find(‘#x_hiddenURL’).text() | |
| console.log(hiddenURL); | |
| } | |
| Office.context.mailbox.item.body.getAsync(“html”, processHtmlBody) |
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
| netstat -vanp tcp | grep <PORT> |
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
| {% macro _page_title() -%} | |
| {% block page_title %} | |
| {% if page_id == 'some-string' %} | |
| {% trans %}Some String{% endtrans %} | |
| {% elif page_id == 'some-other-string' %} | |
| {% trans %}Some Other String{% endtrans %} | |
| {% else %} | |
| {% trans %}General String{% endtrans %} | |
| {% endif %} | |
| {% endblock %} |
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
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
| git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |