Skip to content

Instantly share code, notes, and snippets.

View ericchaves's full-sized avatar

Eric Paschoalick Chaves ericchaves

View GitHub Profile
@ericchaves
ericchaves / compose.yml
Created September 27, 2024 13:03 — forked from HeneryH/compose.yml
Traefik and Zitadel
version: "3.3"
services:
traefik:
image: "traefik:v3.0"
container_name: "traefik"
command:
# Logging settings
- '--log=true'
@ericchaves
ericchaves / docker-compose.yaml
Created September 27, 2024 12:39 — forked from muhlemmer/docker-compose.yaml
zitadel with postgresql and pgadmin
version: '3.8'
services:
zitadel:
image: ghcr.io/zitadel/zitadel:${ZITADEL_VERSION:-latest}
command: start-from-init --masterkeyFromEnv --tlsMode disabled --config /config/zitadel.yaml
environment:
ZITADEL_MASTERKEY: ${ZITADEL_MASTERKEY:-MasterkeyNeedsToHave32Characters}
ZITADEL_SYSTEMDEFAULTS_PASSWORDHASHER_VERIFIERS: pbkdf2
restart: always
@ericchaves
ericchaves / private_fork.md
Created January 23, 2024 13:40 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@ericchaves
ericchaves / openrefine.desktop
Created April 5, 2023 11:54
openrefine.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/opt/openrefine-3.7.1/refine
Name=OpenRefine
Icon=/opt/openrefine-3.7.1/OpenRefine.png
@ericchaves
ericchaves / www.conf
Created July 28, 2018 02:12 — forked from drparham/www.conf
PHP FPM config t2.small
# t2.small
pm = dynamic
pm.max_children = 35
pm.start_servers = 6
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.max_requests = 300
# t2.medium
@ericchaves
ericchaves / WhatsApp.java
Created January 5, 2018 18:23 — forked from sjmach/WhatsApp.java
Sample fiile to test whatsapp installation on android device via Appium
package com.sundeepmachado;
import java.io.File;
import java.net.URL;
import junit.framework.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@ericchaves
ericchaves / simple-coroutine.js
Created December 10, 2017 21:32
Poor's man coroutine
/*
* Poor's man coroutine
*/
function co(g) {
return new Promise((resolve, reject)=>{
let it = g(), ret;
(function iterate(val){
ret = it.next(val)
if(ret.done) return resolve(val)
@ericchaves
ericchaves / data-enrichment.groovy
Created November 18, 2017 19:51
Simple NiFi InvokeScriptedProcessor to enhance JSON data by doing SQL lookups
import groovy.json.JsonBuilder
import groovy.json.JsonSlurper
import groovy.sql.Sql
import java.nio.charset.StandardCharsets
import org.apache.commons.io.IOUtils
import org.apache.nifi.annotation.behavior.EventDriven
import org.apache.nifi.annotation.documentation.CapabilityDescription
@ericchaves
ericchaves / Instalacao.md
Last active February 15, 2016 23:35
Instalando Arch Linux em um notebook Lenovo G50-80

Arch Linux - Lenovo G50-80 passo-a-passo

Geral

ATENÇÃO

Estas anotações NÃO compõem um script para ser executado, apesar de possuir comandos a ser executados. Use por sua conta e risco. São apenas anotações para meu próprio uso. Use por sua conta e risco. Este é um setup experimental. Use por sua conta e risco. Estes procedimentos irão apagar completamente as partições de seu disco. Use por sua conta e risco. NÃO siga estas instruções caso deseje montar um sistema com dual boot. Use por sua conta e risco.

@ericchaves
ericchaves / artboards.sketchpreset
Created November 29, 2015 14:26 — forked from cristianferrarig/artboards.sketchpreset
Custom Sketch Artboards Presets
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>name</key>
<string>Pages</string>
<key>presets</key>