This file contains 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
apt-get update -y | |
#Init install docker | |
curl -fsSL https://get.docker.com | bash | |
newgrp docker | |
sudo usermod -aG docker $USER | |
sudo gpasswd -a $USER docker | |
#Optional -> In case you wanted root permission too | |
sudo usermod -aG docker root | |
#Init install and configure dockerd-rootless-setuptool.sh |
This file contains 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
^(refs/heads/master.+|(?!refs/heads/master).*)$ |
This file contains 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
pipeline { | |
agent any | |
stages { | |
stage("Print Variables") { | |
steps { | |
sh "printenv | sort" | |
} | |
} | |
} |
This file contains 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
#Fail Fix -> server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none | |
#Method 1 -> Specific Repo | |
git -c http.sslVerify=false <command> <repo>.git | |
#Method 2 -> Global Config | |
git config --global http.sslVerify false |
This file contains 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
import com.cloudbees.plugins.credentials.Credentials | |
Set<Credentials> allCredentials = new HashSet<Credentials>(); | |
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
com.cloudbees.plugins.credentials.Credentials.class | |
); | |
This file contains 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
//Script Bussines Rules | |
var return_params = gs.action.getGlideURI().getMap().get('value_params'); |
This file contains 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
Ubuntu | |
#Install Prerequisites | |
apt-get update && \ | |
apt-get install -y build-essential gettext autoconf automake \ | |
libproxy-dev libxml2-dev libtool vpnc-scripts \ | |
pkg-config iptables libgnutls28-dev libopenconnect-dev \ | |
git sshpass procps \ | |
libqt5widgets5 libqt5gui5 libqt5dbus5 libqt5network5 libqt5core5a | |
#Git Clone Latest |
This file contains 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
# Convert crt to pem | |
openssl x509 -in /<CERT_DIRECTORY>/NAME_CRT.crt -out NAME_CRT.pem -outform PEM | |
# Convert key to pem | |
openssl rsa -in /<CERT_DIRECTORY>/NAME_KEY.key -text > NAME_KEY.pem | |
# Convert to Full Path pem | |
cat NAME_KEY.pem NAME_CRT.pem > NAME-fullchain_full_chain.pem |
This file contains 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
#Ubuntu | |
#Ref-> https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html | |
sudo apt update | |
sudo apt install software-properties-common | |
sudo add-apt-repository --yes --update ppa:ansible/ansible | |
sudo apt install ansible |
OlderNewer