cd /var/jenkins_home
for dir_ls in $(ls); do
echo "${dir_ls}/branches"
for branch_ls in $(ls ${dir_ls}/branches); do
path_builds="${dir_ls}/branches/${branch_ls}/builds"
This file contains hidden or 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
################################################### | |
## | |
## Alertmanager YAML configuration for routing. | |
## | |
## Will route alerts with a code_owner label to the slack-code-owners receiver | |
## configured above, but will continue processing them to send to both a | |
## central Slack channel (slack-monitoring) and PagerDuty receivers | |
## (pd-warning and pd-critical) | |
## |
This file contains hidden or 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
# BootKube Deployment (FINAL): | |
## NEW INSTALLATIONS: | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y docker.io vim ethtool traceroute git build-essential lldpd | |
## Cleanup | |
sudo systemctl stop kubelet.service | |
sudo docker rm bootkube-render | |
sudo docker stop $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
sudo docker rm -f $(sudo docker ps -a | grep k8s| cut -c1-20 | xargs sudo docker stop) | |
sudo docker rm -f $(sudo docker ps -a | grep bootkube| cut -c1-20 | xargs sudo docker stop) |
This file contains hidden or 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
def to_positive(input): | |
if (input < 0): | |
input = input * -1 | |
return input | |
def to_negative(input): | |
if (input > 0): | |
input = input * -1 | |
return input |
This file contains hidden or 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
while true; do echo 1 > /sys/class/leds/$(ls /sys/class/leds/ | grep scrolllock)/brightness; sleep 0.1; done |
This file contains hidden or 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
<?php | |
// php check_password_admin_wordpress.php USER_PASSWORD WORDPRESS_DATABASE_USER WORDPRESS_DATABASE_PASSWORD MARIADB_HOST MARIADB_PORT_NUMBER WORDPRESS_DATABASE_NAME PATH_WP_INCLUDES | |
// UPDATE wp_users SET user_pass='$P$BB4kS2WrEJu4333566c15.' WHERE id=1; | |
// Arguments | |
var_dump($argv); | |
$password = $argv[1]; | |
$db_user = getenv($argv[2]); |
This file contains hidden or 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
<?php | |
// php check_password_admin_wordpress.php USER_PASSWORD WORDPRESS_DATABASE_USER WORDPRESS_DATABASE_PASSWORD MARIADB_HOST MARIADB_PORT_NUMBER WORDPRESS_DATABASE_NAME PATH_WP_INCLUDES | |
// Arguments | |
var_dump($argv); | |
$password = $argv[1]; | |
$db_user = getenv($argv[2]); | |
$db_pass = getenv($argv[3]); |
rm -rf ~/.minikube \
&& minikube delete -p kubevirt \
&& minikube config -p kubevirt set cpus 4 \
&& minikube config -p kubevirt set memory 8192 \
&& minikube config -p kubevirt set vm-driver kvm2 \
&& minikube delete
curl -LO https://storage.googleapis.com/minikube/releases/v0.30.0/docker-machine-driver-kvm2
chmod +x docker-machine-driver-kvm2
NewerOlder