Skip to content

Instantly share code, notes, and snippets.

View alejojo's full-sized avatar

Alejandro alejojo

  • Tokyo, Japan
  • 11:31 (UTC +09:00)
View GitHub Profile
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Alejandro Cortina",
"label": "DevOps Engineer at Rakuten",
"image": "https://s.gravatar.com/avatar/73c22fd5958b37cb71f13b9d8390732d?s=80",
"email": "[email protected]",
"phone": "",
@alejojo
alejojo / jenkins-pipeline-git-cred.md
Created March 13, 2017 04:38 — forked from blaisep/jenkins-pipeline-git-cred.md
Insert git credentials into Jenkins Pipeline Script projects

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 December 8, 2016 05:41 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# 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 February 27, 2016 14:47 — 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
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh