Skip to content

Instantly share code, notes, and snippets.

View marcel-dias's full-sized avatar
😎

Marcel Dias marcel-dias

😎
  • Barcelona, Spain
View GitHub Profile

Jez Humble: 21st Century Software Delivery (ToughWorks) Slides

  • Deploy imperceptível

  • Especifique o necessário, quando necessário

  • Faça testes A/B

  • Mostre os protótipos para usuários reais

@marcel-dias
marcel-dias / install_chrome.sh
Created December 5, 2013 17:43
Chrome install para RHEL 6.5 Este é um arquivo install_chrome.sh pego em http://chrome.richardlloyd.org.uk/ e alterado para baixar as dependências arquivadas do Fedora 15. This is a install_chrome.sh file dowloaded from http://chrome.richardlloyd.org.uk/ and updated to download dep libraries from archives of Fedora 15.
#! /bin/bash
# Google Chrome Installer/Uninstaller for CentOS 6
# (C) Richard K. Lloyd 2013 <rklloyd@gmail.com>
# See http://chrome.richardlloyd.org.uk/ for further details.
# This script is in the public domain and has no warranty.
# It needs to be run as root because it installs/uninstalls RPMs.
# Minimum system requirements:
@marcel-dias
marcel-dias / IRPF2014_MacOSX.sh
Created March 10, 2014 04:35
Se você está tendo problemas para executar o programa de elaboração da sua declaração de IRPF no Mac OSX, você pode utilizar este script para executá-lo. Para correta execução este script deve esta no diretório /Applications/ProgramasRFB/IRPF2014/IRPF2014.app/Contents/Resources/Java ou no equivalente de sua instalação.
#!/bin/sh
classpath="commons-beanutils-1.7.jar"
classpath="$classpath:commons-collections-3.2.1.jar"
classpath="$classpath:commons-digester-1.8.jar"
classpath="$classpath:commons-io-2.4.jar"
classpath="$classpath:commons-logging-1.0.2.jar"
classpath="$classpath:forms-1.0.3.jar"
classpath="$classpath:foxtrot.jar"
classpath="$classpath:freesans.jar"
@marcel-dias
marcel-dias / IsFirstLetterUpperCaseTest.java
Created June 12, 2015 02:01
IsFirstLetterUpperCaseTest
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.CoreMatchers.is;
public class IsFirstLetterUpperCaseTest {
@Test
public void testNullIsFirstLetterUpperCase() {
assertThat(Boolean.FALSE, is(isFirstLetterUpperCase(null)));

Keybase proof

I hereby claim:

  • I am marcel-dias on github.
  • I am marceldias (https://keybase.io/marceldias) on keybase.
  • I have a public key whose fingerprint is 384E EAEA 3AA4 2EBF B258 A26D 48BD E20A EE37 1BE4

To claim this, I am signing this object:

@marcel-dias
marcel-dias / ParseSample.java
Last active March 31, 2024 15:14
SnakeYAML Parse Example
package com.marceldias.mars.yaml;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import org.yaml.snakeyaml.TypeDescription;
import org.yaml.snakeyaml.Yaml;
@marcel-dias
marcel-dias / component.yaml
Created March 20, 2020 21:33
Fabrikate disable subcomponent stack example
name: my-stack
type: component
subcomponents:
- name: pod-info
type: helm
method: git
source: https://github.com/stefanprodan/podinfo
path: charts/podinfo
- name: elasticsearch
type: helm
@marcel-dias
marcel-dias / Jenkinsfile
Created August 11, 2020 23:04
jenkinsfile-changed-files
@NonCPS
String getChangedFiles() {
changedFiles = []
for (changeLogSet in currentBuild.changeSets) {
for (entry in changeLogSet.getItems()) {
for (file in entry.getAffectedFiles()) {
changedFiles.add(file.getPath())
}
}
}