Skip to content

Instantly share code, notes, and snippets.

@mallikharjunrao
mallikharjunrao / bash-cheatsheet.sh
Created Sep 21, 2022 — forked from pbandreddy/bash-cheatsheet.sh
Bash CheatSheet for UNIX System
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@mallikharjunrao
mallikharjunrao / Jenkinsfile
Created Sep 13, 2022 — forked from Schadenfeude/Jenkinsfile
Example Jenkinsfile declarative pipeline for Android projects
View Jenkinsfile
pipeline {
agent {
// Run on a build agent where we have the Android SDK installed
label 'android'
}
environment {
// Fastlane Environment Variables
PATH = "$HOME/.fastlane/bin:" +
"$HOME/.rvm/gems/ruby-2.5.3/bin:" +
"$HOME/.rvm/gems/ruby-2.5.3@global/bin:" +
@mallikharjunrao
mallikharjunrao / update_curl.sh
Created Aug 24, 2017 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
View update_curl.sh
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2
tar -xvjf curl-7.50.2.tar.bz2
@mallikharjunrao
mallikharjunrao / check_docker_container.sh
Created Aug 22, 2017 — forked from ekristen/check_docker_container.sh
Bash Script for Nagios to Check Status of Docker Container
View check_docker_container.sh
#!/bin/bash
# Author: Erik Kristensen
# Email: erik@erikkristensen.com
# License: MIT
# Nagios Usage: check_nrpe!check_docker_container!_container_id_
# Usage: ./check_docker_container.sh _container_id_
#
# Depending on your docker configuration, root might be required. If your nrpe user has rights
# to talk to the docker daemon, then root is not required. This is why root privileges are not