Skip to content

Instantly share code, notes, and snippets.

View alisterlf's full-sized avatar
👋

Álister Lopes Ferreira alisterlf

👋
View GitHub Profile
@alisterlf
alisterlf / vpn
Last active October 21, 2022 16:58
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
sudo apt-get update
sudo apt install curl
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
sudo curl -L -o "./teams.deb" "https://teams.microsoft.com/downloads/desktopurl?env=production&plat=linux&arch=x64&download=true&linuxArchiveType=deb"
@alisterlf
alisterlf / cpf-cnpj.utils.spec.ts
Last active August 13, 2021 00:47
Validador e formatador de CPF e CNPJ com Typescript
import { CpfCnpjUtils } from './cpf-cnpj.utils';
describe('Cpf and Cnpj Utils', () => {
describe('Cpf', () => {
describe('format', () => {
it('Should return CPF with dots and dash', () => {
expect(CpfCnpjUtils.formatCpf('13768663663')).toBe('137.686.636-63');
});
});
it('Should return false to an empty string', () => {
{"basics":{"name":"Álister Lopes Ferreira","birthdate":"1987-02-21","label":"Desenvolvedor Front-end","image":"https://lh6.googleusercontent.com/-0akyozFsi68/AAAAAAAAAAI/AAAAAAABf84/QY_UrTzuwCg/photo.jpg","email":"alisterlf@gmail.com","phone":"+ 55 11 94066-9730","url":"https://alister.dev","summary":"Em 2001 fiz um curso de HTML e CSS, esse foi o início do meu interesse pela área. Em 2004 foi ao ar meu primeiro site, que foi o site institucional da escola em que eu estudava e era coordenador da sala de informática. Em 2006 fiz dois sites, um institucional e outro da radioweb da empresa onde trabalhava como suporte infraestrutura. Em 2008 iniciei minha carreira como Front-end e trabalho especificamente com JavaScript desde 2009. Nesse tempo trabalhei com as principais tecnologias do mercado. Tenho experiência com desenvolvimento e coordenação de equipes. Estudo, pesquiso e tenho muito interesse por novas tecnologias e procuro sempre utilizar as versões mais recentes. Desenvolvo usando o Angular desde 2014.","
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Álister Lopes Ferreira",
"label": "Software engineer",
"image": "",
"email": "alisterlf@gmail.com",
"phone": "+55 11 940669730",
"url": "https://alister.dev",
"summary": "In 2001 I took a HTML and CSS course, this was the beginning of my interest for, what later on, would became my carrer. 2004 was the year that my first institucional website went online, It was my former school's first website. In 2006 I developed two websites, one institutional and one for the radioweb of the company I worked as infrastructure support. My carrer as Fron-end began in 2008, since 2009 I work specifically with Javascript. Through those years I worked with the main technologies available for web development and also had a experience as team coordinator. I keep on studying and updating my knowledge and skills based on all new technologies. Since 2014 I use Angular as my main framework
@alisterlf
alisterlf / cloudSettings
Last active April 9, 2020 22:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-04-09T22:39:55.371Z","extensionVersion":"v3.4.3"}
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
sudo apt-get update
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash
nvm install stable
gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true
@alisterlf
alisterlf / input-radio-checkbox.scss
Last active November 23, 2017 15:49
Creating Custom Checkboxes and Radio Buttons with Just CSS!
$base-color: #CCC;
$base-alpha: 0.5;
$dark-base-color: darken($base-color, 20%);
$light-base-color: lighten($base-color, 30%);
$input-size: 20px;
$background-color: lighten($base-color, 10%);
$background-color-hover: darken($base-color, 10%);
$background-color-checked: $base-color;
$border-color: lighten($dark-base-color, 5%);
$border-color-hover: darken($dark-base-color, 5%);
@alisterlf
alisterlf / gist:3490957
Created August 27, 2012 18:10
JAVASCRIPT:Remove Accents
function RemoveAccents(strAccents) {
var strAccents = strAccents.split('');
var strAccentsOut = new Array();
var strAccentsLen = strAccents.length;
var accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž';
var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz";
for (var y = 0; y < strAccentsLen; y++) {
if (accents.indexOf(strAccents[y]) != -1) {
strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1);
} else