- If you had to explain the concept of DevOps to a child, what would you say?
- How does the interface with product management aid or detract from the flow of work?
- How do we start a DevOps transformation?
- You are involved in “re-platforming” (lift existing physical hardware to cloud) but leave the software untouched. Can you do DevOps?
- What are your favorite sources for learning today, related to DevOps transformations?
- How have mainstream stories of security breaches affected the way we and organizations work?
- What mechanisms should be in place to challenge pre-existing notions about software delivery in an enterprise?
- How do we get people outside of the tech organization to not just participate in the DevOps journey, but be active leaders in it as well?
- How do you see DevOps practices being implemented outside of Development and IT Operations?
- What obstacles do technology leaders face in large, complex organizations that are outside the technology value stream?
Issue: can't use ssh or git commands when connected on VPN. This is because, for now, outgoing ssh / TCP 22 is blocked.
We have to tunnel through the web proxy. Here is how:
- Download and install
nmap-7.70-setup.exe
from https://nmap.org/download.html. We will usencat
tool to send all packets through the proxy. - Open command line (WIN Key+R+
cmd
+ENTER) cd %USERPROFILE%\.ssh
. This is where you have stored your ssh private key for GitHub- Create a new file named
config
- Add
# Description: | |
# Execute ssh command asynchronously and provide nicely formatted output on slack | |
# | |
# Commands: | |
# hubot my_ssh_command server - Your ssh command to run on host | |
# | |
module.exports = (robot) -> | |
robot.respond /my_ssh_command (.*)/i, (msg) -> | |
server = msg.match[1] |
curl -X POST -H "Content-Type: text/xml" --cookie cookies.txt -k --cookie-jar cookies.txt -d "<alm-authentication><user>alm_user</user><password>alm_password</password></alm-authentication>" https://alm_host:8443/qcbin/authentication-point/alm-authenticate
curl --cookie cookies.txt --cookie-jar cookies.txt --user alm_user:alm_password https://alm_host:8443/qcbin/authentication-point/authenticate
curl -X POST --cookie cookies.txt --cookie-jar cookies.txt https://alm_host:8443/qcbin/rest/site-session
curl --cookie cookies.txt --cookie-jar cookies.txt -g "https://alm_host:8443/qcbin/rest/domains/[ALM_DOMAIN]/projects/[ALM_PROJECT]/defects?fields=id,name,status,severity,owner&query={owner['alm_user']}"
When you have a PR which has been here for some times, and master is very active, you will end up have lots of commits in your history when you get the changes from master.
To clean this up:
git fetch origin
: get the latest from the repogit checkout my_branch
: go to your branch for pull requestgit rebase origin/master
: this will rebase the current branch with mastergit push -f
: force push, as we are rewriting history
How to execute locally Jenkinsfile
- Install a local Jenkins (avoid Docker to avoid to have port mapping, volume and other issues)
- https://jenkins.io/download/ -> get the war file
- Start Jenkins:
wget [jenkins.war]
mkdir jenkins_home
JENKINS_HOME=$PWD/jenkins_home java -jar jenkins.war
developer@github
: fork repo: git://github/team-org/repoX -> git://github/developer/repoXdeveloper@workstation
: git clone git@github:developer/repoX.gitdeveloper@workstation
: git remote add upstream git@github:team-org/repoX.git
developer@workstation/master
: git pull upstream master
Find out the SHA for when the branch was initiated:
$ git merge-base feature/248227-create-drop-artifact develop
b373da2f4b24e57a147021df1d3964a46b47edf3
Rebase / squash interactively:
Filming with GoPro with H.265, but editing with software which does not support H.265 (like Magix FastCut). Let's convert all those files to H.264, leveraging GPU (like NVidia RTX 3070 -> ~2x speed at 4K->4K)
for f in *.MP4; do ffmpeg -hwaccel cuvid -i "$f" -map 0 -c copy -c:v h264_nvenc -qp 20 -tune hq -crf 25 -preset slow h264vids/"${f%.*}.mp4"; done
Export all AWS SSM Parameters retrieved from a given path as environment variables
Example:
I have the following SSM parameters:
/codepipeline/deploy_prod
with value "v1.2.0"/codepipeline/deploy_preprod
with value "v1.1.1"/codepipeline/deploy_sandbox
with value "a0582a5fa7fff7361b18581d04d222a35cceb264"
The following environment variables will be exported: