Skip to content

Instantly share code, notes, and snippets.

@Java4all
Java4all / gist:f5032a0aac9c5aff1cea96ad9fa7ddd5
Created July 9, 2025 07:01
What is plugins in Jenkins?
1. What Is a Plugin in Jenkins?
A Jenkins plugin is a self-contained Java archive (.hpi or .jpi file) that extends Jenkins' core functionality. Plugins allow Jenkins to integrate with tools like Git, Docker, Maven, Slack, and even custom steps in your pipeline.
They’re the backbone of Jenkins’ flexibility — you can add build triggers, post-build actions, UI elements, pipeline steps, and more.
2. Where Are Plugins Stored?
Jenkins stores plugins in the following location on the controller (master) node:
$JENKINS_HOME/plugins/
Each plugin is stored as a .jpi or .hpi file.
@Java4all
Java4all / gist:9699bc1f421e4000956f322e3f29124e
Last active July 9, 2025 06:51
Jenkins plugins management options
1. Jenkins Plugin Manager CLI
The Jenkins Plugin Manager CLI (jenkins-plugin-manager) is officially recommended, modern, and robust:
- Better dependency resolution.
- Officially supported by Jenkins.
- YAML-based plugin configuration.
2. Step-by-step Automation Guide:
@Java4all
Java4all / upload-to-azure.sh
Created December 6, 2021 20:39 — forked from rtyler/upload-to-azure.sh
A bash script which supports uploading blobs to Azure Storage: ./upload-to-azure.sh [filename]
#!/usr/bin/env bash
FILENAME=${1}
# expected to be defined in the environment
# - AZURE_STORAGE_ACCOUNT
# - AZURE_CONTAINER_NAME
# - AZURE_ACCESS_KEY
# inspired by
@Java4all
Java4all / string-and-filename-manipulation.ps1
Created December 6, 2021 20:38 — forked from 45413/string-and-filename-manipulation.ps1
Powershell String and Filename Manipulation
# Working with a [System.IO.FileInfo] Object
## Get file object into variable
PS C:\DATA> $file = Get-ChildItem C:\DATA\test.xls
## Full path name
PS C:\DATA> $file.FullName
C:\DATA\test.xls
## Filename including extension
PS C:\DATA> $file.Name
@Java4all
Java4all / install-docker.md
Last active January 10, 2020 22:09 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install - AWS Linux 2 AMI

sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
@Java4all
Java4all / strigo-deploy-dev-env.sh
Created July 18, 2019 20:03 — forked from nir0s/strigo-deploy-dev-env.sh
Strigo's Development Environment Provisioning Script
#!/usr/bin/env bash
###
# The script uses CFN to provision a Target Group in the app-dev ALB, and creates
# an instance behind that target group, after which it attaches two host-header
# based rules to the HTTP/HTTPS listeners which target the newly created target group.
# After the stack is up, it installs the relevant Strigo app, ssc and job-worker builds
# on it for the relevant branch.
#
# NOTE: AWS_DEFAULT_REGION, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set prior to running this.
@Java4all
Java4all / configure_queues.sh
Created July 9, 2019 06:41 — forked from fforbeck/configure_queues.sh
RabbitMQ - Command Line Setup. Create queue, bindings, exchanges with rabbitmqadmin and rabbitmqctl
#!/usr/bin/env bash
URL="http://localhost:15672/cli/rabbitmqadmin"
VHOST="<>"
USER="<>"
PWD="<>"
QUEUE="<>"
FAILED_QUEUE="<>"

Introduction

So HAProxy is primalery a load balancer an proxy for TCP and HTTP. But it may act as a traffic regulator. It may also be used as a protection against DDoS and service abuse, by maintening a wide variety of statistics (IP, URL, cookie) and when abuse is happening, action as denying, redirecting to other backend may undertaken ([haproxy ddos config], [haproxy ddos])