Skip to content

Instantly share code, notes, and snippets.

View eh-am's full-sized avatar
🏔️
memento mori

eduardo aleixo eh-am

🏔️
memento mori
  • Lisbon, Portugal
View GitHub Profile
@eh-am
eh-am / README.md
Last active January 6, 2020 20:19
terraform learnings
Error: error using credentials to get account ID: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Signature expired: 20191211T15
1610Z is now earlier than 20191211T160159Z (20191211T161659Z - 15 min.)                                                                     
        status code: 403, request id: a86a37c9-1c31-11ea-a958-0d2bb1a6cbbd  

https://serverfault.com/a/842343 tldr: it happened due to my system clock being "wrong" (i manually disabled auto sync since brazil lack of daylight saving in 2019 seems to not have been pushed to my OS [lack investigation])

@eh-am
eh-am / wanikani-self-study-mobile.js
Last active October 5, 2019 02:38
wanikani-self-study-mobile.js
// ==UserScript==
// @name Wanikani Self-Study Mobile
// @namespace http://tampermonkey.net/
// @version 0.1
// @description improve mobile support for wanikani self-study
// @author eh-am
// @match *://*.wanikani.com/*
// @grant GM_addStyle
// @downloadURL https://gist.githubusercontent.com/eh-am/4335ebaabe925821f61d63932f4b7e72/raw/a3dac61e8850b9f076827ac6e125b14fcb878d07/wanikani-self-study-mobile.js
// @updateURL https://gist.githubusercontent.com/eh-am/4335ebaabe925821f61d63932f4b7e72/raw/a3dac61e8850b9f076827ac6e125b14fcb878d07/wanikani-self-study-mobile.js
@eh-am
eh-am / coisas-que-me-irritam.md
Created October 5, 2019 00:11
coisas que me irritam

padrão do bitbucket é colocar no clipboard git clone $repo e do github é só $repo

qntas vezes já não escrevi git clone git clone $repo

@eh-am
eh-am / readme.md
Last active July 16, 2019 20:36
elm learnings
@eh-am
eh-am / README.md
Last active April 6, 2019 23:39
go learning

testing

use want and got and maybe arg for variables

use TestMain to setup/teardown

@eh-am
eh-am / readme.md
Last active October 7, 2019 22:15
ckad preparation

pods

Check how many containers there are

kubectl get pods webapp -o json | jq '.["spec"]["containers"]' | jq length

check what are their names

kubectl get pods webapp -o json | jq '.["spec"]["containers"][]["image"]'

@eh-am
eh-am / poll.MD
Created February 6, 2019 19:32
Jenkins JOB DSL poll scm
          pipelineJob('my_project') {
		        triggers{
              scm('H/5 * * * *')
            }

            definition {
              cpsScm { 
                scm { 
 git { 
@eh-am
eh-am / README.md
Last active January 8, 2019 17:20
k8s learnings