This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Source script from : https://medium.com/linkbynet/cve-2021-44228-finding-log4j-vulnerable-k8s-pods-with-bash-trivy-caa10905744d | |
# Thanks to @rverchere | |
RED='\033[0;31m' | |
NC='\033[0m' | |
OLDIFS="$IFS" | |
IFS=$'\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build | |
build() { | |
case ${CI_COMMIT_REF_NAME} in | |
"master") | |
npm run build -- preprod | |
;; | |
"develop") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mkdir /home/public | |
sudo groupadd share | |
sudo chown -R root:share /home/public | |
sudo chmod ug+rwx -R /home/public | |
sudo chmod g+s /home/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go in a tmp folder | |
cd $(mktemp -d) | |
# Update and install dependencies | |
sudo apt-get update | |
sudo apt-get install libglib2.0-dev libpango1.0-dev libvte-dev libvte-2.91-dev dh-make-perl libgtk2.0-dev | |
# Extract and build gnome2 dependencies | |
sudo cpan -i ExtUtils::Depends | |
sudo cpan -i ExtUtils::PkgConfig |