Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Focused

Leandro Alexandrino leandrino

:octocat:
Focused
View GitHub Profile
@leandrino
leandrino / netvirtua_netcombo-config-ssh.md
Created Feb 12, 2019 — forked from mr4torr/netvirtua_netcombo-config-ssh.md
NET não libera a porta 22 e impede de acessar por ssh github/bitbucket
View netvirtua_netcombo-config-ssh.md

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
@leandrino
leandrino / curl.md
Created Feb 6, 2019 — forked from subfuzion/curl.md
curl POST examples
View curl.md

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.

License.

View .vimrc
:if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plgn')
Plug 'valloric/youcompleteme'
Plug 'marijnh/tern_for_vim', { 'do': 'npm install && python3 install.py --clang-completer' }
@leandrino
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
leandrino / Dockerfile.development
Created Nov 5, 2018
Basic Docker Development Environment
View Dockerfile.development
FROM node:8.12.0
WORKDIR /usr/src/app
EXPOSE 8080
RUN yarn global add webpack-cli
View intellij.sj
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
@leandrino
leandrino / fedora.sh
Last active Feb 12, 2019
For works webpack watch on Webstorm from Ubuntu
View fedora.sh
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p --system
sudo dnf groupinstall "Development Tools" "Development Libraries"
@leandrino
leandrino / introrx.md
Created Jul 12, 2018 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<textarea>
You can’t perform that action at this time.