Skip to content

Instantly share code, notes, and snippets.

View georgepaoli's full-sized avatar

George Paoli georgepaoli

View GitHub Profile
@georgepaoli
georgepaoli / README.md
Last active March 16, 2025 19:10
Install SAP GUI in Windows 10

Instructions

Download .ZIP from SAP using your partner credentials

https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=NEXT&HEADER=Y&FUNCTIONBAR=Y&EVENT=TREE&NE=NAVIGATE&ENR=01200245450100000473&V=INST&TA=ACTUAL/SAP%20GUI%20FOR%20WINDOWS

Extract 50144807_6.zip and execute (install all options)

PRES1\GUI\WINDOWS\Win32\SetupAll.exe

Install last patch (current gui750_09_1-80001468.exe)

@georgepaoli
georgepaoli / README.md
Last active February 7, 2019 13:21
Install Eclipse in Linux

Download

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2018-12/R/eclipse-inst-linux64.tar.gz

Extract

sudo tar -xvzf ~/Downloads/eclipse-inst-linux64.tar.gz
cd eclipse-installer/

Open Installer

@georgepaoli
georgepaoli / README.md
Last active February 22, 2019 17:03
Install SAP GUI for Java in Linux

Instructions

Download .ZIP from SAP using your partner credentials

https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=NEXT&HEADER=Y&FUNCTIONBAR=Y&EVENT=TREE&NE=NAVIGATE&ENR=01200245450100000474&V=INST&TA=ACTUAL/SAP%20GUI%20FOR%20JAVA

Extract 50144807_7.zip

cd <folder extract>/BD_NW_7.0_Presentation_7.50_Comp._2_/PRES2/GUI/JAVA

Install by Wizard

@georgepaoli
georgepaoli / test-communication-pods.sh
Created December 19, 2018 13:24
Test communication between pods
kubectl create ns test
kubectl run --namespace=test nginx --replicas=2 --image=nginx
kubectl expose --namespace=test deployment nginx --port=80
kubectl run --namespace=test access --rm -ti --image busybox /bin/sh
wget -q nginx -O -
@georgepaoli
georgepaoli / README.md
Last active December 21, 2018 16:39
Create k8s Cluster

Minimum requeriments

https://kubernetes.io/docs/setup/independent/install-kubeadm/#before-you-begin

Install docker 18.06 (version tested by k8s)

https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce

sudo su
apt-get update && apt-get install -y apt-transport-https ca-certificates curl software-properties-common    
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -

add-apt-repository "deb https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable"

@georgepaoli
georgepaoli / README.md
Last active November 26, 2020 00:26
Deploy Traefik in GKE
@georgepaoli
georgepaoli / GeradorCNPJ.cs
Created October 19, 2018 01:07
Gerador de CNPJ em C#
public static String GerarCnpj()
{
int soma = 0, resto = 0;
int[] multiplicador1 = new int[12] { 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 };
int[] multiplicador2 = new int[13] { 6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2 };
Random rnd = new Random();
string semente = rnd.Next(10000000, 99999999).ToString() + "0001";
for (int i = 0; i < 12; i++)
@georgepaoli
georgepaoli / GeradorCPF.cs
Last active January 31, 2023 16:15
Gerador de CPF em C#
// Fonte: https://pt.stackoverflow.com/a/33685/26670
public static String GerarCpf()
{
int soma = 0, resto = 0;
int[] multiplicador1 = new int[9] { 10, 9, 8, 7, 6, 5, 4, 3, 2 };
int[] multiplicador2 = new int[10] { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2 };
Random rnd = new Random();
string semente = rnd.Next(100000000, 999999999).ToString();
@georgepaoli
georgepaoli / jaeger-deploy-as-side-car.yml
Last active August 22, 2018 02:00
jaeger-deploy-as-side-car
apiVersion: v1
kind: List
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: myapp
spec:
selector:
matchLabels:
@georgepaoli
georgepaoli / install-rancher-ubuntu-16-amd64.sh
Created June 15, 2018 17:54
Install Rancher in Ubuntu with Docker 17.03.2
# Download docker 17.03.2 for ubuntu 16.04.1 amd64
sudo wget https://launchpad.net/ubuntu/+source/docker.io/17.03.2-0ubuntu1~16.04.1/+build/13757290/+files/docker.io_17.03.2-0ubuntu1~16.04.1_amd64.deb
# Install Docker
sudo dpkg -i ./docker.io_17.03.2-0ubuntu1~16.04.1_amd64.deb
# Install Rancher
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher