Skip to content

Instantly share code, notes, and snippets.

View bennythejudge's full-sized avatar

Benedetto Lo Giudice bennythejudge

View GitHub Profile
@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,

@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
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
@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;
@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

@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
@filipposc5
filipposc5 / Graphite-scrapbook.md
Last active November 20, 2015 08:48
Graphite Scrapbook

Line listeners

SHORT .. line listeners:
root@83d5eeeb3086:/opt/graphite/conf# grep -B1  LINE_RECEIVER carbon.conf

LINE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_PORT = 2003
--
@woloski
woloski / webtask-auth0.md
Last active September 13, 2016 11:00
webtask + auth0
wt create webtask.js --auth0

When browsing the webtask URL, the user will get a page with Lock. Once logged in, the result of the webtask will be shown.

@udacityandroid
udacityandroid / MainActivity.java
Created June 27, 2015 23:27
Android for Beginners : Menu Starter Code
package com.example.android.menu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
@udacityandroid
udacityandroid / TextView.java
Created June 15, 2015 18:23
Android for Beginners : Simplified TextView class
/**
* Displays text to the user.
*/
public class TextView extends View {
// String value
private String mText;
// Text color of the text
private int mTextColor;
@udacityandroid
udacityandroid / Option A
Last active February 7, 2023 13:27
Android Development for Beginners : Calculate the Price Method
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private int calculate price(int quantity {
int price = quantity * 5;
return price;
}