Skip to content

Instantly share code, notes, and snippets.

View dalmarcogd's full-sized avatar
🔪
coding

Guilherme Dalmarco dalmarcogd

🔪
coding
View GitHub Profile
@dalmarcogd
dalmarcogd / multiple_ssh_setting.md
Created April 9, 2024 22:11 — forked from carlosmcevilly/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github accounts

create different public key

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

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@dalmarcogd
dalmarcogd / csuemulator.go
Last active July 30, 2021 17:10
CSU Emulator with scenaries requests
import (
"context"
"errors"
"testing"
"github.com/google/go-cmp/cmp"
"go.uber.org/zap"
"github.com/hashlab/issuing-processor/internal/pbcsu"
"github.com/hashlab/issuing-processor/pkg/pbcommon"
@dalmarcogd
dalmarcogd / workspace_ubuntu_install.md
Created May 13, 2020 13:39 — forked from leemour/workspace_ubuntu_install.md
Install and Uninstall (remove) Amazon Workspaces on Linux (Ubuntu 18.04 LTS 64-bit) Wine (Wine64)
sudo apt-get --purge remove wine
sudo apt-get purge wine* ; sudo dpkg --purge wine*
sudo apt-get purge wine64 ; sudo dpkg --purge wine64
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
cd $HOME
rm -r .wine
@dalmarcogd
dalmarcogd / ubuntu_agnoster_install.md
Created April 27, 2020 00:02 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@dalmarcogd
dalmarcogd / deploy-gwa-auth-web.yaml
Last active November 24, 2018 18:32
Deploy GWA Auth
apiVersion: apps/v1
kind: Deployment
metadata:
name: gwa-auth
labels:
app: gwa-auth
spec:
selector:
matchLabels:
app: gwa-auth
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-24T15:56:24Z
generation: 1
labels:
run: gwa-auth-web
name: gwa-auth-web
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2018-11-24T15:56:24Z
generation: 1
labels:
run: gwa-auth-web
name: gwa-auth-web
@dalmarcogd
dalmarcogd / build.sh
Last active November 24, 2018 18:39
Build in GKE
if [$1 == ""]
then
echo "<APP> required!"
echo "deploy.sh <APP> <VERSION>"
exit
fi
if [$2 == ""]
then
echo "<VERSION> required!"
@dalmarcogd
dalmarcogd / configure_proxy_postgres_gke.sh
Created November 24, 2018 16:11
Configure Cloud Sql Proxy in GKE - PostgreSQL
# How to user
# configure_proxy_postgres_gke.sh <PATH_TO_KEY_FILE> <INSTANCE_CONNECTION_NAME>
if [$1 == ""]
then
echo "<PATH_TO_KEY_FILE required>!"
echo "configure_proxy_postgres_gke.sh <PATH_TO_KEY_FILE> <INSTANCE_CONNECTION_NAME>"
exit
fi
if [$2 == ""]
@dalmarcogd
dalmarcogd / redis-deployment.yaml
Last active November 24, 2018 14:24
Deploy Redis on GKE
apiVersion: v1
kind: Service
metadata:
name: redis
spec:
ports:
- port: 6379
name: redis
clusterIP: None
selector: