Skip to content

Instantly share code, notes, and snippets.

View sbuvaneshkumar's full-sized avatar
🎯
Chasing dreams

Buvanesh Kumar sbuvaneshkumar

🎯
Chasing dreams
View GitHub Profile
@jwebcat
jwebcat / gist:5122366
Last active August 25, 2024 12:59 — forked from lemenkov/gist:1674929
Properly download from github using wget and curl
wget --no-check-certificate --content-disposition https://github.com/joyent/node/tarball/v0.7.1
# --no-check-cerftificate was necessary for me to have wget not puke about https
curl -LJO https://github.com/joyent/node/tarball/v0.7.1
@leoleozhu
leoleozhu / http-server.py
Created January 26, 2014 05:48
SimpleHTTPServer different port
#!/usr/bin/env python
import SimpleHTTPServer
import SocketServer
# minimal web server. serves files relative to the
# current directory.
PORT = 8080
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
@tobiisdesired
tobiisdesired / jenkins-notify.sh
Last active May 9, 2018 21:08
This is a simple bash script to monitor multiple Jenkins CI jobs for build failures. The script requires rsstail to be installed. Depending on your environment it is also possible to specify a notification command like /usr/bin/notify-send to show status updates directly on your desktop. Usage: ./jenkins-notify jenkins_url job_name...
#! /usr/bin/env bash
JENKINS_SERVER=${1}
shift
JOBS=$*
CHECK_INTERVAL=30
NOTIFY_CMD=
# NOTIFY_CMD=/usr/bin/notify-send
command -v rsstail >/dev/null 2>&1 || { echo >&2 "This script requires rsstail to be installed. See http://www.vanheusden.com/rsstail"; exit 1; }
@chinshr
chinshr / Jenkinsfile
Last active October 24, 2024 17:13
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@brandtg
brandtg / perf-tool.py
Last active March 19, 2024 22:58
A script that runs Netflix's "Linux Performance Analysis in 60,000 Milliseconds"
#!/usr/bin/env python3
#
# A script that runs the commands to perform Netflix's
# "Linux Performance Analysis in 60,000 Milliseconds"
#
# (http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html)
#
# First install Performance monitoring tools for Linux
# `apt install sysstat`
#
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active October 7, 2024 05:41
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@oifland
oifland / Jenkinsfile
Last active July 15, 2024 06:36
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {
@initcron
initcron / jenkins_script_console.md
Last active March 26, 2024 11:58
Jenkins Script Tutorial

Jenkins Script Console Tutorial

Jenkins script console allows one to run groovy scripts/code to automate jenkins setup e.g installing plugins, setting configuration parameters. These groovy scripts can be run either through the web ui, or event loaded as scripts using curl from command line. With these groovy scripts, jenkins configurations can be completely automated.

Lets explore this script console and learn how to write/load simple scripts.

Exploring script console

From the jenkins UI, choose Jenkins => Manage Jenkins => Script Console . You should see script console installed, in which run the following,

@merikan
merikan / Jenkinsfile
Last active November 4, 2024 08:05
Some Jenkinsfile examples
Some Jenkinsfile examples