Skip to content

Instantly share code, notes, and snippets.

View gmas's full-sized avatar

George Masgras gmas

  • Barcelona
  • 14:26 (UTC +02:00)
View GitHub Profile
@gmas
gmas / arch-linux-install
Created October 20, 2016 00:38 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
REPOS=['api-test','api-new-test']
for (repo in REPOS) {
repoName = "${repo} PROD"
repoSshUrl = "git@github.com:blah/${repo}.git"
// Create the job
job {
name "${repoName}"
scm {
@gmas
gmas / pedantically_commented_playbook.yml
Created July 21, 2016 21:54 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@gmas
gmas / elb_playbook
Created July 8, 2016 00:02
list vars
- name: Build ELB
local_action:
module: ec2_elb_lb
name: "{{ elb_name }}"
subnets: "{{ subnets }}"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTekueS0zH+dgkvBzyWWEzgB/6WotNtHNBb1TE4RmyJNUS5aS0pEh8R1eW89nX45i8Br0N+Rjl3VjiErqbJRX+X+nUTlSiVmyRoyc/2DC6aPcQ8Nyg34e3ElRkgfuMU5mCmKVFQSbPj0yhbNzrnDTZHEKLQlryp+B6ePF33OAM25xsnzrre2bDlJQzo6OkrOglqZSpupTJFpIzulmlpksB+aTB1bbIEqskNYbQIwSjQuLJ7Xy1192/qzxmmJQJjmeCJT/FdGY2G1tWhyAdAhMrFnNlf5nUZExiWtzDVfH5+OnUz7x22az+eMe5qKPhsE08M/U/UGJYBb1LGfGX3tdB george@george-XPS-13-9350
ALERT ELB_errors
IF sum(aws_elb_httpcode_elb_5_xx_sum) by (load_balancer_name) > 0
FOR 3m
LABELS { severity = "critical" }
ANNOTATIONS {
summary = "ELB {{$labels.load_balancer_name}} is returning 5xx errors",
description = "{{$labels.load_balancer_name}} of job {{$labels.job}} is erroring.",
render(): React.Element {
return (
<div className="span8 rightcontent">
<div className="row">
{ this.props.contents.length > 0 ?
this.props.contents.forEach((content) => {
<ContentsPendingItem {...content} />
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.665766252s) from=172.17.42.1:43574
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.878339625s) from=172.17.42.1:43734
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.665891733s) from=172.17.42.1:42686
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.878491804s) from=172.17.42.1:42966
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.666010429s) from=172.17.42.1:43112
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.878547846s) from=172.17.42.1:43735
2016/03/04 23:35:19 [DEBUG] http: Request GET /v1/health/service/uploader?index=2154766&stale=&wait=60000ms (1.666024295s) from=172.17.42.1:43576
20
https://fandango.mingle.thoughtworks.com/projects/all/cards/grid?aggregate_property[column]=story+points&aggregate_type[column]=sum&color_by=scheduled+for&favorite_id=9701&filters[]=[Type][is][Story]&filters[]=[Type][is][Defect]&filters[]=[Sprint][is][12]&filters[]=[Squad][is][MrRobot]&group_by[lane]=card+status&lanes=Blocked%2CSprint+Backlog%2CIn+Development%2CDone%2CCode+Review&tab=All
http://backstage-dev-grafana-699652618.us-west-2.elb.amazonaws.com/dashboard/db/overview