Skip to content

Instantly share code, notes, and snippets.

Avatar

Alejandro alejojo

  • Tokyo, Japan
View GitHub Profile
@alejojo
alejojo / jenkins-pipeline-git-cred.md
Created Mar 13, 2017 — forked from blaisep/jenkins-pipeline-git-cred.md
Insert git credentials into Jenkins Pipeline Script projects
View jenkins-pipeline-git-cred.md

Suppose you want to inject a credential into a Pipeline script. The cloudbees note does not include Pipeline script examples. https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs

The Jenkins Pipeline Docs' description of the git pushmethod doesn't have an example using injected credentials. (https://jenkins.io/doc/pipeline/examples/#push-git-repo)

The Snippet generator is helpful, but not not if you try to follow the instructions at: https://wiki.jenkins-ci.org/display/JENKINS/Credentials+Binding+Plugin

@alejojo
alejojo / iptables_rules.sh
Created Dec 8, 2016 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
View iptables_rules.sh
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@alejojo
alejojo / adb.sh
Created Feb 27, 2016 — forked from olivier-m/adb.sh
Remove all Google apps from an android phone. List of delete files from http://forum.xda-developers.com/showthread.php?t=1969755
View adb.sh
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh
You can’t perform that action at this time.