Skip to content

Instantly share code, notes, and snippets.

View dalmosantos's full-sized avatar

Dalmo Santos dalmosantos

View GitHub Profile
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@kydouglas
kydouglas / elk.sh
Last active December 12, 2023 12:58 — forked from abhishektomar/elk.sh
Bash Script to Install Elastic Search, Logstash and Kibana
#!/bin/bash
#ONE LINE
#sudo wget -Nnv 'https://gist.githubusercontent.com/kydouglas/1f68d69e856fd6d7dc223f8e1f5ae3b3/raw/f8c3b22b9d9c41093150b96c815776956b523d9d/elk.sh' && bash elk.sh && rm -f elk.sh
# Checking whether user has enough permission to run this script
sudo -n true
if [ $? -ne 0 ]
then
echo "This script requires user to have passwordless sudo access"
pipeline {
// run on jenkins nodes tha has java 8 label
agent { label 'java8' }
// global env variables
environment {
EMAIL_RECIPIENTS = 'mahmoud.romeh@test.com'
}
stages {
stage('Build with unit testing') {
@merikan
merikan / Jenkinsfile
Last active February 23, 2026 04:17
Some Jenkinsfile examples
Some Jenkinsfile examples
@danielepolencic
danielepolencic / README.md
Last active February 26, 2026 10:28
Create 3 nodes Kubernetes cluster locally with Vagrant

3 Virtual Machines Kubernetes cluster

Dependencies

You should install VirtualBox and Vagrant before you start.

Creating the cluster

You should create a Vagrantfile in an empty directory with the following content:

@ArtBIT
ArtBIT / thou shall not pusg merge commits.txt
Last active March 25, 2025 02:25
PUSH REJECTED BY EVIL DRAGON BUREAUCRATS
+---------------------------------------------------------------+
| * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * |
+---------------------------------------------------------------+
\
\ ^ /^
\ / \ // \
\ |\___/| / \// .\
\ /V V \__ / // | \ \ *----*
/ / \/_/ // | \ \ \ |
@___@` \/_ // | \ \ \/\ \
@mhiro2
mhiro2 / Vagrantfile
Last active January 2, 2021 18:45
CentOS k8s cluster with vagrant-libvirt
# -*- mode: ruby -*-
# vi: set ft=ruby :
$master_cpus = 2
$master_memory = 2048
$num_workers = 3
$worker_cpus = 4
$worker_memory = 4096
$common_script = <<-SCRIPT
@crypticmind
crypticmind / README.md
Last active August 23, 2025 10:36
Setup lambda + API Gateway using localstack
@jrichardsz
jrichardsz / Jenkinsfile
Created September 7, 2018 04:39 — forked from HarshadRanganathan/Jenkinsfile
Jenkins Declarative Pipeline Example
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@jrichardsz
jrichardsz / jenkins.example.com.conf
Created September 8, 2018 16:27 — forked from ofus/jenkins.example.com.conf
How To Configure Apache with SSL as a Reverse Proxy for Jenkins https
<VirtualHost *:80>
ServerName jenkins.example.com
ServerAdmin webmaster@example.com
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>