$ oc login --token=<your_token> --server=<ocp_host>
$ oc projects
$ oc project <project_name>
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
| /** | |
| * Unwinds Java exception stack and converts it to a formatted string. | |
| * | |
| * e.g. | |
| * | |
| * Exception in thread "main" | |
| * java.lang.RuntimeException: java.lang.RuntimeException: test | |
| * at com.example.Main.foo(Main.java:50) | |
| * at com.example.Main.test(Main.java:40) | |
| * at com.example.Main.main(Main.java:14) |
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
| @echo off | |
| setlocal | |
| rem Must run elevated | |
| net session > nul 2>&1 | |
| if not %errorLevel% == 0 ( | |
| echo Error: Please re-run as admin | |
| goto end | |
| ) |
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
| @rem ------------------------------------------------------ | |
| @rem Usage: | |
| @rem nexus_mvn_deploy.bat <groupId> <artifactId> <version> <path/to/file> <path/to/maven_settings> | |
| @rem | |
| @rem ------------------------------------------------------ | |
| @echo off | |
| setlocal | |
| if "%1" == "" ( |
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
| @rem ------------------------------------------------------ | |
| @rem Usage: | |
| @rem mvn.bat <phase_or_goal> <list_of_modules> <path/to/settings.xml> | |
| @rem | |
| @rem phase_or_goal - compile, package, test | |
| @rem list_of_modules - Comma-delimited list of modules in a multi-module project: | |
| @rem "module_name_to_include,!module_name_to_exclude" | |
| @rem | |
| @rem Example: | |
| @rem mvn.bat package "main-module,!deprecated-module" "%homepath%\.m2\settings.xml" |
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
| #include <map> | |
| #include <array> | |
| #include <string> | |
| #include <vector> | |
| #include <memory> | |
| #include <sstream> | |
| #include <cassert> | |
| #include <iostream> | |
| #include <exception> |
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
| @rem ------------------------------------------------------ | |
| @rem Decompiles Java JAR files. | |
| @rem This script depends on the following libraries: | |
| @rem * 7ZIP CLI : https://www.7-zip.org/a/7z1900-extra.7z | |
| @rem * jad decompiler: http://www.kpdus.com/jad/winnt/jadnt158.zip | |
| @rem ------------------------------------------------------ | |
| @echo off | |
| setlocal |
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
Show hidden characters
| { | |
| "sublime_merge_path": "/snap/sublime-merge/current/opt/sublime_merge/sublime_merge", | |
| "added_words": [ | |
| "aggregator", | |
| "biometrics", | |
| "chatbot", | |
| "comradery", | |
| "denormalizing", | |
| "geospatial", | |
| "globalization", |
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
| @rem ------------------------------------------------------ | |
| @rem Locates branches that were already merged and deletes | |
| @rem them from the remote GIT repository. | |
| @rem | |
| @rem Usage: git_branch_cleanup.bat [--force] | |
| @rem --force - delete the remote branch. optional. | |
| @rem if not specified, performs dry run | |
| @rem by default. | |
| @rem ------------------------------------------------------ |