- node-fetch: https://www.npmjs.com/package/node-fetch
- kleur: https://www.npmjs.com/package/kleur
- ansi-colors: https://www.npmjs.com/package/ansi-colors
| #!/bin/bash | |
| # check_dependency fzf gh jq || exit 1 | |
| DEFAULT_USER="$(git config user.name)" | |
| REPO_NAME="$(git rev-parse --show-toplevel | xargs basename)" | |
| USER="${1:-${DEFAULT_USER}}" | |
| PULLS_JSON="$(gh api "/repos/${USER}/${REPO_NAME}/pulls")" |
| #!/bin/bash | |
| # Requires 'fzf' | |
| # check_dependency fzf git || exit 1 | |
| HELP_TEXT=" | |
| git fuzzy-checkout | |
| Check out branches quickly with the power of \`fzf\`. | |
| Default view is local branches (HEADS). |
| ####### SPEED UP LOGIN ####### | |
| captcha.check.portal.create_account=false | |
| captcha.check.portal.send_password=false | |
| company.security.strangers.verify=false | |
| live.users.enabled=true | |
| setup.wizard.enabled=false | |
| terms.of.use.required=false | |
| users.last.name.required=false | |
| users.reminder.queries.enabled=false |
| # Running this will display a filterable list of modules | |
| # Once you select one, you will navigate to it | |
| # You can call it with an argument to be used as a pre-filter on the module list | |
| # Requires 'fzf', I highly recommend it. | |
| # https://github.com/junegunn/fzf | |
| # In this case, 'fzf' is reading from stdin | |
| # USAGE EXAMPLES | |
| # gm (will present the full list of modules) |
| { | |
| "$schema": "./.schema.jack.json", | |
| "blacklistPatterns": [], | |
| "commands": [ | |
| { | |
| "command": "git -p diff [%SHA_RANGE%] --name-only | less", | |
| "description": "View changed file names", | |
| "foreground": true, | |
| "key": "l" | |
| }, |
Grow documentation: https://grow.liferay.com/share/Headless+APIs+in+7.2
Headless API Loop posts: Part 1: https://loop.liferay.com/es/home/-/loop/feed/17520934 Part 2: https://loop.liferay.com/es/home/-/loop/feed/17681438 Part 3: https://loop.liferay.com/web/guest/home/-/loop/feed/18262116
Documentation on the search/filter/sort syntax supported by collections: https://github.com/ngaskill/liferay-docs/blob/aaf04beef3ddb75017f054c6d8291493b3d0f755/developer/frameworks/articles/150-web-services/02-headless-apis/08-filter-and-sort.markdown
| # bash/zsh git prompt support | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # This script allows you to see repository status in your prompt. | |
| # | |
| # To enable: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
| function openEditContactInformationWindow(title, entryId, fieldNames, baseRenderURL, baseEditURL, portletNamespace) { | |
| var renderURL = new URL(baseRenderURL); | |
| var renderURLSearchParams = renderURL.searchParams; | |
| renderURLSearchParams.set(`${portletNamespace}entryId`, entryId); | |
| var modalId = `${portletNamespace}editContactInformationModal`; | |
| Liferay.Util.openWindow( |
| #!/bin/bash | |
| error() { | |
| echo "$1" | |
| exit 1 | |
| } | |
| log() { | |
| echo "[setupcore] $1" | |
| } |