Skip to content

Instantly share code, notes, and snippets.


Leandro Alexandrino leandrino

View GitHub Profile
leandrino /
Created Feb 12, 2019 — forked from mr4torr/
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:

leandrino /
Created Feb 6, 2019 — forked from subfuzion/
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

View animated-svg-avatar.markdown

Animated SVG Avatar

Created a login form with an SVG avatar that responds to the input in the email field. Used the GSAP TweenMax library + GSAP's MorphSVG plugin for the animating.

Email validation is very simple and crude just for the purposes of getting this prototype working.

A Pen by Darin on CodePen.


View .vimrc
:if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
call plug#begin('~/.vim/plgn')
Plug 'valloric/youcompleteme'
Plug 'marijnh/tern_for_vim', { 'do': 'npm install && python3 --clang-completer' }
leandrino / useHotkeys.ts
Created Dec 11, 2018 — forked from pedronauck/useHotkeys.ts
usePopper and useHotkeys hooks
View useHotkeys.ts
import { useEffect } from 'react'
import hotkeys from 'hotkeys-js'
export const useHotkeys = (key: string, cb: () => any, inputs?: any[]) => {
useEffect(() => {
hotkeys(key, cb)
return () => hotkeys.unbind(key)
}, inputs)
leandrino / Dockerfile.development
Created Nov 5, 2018
Basic Docker Development Environment
View Dockerfile.development
FROM node:8.12.0
WORKDIR /usr/src/app
RUN yarn global add webpack-cli
leandrino /
Last active Feb 12, 2019
For works webpack watch on Webstorm from Ubuntu
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p --system
sudo dnf groupinstall "Development Tools" "Development Libraries"
leandrino /
Created Jul 12, 2018 — forked from staltz/
The introduction to Reactive Programming you've been missing
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>