Skip to content

Instantly share code, notes, and snippets.

Leandro Franciscato LeandroFranciscato

Block or report user

Report or block LeandroFranciscato

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LeandroFranciscato
LeandroFranciscato / installNode.sh
Created Aug 15, 2018
A little bash that install node in a .deb distro
View installNode.sh
#!/bin/bash
echo "Instalando Curl..."
sudo apt install -y curl
if ! curl --version
then
echo "Problemas durante a instalação do Curl..."
exit 1
fi
@LeandroFranciscato
LeandroFranciscato / installDocker.sh
Last active Aug 15, 2018
A little bash that install Docker in .deb linux. For jessie and above.
View installDocker.sh
#!/bin/bash
echo "Removendo versoes pre-existentes... "
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
@LeandroFranciscato
LeandroFranciscato / keySSH.sh
Created Aug 17, 2018
SImple way to generate a ssh key between server and client
View keySSH.sh
# Every action mus happen from client-side command line
ssh-keygen -t rsa
ssh serverUser@serverIP mkdir -p .ssh
cat ~/.ssh/id_rsa.pub | ssh serverUser@serverIP 'cat >> .ssh/authorized_keys'
ssh-add
# finally
ssh serverUser@serverIP
@LeandroFranciscato
LeandroFranciscato / .gitlab-ci-JAVA.yml
Last active Aug 17, 2018
Yml utilizado para Build e Deploy de um Projeto java (jar)
View .gitlab-ci-JAVA.yml
image: JAVA:latest
before_script:
- /home/leandro/netbeans-8.2/java/maven/bin/mvn clean install
after_script:
stages:
- build_deploy_dev
- build_deploy_production
@LeandroFranciscato
LeandroFranciscato / Vpn-SshTunnel.md
Last active Aug 28, 2018
Making a vpn using ssh tunnel
View Vpn-SshTunnel.md

On Server Side

First edit "/etc/ssh/sshd_config"

PermitTunnel yes 
PermitRootLogin = yes

Restart server

@LeandroFranciscato
LeandroFranciscato / systemback.md
Last active Sep 5, 2018
Creating your own iso with Systemback
View systemback.md

Creating your own iso with Systemback

Installing Systemback on your system

sudo apt-add-repository ppa:nemh/systemback
sudo apt-get update
sudo apt-get install systemback

After the installing process, open the App and select Live System Create option.

You can’t perform that action at this time.