sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| # Local: | |
| # https://stackoverflow.com/questions/21151178/shell-script-to-check-if-specified-git-branch-exists | |
| # test if the branch is in the local repository. | |
| # return 1 if the branch exists in the local, or 0 if not. | |
| function is_in_local() { | |
| local branch=${1} | |
| local existed_in_local=$(git branch --list ${branch}) | |
| if [[ -z ${existed_in_local} ]]; then | |
| echo 0 | 
| pipeline { | |
| agent any | |
| stages { | |
| stage("SCM Update"){ | |
| steps { | |
| sh "git remote add lede git://git.lede-project.org/source.git || true" | |
| sh "git fetch lede" | |
| sh "git branch -D build" | |
| sh "git checkout -b build" | 
| # /etc/profile.d/best_bash_history.sh | |
| # Save 5,000 lines of history in memory | |
| HISTSIZE=10000 | |
| # Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing) | |
| HISTFILESIZE=2000000 | |
| # Append to history instead of overwrite | |
| shopt -s histappend | |
| # Ignore redundant or space commands | |
| HISTCONTROL=ignoreboth | |
| # Ignore more | 
| #!groovy | |
| @Library('github.com/walkmod/jenkins-pipeline-shared@maven') _ | |
| pipeline { | |
| agent any | |
| stages { | |
| stage ('Fixing Release'){ | |
| steps { | |
| walkmodApply( | 
| // A Declarative Pipeline is defined within a 'pipeline' block. | |
| pipeline { | |
| // agent defines where the pipeline will run. | |
| agent { | |
| // This also could have been 'agent any' - that has the same meaning. | |
| label "" | |
| // Other possible built-in agent types are 'agent none', for not running the | |
| // top-level on any agent (which results in you needing to specify agents on | |
| // each stage and do explicit checkouts of scm in those stages), 'docker', | 
| pipeline { | |
| agent any | |
| environment { | |
| PACKAGE="github.com/abtris/bee" | |
| GOPATH="/Users/abtris/go" | |
| GOROOT="/usr/local/opt/go/libexec" | |
| } | |
| stages { | |
| stage('Preparation') { | |
| steps { | 
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/wahyudibo/Projects/mylabs/php/nginx; | |
| #error_page 404 /404.html; | |
| # redirect server error pages to the static page /50x.html | |
| # | 
| #!/bin/bash | |
| # Install dependencies | |
| # older ubuntus | |
| #apt-get install build-essential libsqlite3-dev ruby1.9.1-dev | |
| # xenial | |
| apt install build-essential libsqlite3-dev ruby-dev | |
| # Install the gem | |
| gem install mailcatcher --no-ri --no-rdoc | 
| #!/usr/bin/env bash | |
| # Use single quotes instead of double quotes to make it work with special-character passwords | |
| PASSWORD='12345678' | |
| PROJECTFOLDER='gdson' | |
| # create project folder | |
| sudo mkdir "/sites/${PROJECTFOLDER}" | |
| # update / upgrade |