Skip to content

Instantly share code, notes, and snippets.

View bennythejudge's full-sized avatar

Benedetto Lo Giudice bennythejudge

  • Luxembourg
  • 08:28 (UTC +02:00)
View GitHub Profile
@filipposc5
filipposc5 / uploading-to-pypi.md
Last active July 13, 2017 09:02
Uploading to pypi

Uploading to pypi

0. Before you start

Verify (in repo):

  • setup.py has been updated
  • CHANGELOG has been updated

1. Ensure credentials are there

(env)classy:bootstrap-cfn filippos$ cat ~/.pypirc
@solarce
solarce / getting_more_familiar_with_go_resources.md
Last active June 19, 2017 13:54
A list of resources for getting more familiar with Go

Getting more familiar with Go

@pjlsergeant
pjlsergeant / Wrong.pm
Created November 17, 2016 09:53
First few steps of porting `wrong` to Perl. This is stupid.
# `wrong` in Perl. https://github.com/sconover/wrong
#
#
=head1 SYNOPSIS
#!perl
use strict;
@so0k
so0k / kubectl.md
Last active August 12, 2026 19:59
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@initcron
initcron / jenkins_script_console.md
Last active September 5, 2025 12:00
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,

@yoramvandevelde
yoramvandevelde / pipefail_examples.sh
Created August 17, 2017 07:13
Examples of why pipefail is really important to use
#!/bin/bash
# author: Yoram van de Velde ( _@sp2.io )
# Examples of why pipefail is really important to use.
# We enable exit on error functionality
set -o errexit
# These commands will fail but not stop the script because of the pipes
# to succesfull commands. This works because error is output to stderr,
@mateobur
mateobur / CloudFormationTemplateOpenShift.yaml
Created January 23, 2018 22:19
CloudFormation Template OpenShift
AWSTemplateFormatVersion: '2010-09-09'
Metadata: {}
Parameters:
###########
KeyName:
Description: The EC2 Key Pair to allow SSH access to the instance
Type: 'AWS::EC2::KeyPair::KeyName'
AvailabilityZone:
Description: Availability zone to deploy
@vaibhavkumar-sf
vaibhavkumar-sf / docker-compose.yml
Created January 29, 2018 11:39
docker-compose.yml STATIC IP assignment to all containers of a docker
version: "2"
services:
varnish:
#hostname: magento2.docker
image: meanbee/magento2-varnish:latest
environment:
- VIRTUAL_HOST=magento2.docker
- VIRTUAL_PORT=80
- HTTPS_METHOD=noredirect
ports:
@davideschiera
davideschiera / readme.MD
Last active May 25, 2018 10:32
Sysdig Datasource Plugin for Grafana (beta)
@timja
timja / jenkins-dump-credentials.groovy
Last active April 26, 2026 17:33
Dump jenkins credentials - use in script console
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import org.jenkinsci.plugins.plaincredentials.impl.*
// def item = Jenkins.instance.getItem("your-folder")