Skip to content

Instantly share code, notes, and snippets.

View marcingrzejszczak's full-sized avatar
🌴
PTO till May 6th 2024

Marcin Grzejszczak marcingrzejszczak

🌴
PTO till May 6th 2024
View GitHub Profile
@marcingrzejszczak
marcingrzejszczak / clone-all-twitter-github-repos.sh
Last active September 5, 2015 20:00 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@marcingrzejszczak
marcingrzejszczak / jenkins-plugins-batch-install.md
Last active September 2, 2015 15:53 — forked from hgomez/jenkins-plugins-batch-install.md
Mass install/update of Jenkins Plugins

Scripted Jenkins Plugins install

Jenkins has a very rich catalog of plugins and it's quite easy to install and update them via UI. BTW, when you want to add tons of plugin via UI, it's a fairly long and boring procedure.

Hopefully, mass installation (or update) could be easy using a simple bash script (curl/python required) :

Create a file containing plugins to be installed (or updated), ie iplugins :

# Ansible playbook to install Java 7 on Debian
#
# Thanks to http://www.sysadminslife.com/linux/howto-oracle-sun-java-7-installation-unter-debian-6-squeeze/
#
# Author: Gabriel Birke <gb@birke-software.de>
- hosts: devroot
vars:
java_download: http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-x64.tar.gz
java_name: jdk1.7.0_45

This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.

I (mostly) followed the steps shown in the EZUnix wiki

And I also referred back to this gist by Michael Grace

#! /bin/bash
#
# 1) You need to "sudo apt-get install python-setuptools ruby ruby-dev" (otherwise fpm fails)
# This script needs "fpm". If you dont have it,
# 2) run "sudo gem install fpm"
#
clean() {