docker run -it --rm --name jenkins -p '8080:8080' jenkins:alpine
- Login as Admin
- Accept the standard plugins
- Continue as Admin
- Install AnsiColor plugin
| #!/bin/bash | |
| # call this script with an email address (valid or not). | |
| # like: | |
| # ./makecert.sh joe@random.com | |
| mkdir certs | |
| rm certs/* | |
| echo "make server cert" | |
| openssl req -new -nodes -x509 -out certs/server.pem -keyout certs/server.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" | |
| echo "make client cert" | |
| openssl req -new -nodes -x509 -out certs/client.pem -keyout certs/client.key -days 3650 -subj "/C=DE/ST=NRW/L=Earth/O=Random Company/OU=IT/CN=www.random.com/emailAddress=$1" |
| #!/bin/bash | |
| # | |
| # Usage: ./commit_everything.sh "Commit message" | |
| BOLD=$(tput bold) | |
| BLACK=$(tput setaf 0) | |
| WHITE=$(tput setaf 7) | |
| BLUE=$(tput setaf 4) | |
| GREEN=$(tput setaf 2) | |
| NORMAL=$(tput sgr0) |
| /* | |
| reference link ->https://www.opengeeks.me/2015/08/filechooser-and-android-webview/ | |
| https://github.com/OpenGeeksMe/Android-File-Chooser | |
| */ | |
| import android.app.Activity; | |
| import android.app.ProgressDialog; | |
| import android.content.Intent; | |
| import android.graphics.Bitmap; | |
| import android.net.Uri; |
| #!/usr/bin/bash | |
| # Download zeromq | |
| # Ref http://zeromq.org/intro:get-the-software | |
| wget https://github.com/zeromq/libzmq/releases/download/v4.2.2/zeromq-4.2.2.tar.gz | |
| # Unpack tarball package | |
| tar xvzf zeromq-4.2.2.tar.gz | |
| # Install dependency |
| node{ | |
| timestamps{ | |
| stage('Samples'){ | |
| // Single quotes with no interpolation, at least not in Jenkins. | |
| // The dollar variable will be evaluated before being run by the | |
| // shell command, so variables which Jenkins makes available as | |
| // environment variables can still be accessed from within a | |
| // single-quoted string, passed to the sh task. | |
| sh 'echo $PATH' |
| #!/bin/sh | |
| alias dm='docker-machine' | |
| alias dmx='docker-machine ssh' | |
| alias dk='docker' | |
| alias dki='docker images' | |
| alias dks='docker service' | |
| alias dkrm='docker rm' | |
| alias dkl='docker logs' | |
| alias dklf='docker logs -f' |
| pipeline { | |
| agent { | |
| // Run on a build agent where we have the Android SDK installed | |
| label 'android' | |
| } | |
| environment { | |
| // Fastlane Environment Variables | |
| PATH = "$HOME/.fastlane/bin:" + | |
| "$HOME/.rvm/gems/ruby-2.5.3/bin:" + | |
| "$HOME/.rvm/gems/ruby-2.5.3@global/bin:" + |
| package tv.freenet.selfcare.extensions | |
| import android.os.Binder | |
| import android.os.Bundle | |
| import android.os.Parcelable | |
| import androidx.core.app.BundleCompat | |
| import androidx.fragment.app.Fragment | |
| import org.parceler.ParcelWrapper | |
| import org.parceler.Parcels |
| #!/bin/bash | |
| # Usage: | |
| # ./update_git_repos.sh [parent_directory] | |
| # example usage: | |
| # ./update_git_repos.sh C:/GitProjects/ [MAKE SURE YOU USE / SLASHES] | |
| updateRepo() { | |
| local dir="$1" | |
| local original_dir="$2" | |
| cd $dir # switch to the git repo |