git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import {Injectable} from '@angular/core'; | |
| import AppID from 'ibmcloud-appid-js'; | |
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class AuthService { | |
| private appId; | |
| private accessToken: string; |
| # | |
| # a one-liner to get raw content from github enterprise, relying on basic authentication. | |
| # eliminates the need to create an access token and incorporate it in the url. | |
| # | |
| # | |
| # fill in the blanks: | |
| # | |
| # USER your login user name for authentication (you'll be prompted for password on the terminal) | |
| # GHE_DOMAIN the github enterprise custom domain |
| /* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger(); |
| def getProjectName() { | |
| return 'JenkinsPipeline' | |
| } | |
| def getJDKVersion() { | |
| return 'jdk1.8.0_101' | |
| } | |
| def getMavenConfig() { | |
| return 'maven-config' |
| 1 copy the file into /etc/init.d/xvfb | |
| 2 chmod +x /etc/init.d/xvfb | |
| 3 ./etc/init.d/xvfb start | |
| 4 # some headless test here | |
| 5 ./etc/init.d/xvfb stop |
| # Dependencies to make "headless" chrome/selenium work: | |
| sudo apt-get -y install xvfb gtk2-engines-pixbuf | |
| sudo apt-get -y install xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable | |
| echo "Starting X virtual framebuffer (Xvfb) in background..." | |
| Xvfb -ac :99 -screen 0 1280x1024x16 & | |
| export DISPLAY=:99 |
| #git tag `date "+staging-%Y%m%d%H%M%S"` | |
| git tag `date "+production-%Y%m%d%H%M%S"` | |
| git push --tags |