Skip to content

Instantly share code, notes, and snippets.

View neduma's full-sized avatar

Nedumaran Rajagopal neduma

View GitHub Profile
@micw
micw / install_jenkins_plugin.sh
Last active August 11, 2023 06:14
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins
@bjallen
bjallen / main.yml
Created September 10, 2014 21:13
ansible mysql percona task
---
- name: Add Percona apt signing key
sudo: yes
apt_key: keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A state=present
- name: Add Percona repository
sudo: yes
apt_repository: repo='deb http://repo.percona.com/apt trusty main' state=present
- name: Add Percona source repository
@wdullaer
wdullaer / install.sh
Last active April 3, 2025 19:08
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Create and assign an IAM Policy to an existing group to allow users to manage their own credentials and MFA.",
"Parameters": {
"Group": {
"Description": "Assign the IAM policy to an existing group",
"Type": "String"
}
},
"Resources": {
@staltz
staltz / introrx.md
Last active June 28, 2025 13:44
The introduction to Reactive Programming you've been missing
@brson
brson / gist:9dec4195a88066fa42e6
Last active June 26, 2025 11:11
A Rust Syntax Guide

A Guide to Rust Syntax

A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.

This was written in 2014. It is not a good reference for Rust today, though the content is still correct.

cheats.rs looks like a good alternative.

Assert macro

@tristanfisher
tristanfisher / Ansible-Vault how-to.md
Last active May 27, 2025 10:11
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.

Working with ansible-vault


I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

@oroce
oroce / README.md
Created June 12, 2014 07:51
nginx request id
@alkar
alkar / VyOS on EC2
Created June 6, 2014 15:04
Setting up a VyOS EC2 instance to connect two VPCs
interfaces {
vti vti0 {
address <CGW_INTERNAL_IP_A>/30
description "VPC Tunnel A"
mtu 1436
}
vti vti1 {
address <CGW_INTERNAL_IP_B>/30
description "VPC Tunnel B"
mtu 1436

FIRST THINGS FIRST Resist the temptation to buy the first bike you see. Look at a few of them to get a better idea of the used bike market/options before you buy one. Bring a friend to help you stick to your guns, or to help you load your new bikes onto a truck, or as ballast in case the bike has a centerstand and you wish to inspect the front wheel. Bike-savvy friends may also notice things that you forgot to check. Make sure they also read this guide ahead of time. Bring a flashlight to aid inspection. Even in daylight. Request that the owner not have the bike warmed up when you get there, but tell him/her to make sure that the bike will start. If the owner asks why, tell them that you want to test the bike's ability to start when cold. (It's a lot easier for engines to start when pre-warmed.) You needn't follow these instructions in any particular order, or even follow them at all, but if you are going to read them, you should probably do so before you get to the seller's house. If you're new to motorcycli