Skip to content

Instantly share code, notes, and snippets.

View stchar's full-sized avatar

Stanislav Ovchar stchar

View GitHub Profile
@stchar
stchar / update-ssh-known_hosts-jenkins-script-console.groovy
Last active March 29, 2023 13:14
Jenkins Controller Update ssh known_hosts via groovy script console
// description: Add new fingerprints of some host to ssh known hosts file
// why: sometimes you don't have access to Jenkins controller or agents
// but you need to update system configuration or some other OS specific stuff
// like in this case ~/.ssh/known_hosts file
// you can use groovy script console ${JENKINS_URL}/script
// @argument just output upcomming changes
def dryRun = true
// @argument FQDN name to retrive new ssh fingerprints
@stchar
stchar / jfr-wrapper
Last active April 15, 2024 08:46
Jenkinsfile runner shell wrapper
#!/bin/bash
# TODO use custom-war-packager-cli
# e.g. java -jar ~/bin/custom-war-packager-cli.jar
jfr_tool="jenkinsfile-runner"
jfr_version="1.0-beta-32"
jfr_url="https://github.com/jenkinsci/${jfr_tool}/releases/download/${jfr_version}/${jfr_tool}-${jfr_version}.zip"
jpm_version="2.12.15"
jpm_url="https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${jpm_version}/jenkins-plugin-manager-${jpm_version}.jar"
# check if jenkinsfile-runnner has been installed
@stchar
stchar / jcli-wrapper
Last active October 13, 2023 10:43
Jenkinsfile CLI shell wrapper
#!/bin/bash
# Jenkins-cli wrapper see. https://www.jenkins.io/doc/book/managing/cli/
#
# .installation:
# curl -o ~/bin/jcli-wrapper <gist_url>
# chmod +x ~/bin/jcli-wrapper
#
# .usage:
# jcli-wrapper Jenins-URL file-with-credentilas
#
alias ..='cd ..'
alias ll='ls -Al'
# tree
alias tree2='tree -L 2'
# git-related
# Typos
alias hui='git'
alias gti='git'
@stchar
stchar / erlang20.1-fips.md
Last active September 5, 2019 10:45
erlang20.1-fips.md

Erlang OTP 20.1 with openssl fips mode

Openssl with fips

Erang opt 20.1 contains crypto-4.1 with openssl-1.0.2d. So I was using the same version set.

Reqruried Software

I used chocolatey.org to install depdencies

  • Git
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global alias.cp cherry-pick
# Overwrite remote reference(s)
git config --global alias.pf "push --force"
# Fetch all remote repositories