Skip to content

Instantly share code, notes, and snippets.

View leydson-vieira's full-sized avatar
🦖
RawR

Leydson Vieira leydson-vieira

🦖
RawR
View GitHub Profile
@leydson-vieira
leydson-vieira / generate-ssh-key.sh
Created April 12, 2019 14:00 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@leydson-vieira
leydson-vieira / regexCheatsheet.js
Created January 15, 2019 01:43 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@leydson-vieira
leydson-vieira / vTigerBot.py
Created August 8, 2018 19:36 — forked from lsabiao/vTigerBot.py
Cansado de timeout no vTiger? você achou sua solução! Esse script printa o conteúdo das tarefas abertdas do desenvolvimento no seu console.
import requests
from bs4 import BeautifulSoup
from colorama import init,Fore,Back,Style
import sys
init()
class Chamado:
idGlobal = 1
def __init__(self):
self.id = Chamado.idGlobal