Skip to content

Instantly share code, notes, and snippets.

View belchior's full-sized avatar

Belchior Oliveira belchior

  • Pagar.me
  • Brasil
View GitHub Profile
@belchior
belchior / alias.fish
Last active February 11, 2019 15:37
# Fish alias
function findg; find . -type f | grep $argv; end;
function gti; git $argv; end;
function gtt; git status $argv; end;
function gtag; git tag -l | sort -V $argv; end;
function ll; ls -thrAl $argv; end;
function mymod; sudo chmod -R ugo-rwx,u+wrX,go+rX $argv; end;
function www; cd /home/{$USER}/www/; end;
@belchior
belchior / now.js
Last active January 26, 2017 13:38
function now() {
var d = new Date().toLocaleString().match(/(\d{1,2})\/(\d{1,2})\/(\d{1,2}).*(\d{2}):(\d{2}):(\d{2})/);
return {
text: d[0],
day: parseInt(d[1]),
month: parseInt(d[2]),
year: parseInt(d[3]),
hour: parseInt(d[4]),
minute: parseInt(d[5]),
second: parseInt(d[6])
html, body, div, span, object, iframe,
p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
function gitstatus {
local www='/var/www/html';
local mydir=($PWD);
local notStaged='Changes not staged';
local toCommit='Changes to be committed';
local isAhead='is ahead';
local ok='nothing to commit';
cd $www;
printf "\n# ------------------------------ gitstatus ------------------------------ #\n";
function gt
set mydir (pwd);
set www '/var/www/html';
set untracked 'Untracked files';
set notStaged 'Changes not staged';
set toCommit 'Changes to be committed';
set isAhead 'is ahead';
set ok 'nothing to commit';
cd $www;
@belchior
belchior / .eslintrc
Last active March 4, 2018 23:58
Eslint rules
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended"
],
"parserOptions": {
"sourceType": "module",