Skip to content

Instantly share code, notes, and snippets.

View mv's full-sized avatar

Marcus Vinicius Ferreira mv

View GitHub Profile
# Use CDROM installation media
cdrom
# Network information
network --bootproto=dhcp --device=p2p1 --ipv6=auto --activate
network --hostname=fedora20.local
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
@mv
mv / pipeline-schedule.rb
Last active August 29, 2015 13:58
GitHub webhook integrating to ThoughtWorks Go Server
#!/usr/bin/ruby
#
# A very simple CGI script to receive a Github webhook and
# send to a 'ThoughtWorks Go Server'
#
# Usage:
# Github Webhooks / Manage webhook
# Payload URL:
# http://your-url.example.com/go/pipeline-schedure.rb
#
#!/usr/bin/env python
import hashlib
import optparse
import paramiko
from Crypto.PublicKey import RSA
def insert_char_every_n_chars(string, char='\n', every=64):
return char.join(

Keybase proof

I hereby claim:

  • I am mv on github.
  • I am mv (https://keybase.io/mv) on keybase.
  • I have a public key whose fingerprint is 90F3 F0C7 54DC B389 C044 D233 8588 A723 DE7E DC58

To claim this, I am signing this object:

============================================ System Operations Engineer @ Dinda.com.br/Baby.com.br

Manage an infrastructure that is impossible to outgrow!

Your responsibilities

Enjoy the DevOps lifestyle; automate everything. Have fun scripting as well as programming.

@mv
mv / zookeeper-init.sh
Created December 3, 2013 19:02
Wip....
#!/bin/sh
#
# zookeeper
#
# Author: Marcus Vinicius Ferreira, <[email protected]>
#
# chkconfig: 2345 98 02
# description: Zookeeper is a high-performance coordination service for
# distributed applications
# processname: monit
@mv
mv / zookeeper.sh
Created December 3, 2013 19:01
Wip.
#!/bin/sh
#
# zookeeper.sh
#
# Author: Marcus Vinicius Ferreira, <[email protected]>
#
###
### defaults
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Core ec2 example: http://coreos.com/docs/ec2/",
"Parameters": {
"InstanceType" : {
"Description" : "EC2 instance type",
"Type" : "String",
"Default" : "t1.micro",
"AllowedValues" : [ "t1.micro","m1.small","m1.medium","m1.large","m1.xlarge", "m3.xlarge", "m3.2xlarge", "m2.xlarge","m2.2xlarge","m2.4xlarge","c1.medium","c1.xlarge","cc1.4xlarge","cc2.8xlarge","cg1.4xlarge", "hi1.4xlarge", "hs1.8xlarge"],
@mv
mv / aws-config.rb
Created June 26, 2013 00:46
AWS: Config
require 'pp'
require 'awesome_print'
require 'aws-sdk'
AWS.config(
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'],
:region => 'sa-east-1'
)
@mv
mv / aws-r53.rb
Created June 26, 2013 00:45
AWS: Route53
require 'aws-sdk'
require 'pp'
require 'awesome_print'
AWS.config(
:access_key_id => ENV['AWS_ACCESS_KEY_ID'],
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY'],
:region => 'sa-east-1'
)