Skip to content

Instantly share code, notes, and snippets.

View gbalbuena's full-sized avatar
🏕️

Gabriel gbalbuena

🏕️
View GitHub Profile
@gbalbuena
gbalbuena / Dockerfile
Created November 13, 2023 03:00
docker hello-world
FROM hello-world
@gbalbuena
gbalbuena / multiple_ssh_setting.md
Last active April 28, 2022 01:58 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

ssh-keygen -t ed25519 -C "your_email@example.com"

Keybase proof

I hereby claim:

  • I am gbalbuena on github.
  • I am gbalbuena (https://keybase.io/gbalbuena) on keybase.
  • I have a public key ASDw6ua0FXTVbZk1MHAu6AgDMtgPscDls6Qb6B-6eVSETgo

To claim this, I am signing this object:

@gbalbuena
gbalbuena / Makefile
Created August 7, 2020 03:48
Node makefile - for Makefile lovers who want to have a initial file - see more here https://github.com/gbalbuena/makefile-by-example
clean: ## Clean deps
@echo "Clean deps and artefacts"
@npm cache verify
install: ## Install dependencies
@echo "Installing Node dependencies"
@npm ci
start: ## Run in local
@echo "Run"
@gbalbuena
gbalbuena / requirements.txt
Created May 20, 2020 01:14
pytest mock example
pytest
pytest-mock
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
curl -X GET \
'http://retroachievements.org/dorequest.php?r=login&u=<$USERNAME>&p=<$PASSWORD>' \
-H 'Cache-Control: no-cache'
@gbalbuena
gbalbuena / Makefile
Created January 23, 2020 00:13
basic maven and makefile to compile build and test java projects
build:
docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 mvn clean package
test:
docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 mvn test
run:
docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 java -jar target/*.jar
.PHONY: build test run
@gbalbuena
gbalbuena / aws-sdk.js
Created October 30, 2019 05:53
jest aws mock __mock__ folder
class SQS {
getQueueAttributes() {
return this;
}
async promise() {
return;
}
}
module.exports = {