Skip to content

Instantly share code, notes, and snippets.

View katcaola's full-sized avatar
:atom:

Kat Caola katcaola

:atom:
  • Universal Robots A/S
  • Earth
View GitHub Profile
// This was failing my build:
archiveArtifacts artifacts: '**/${env.DOCKER_FILE_NAME}', fingerprint: false
// SHOULD BE THIS
archiveArtifacts artifacts: "**/${env.DOCKER_FILE_NAME}", fingerprint: false
------------------------------------------------------------------------------------------------------------
// If you need vars that are global and changeable, you need them outside of the pipeline
VAR="value"
pipeline {
...
}
echo -e $RED"\nO$CYAN-$DEFAULT($CYAN:"$RED"0$DEFAULT)\n"
For a given Jenkins Multibranch pipeline...
_the_ Bitbucket git repository that _contains_ the Jenkinsfile
_can_ trigger the relevant Jenkins job
_with_ the branch name (i.e. "Omit Branch Name" *not* checked in BitBucket)
_any_ Bitbucket git repository that _does not contain_ the Jenkinsfile
_can only_ trigger the relevant Jenkins job
_without_ the branch name (i.e. "Omit Branch Name" *is* checked in BitBucket)
=============================================================================
#repo name
aptly repo add MOOGLE
#Distro #prefix
aptly publish update MOG Moogle
aptly publish list
| #Prefix #Distro #Architectures #component #reponame #comment
└─ * Moogle/MOG [amd64,i389,source] publishes { moogle:[MOOGLE]: comment}
########################################
# UNDERTALE #
########################################
░██░░████████░░██░░░░░░░░░░░░░░░░░░░░░░░░░░
░░██░░██░░░░░░░░██░░██░░░░░░░░░░░░░░░░░░░░░░░░
░░██░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░░░░░░░░░
░░██░░░░░░░░░░░░░░░░░░██░░░░░░░░░░░░░░░░░░░░░░
██░░░░██░░░░██░░░░░░░░░░██░░░░░░░░░░░░░░░░░░░░
██░░░░░░░░░░░░░░░░░░░░░░░░████░░░░░░░░░░░░░░░░
echo 'some-password' | mkpasswd --stdin --method=sha-512 --salt="$(od -tx1 -N8 -An </dev/urandom | tr -dc '[:xdigit:]')"
# What is this?
# Get 16 teaspoons of salt
$ od -tx1 -N16 -An </dev/urandom | tr -dc '[:xdigit:]'
# Mix well with hashed browns
echo 'hashed browns' | mkpasswd --stdin --method='sha-512' --salt='<PASTE OUTPUT FROM OD HERE>'
echo 'some-password' | mkpasswd --stdin --method=sha-512 --salt="$(tr -dc '[:alnum:]' </dev/urandom | head -c16)"
# What is this?
# Get 16 teaspoons of salt
$ od -tx1 -N15 -An </dev/urandom | tr -dc '[:xdigit:]'
# >16 is too many
echo 'some-password' | mkpasswd --stdin --method=sha-512 --salt="$(tr -dc '[:alnum:]' </dev/urandom)"
Wrong salt length: 32 bytes when 8 <= n <= 16 expected.
@katcaola
katcaola / ISKANDAR.txt
Last active July 13, 2020 23:50
ISKANDAR Fate/ZERO ASCII ART
Originally From: http://anime.en.utf8art.com/?s=rider
Best Viewed with MSPGothic Font
         ,イ /:.:./;.:.:-.―‐―一':.<
      ヽ、 /:.:V:.:.〃:.:.:.:.:.:.:.:.:/:.:.:.:.:.:.:.:.ー1
      .N:.:.Y:.:,;/:.:.::!:.:.:.:./:.:.:.:/:.:.:.:.:.:.:./:.:.:.イフ
     N:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:i!:.:.:.:〈r':.:.:.:/:.:.:.:.:.:.:` ーッ
    _ゝヾ:.:.:\:.:.:.:.:.:.:.:.:ゞ;.:.:.:ヾ:.:.:.:.:.:.//:.:.:.:.:.:く
    \:.:.:.:.:.:.:.:≧ミ:、、ミ;,v:.::.:.:.:.;; ≦;;,/:.ィ:.:.:.:.:.:>