$ touch ~/.gradle/init.gradle
$ cat > ~/.gradle/init.gradle <<EOF
allprojects {
tasks.withType(Test) {
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-Xdebug',
'-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009'
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
| # The inputs, outputs, params, filename, and filepath | |
| # of this task file are part of its semantically versioned API. | |
| # See our documentation for a detailed discussion of our semver API. | |
| # See www.semver.org for an explanation of semantic versioning. | |
| # code_snippet credhub-interpolate start yaml | |
| --- | |
| platform: linux | |
| inputs: |
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
| set autoindent | |
| set tabstop=2 shiftwidth=2 expandtab | |
| set history=50 | |
| set hlsearch | |
| set ignorecase | |
| set incsearch | |
| set linebreak | |
| set listchars=eol:¶ | |
| set list | |
| set nobackup |
Sometimes STS/Eclipse failed to start: failed to create java virtual machine.
It might be caused by multiple JDKs installed.
So we have to specify if it helps.
$ sudo vi /Applications/STS.app/Contents/Eclipse/STS.ini
...
-vm
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
| #!/bin/bash | |
| # Ref: https://gist.github.com/bobthecow/757788 | |
| # Purposes: to open a new iTerm tab vertically, with the same profile, and run the command. | |
| # Usage: source it and | |
| # tab Opens the current directory in a new tab | |
| # tab [PATH] Open PATH in a new tab | |
| # tab [CMD] Open a new tab and execute CMD | |
| # tab [PATH] [CMD] ... You can prob'ly guess |
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
| ➜ CRC crc delete | |
| Do you want to delete the OpenShift cluster? [y/N]: y | |
| Deleted the OpenShift cluster | |
| ➜ CRC crc cleanup | |
| INFO Unload CodeReady Containers tray | |
| INFO Unload CodeReady Containers daemon | |
| INFO Removing launchd configuration for tray | |
| INFO Removing launchd configuration for daemon | |
| INFO Removing current user permission for /etc/hosts file | |
| INFO Will use root access: change ownership of /etc/hosts |
It's common that we use business email to commit for work while using personal email to commit for OSS.
You can configure an individual repo to use a specific user / email address which overrides the global configuration.
Let say we want to make the OSS commits as default, do this:
From the root of the repo, run
git config user.name "Your biz name here"Once you encounter that, right click the page and click "inspect".
Then switch to "Console" and copy-and-paste below command, then enter:
sendCommand(SecurityInterstitialCommandId.CMD_PROCEED)Boom, it will work within seconds.