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
#! /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() {
@marcingrzejszczak
marcingrzejszczak / Dockerfile
Last active August 29, 2015 14:05
Dockerfile - debian with python
FROM tutum/debian:wheezy
# Install packages
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install python python-apt man less vim cowsay curl wget
RUN export LANGUAGE=en_US.UTF-8
RUN export LANG=en_US.UTF-8
RUN export LC_ALL=en_US.UTF-8
#RUN dpkg-reconfigure locales
#RUN locale-gen en_US.UTF-8

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

# 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
@marcingrzejszczak
marcingrzejszczak / gist:6c8067edae50e82db322
Created February 17, 2015 16:39
Calling assertion block from where
class AssertionFromWhereSpec extends Specification {
def 'should execute closure from where'() {
given:
Dupa dupa = Mock()
Cyce cyce = new Cyce(dupa)
when:
cyce.asd()
then:
@marcingrzejszczak
marcingrzejszczak / test_related_books
Created April 2, 2015 05:57
Read these books :)
Gradle
- Ensure that you have Gradle downloaded and on your path
Spring.IO
- Go to http://start.spring.io/
- click all cloud stuff
- to the left pick Gradle
- gradle clean build
- import it to Intellij
@marcingrzejszczak
marcingrzejszczak / bootstrap.yaml
Created May 6, 2015 18:32
Another thing that works with Turbine ;)
turbine:
appConfig: app-name
aggregator:
clusterConfig: APP-NAME
```
io.codearte.accurest.dsl.GroovyDsl.make {
request {
method """PUT"""
url """/fraudcheck"""
body("""
{
"clientPesel":"${value(client(regex('[0-9]{10}')), server('1234567890'))}",
"loanAmount":99999}
"""
@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 :