Skip to content

Instantly share code, notes, and snippets.

View johnjonathan's full-sized avatar
👨‍💻
coding

John Silva johnjonathan

👨‍💻
coding
View GitHub Profile
@johnjonathan
johnjonathan / netvirtua_netcombo-config-ssh.md
Created November 23, 2018 01:24 — forked from mr4torr/netvirtua_netcombo-config-ssh.md
NET não libera a porta 22 e impede de acessar por ssh github/bitbucket

Usar ssh do github e do bitbucket com wifi do netcombo /netvirtua

A NET só libera o uso de qualquer porta, como a porta 22 de ssh, para pessoa jurídica em seus novos planos (desde 2016).

Para conseguir usar o github ou bitbucket por ssh com plano de internet da NET para pessoa física, é necessário:

Criar o arquivo ~/.ssh/config e adicionar:

Host github.com
@johnjonathan
johnjonathan / terminal-git-branch-name.md
Created May 23, 2018 01:09 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@johnjonathan
johnjonathan / Jenkinsfile
Created July 24, 2017 19:29 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static