This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileList=$(git diff --cached --name-only) | |
phpFileList=$(echo "$fileList" | grep -E '\.(php)$') | |
if [ ${#phpFileList} -gt 0 ]; then | |
git stash --keep-index --include-untracked | |
if ! docker exec YOUR_CONTAINER php -d memory_limit=4G vendor/bin/phpstan analyse ${phpFileList[*]} "$@"; then | |
git stash pop | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wwwwvwhyjhhpkddjj0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import socket | |
import requests | |
import datetime | |
from PIL import Image, ImageFont, ImageDraw | |
from datetime import date | |
from font_hanken_grotesk import HankenGroteskBold, HankenGroteskMedium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export ZSH="/Users/airtonzanon/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(git zsh-autosuggestions) | |
source $ZSH/oh-my-zsh.sh | |
alias vim="nvim" | |
alias projects="cd ~/Documents/projects" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=334dade7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:ProFont6x11 logo.nologo quiet init=/usr/lib/raspi-config/init_resize.sh splash plymouth.ignore-serial-consoles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'mkitt/tabline.vim' | |
Plug 'arcticicestudio/nord-vim' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'wakatime/vim-wakatime' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'dense-analysis/ale' | |
call plug#end() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YAML 3:09h - 42.78% ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ | |
SQL 1:29h - 20.23% ▓▓▓▓▓▓▓▓▓▓▓▓ | |
HCL 1:06h - 14.89% ▓▓▓▓▓▓▓▓▓ | |
Docker 0:55h - 12.60% ▓▓▓▓▓▓▓▓ | |
PHP 0:11h - 2.66% ▓▓ | |
Bash 0:08h - 1.82% ▓ | |
gitrebase 0:06h - 1.45% ▓ | |
JSON 0:04h - 0.99% ▓ | |
SmartyConfig 0:03h - 0.77% ▓ | |
Other 0:02h - 0.50% ▓ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json, os | |
# To get the WAKATIME_JSON_URL_PER_LANGUAGE | |
# Go to https://wakatime.com/share/embed, choose JSON format, choose languages chart type | |
# Click on "Get Embeddable Code", copy the url that it'll show | |
resp = requests.get(os.environ.get('WAKATIME_URL')) | |
data = [] | |
for wakadata in resp.json()["data"]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NamedConstructor: | |
def __init__(self, | |
name: str, | |
age: int): | |
self.name = name | |
self.age = age | |
def create_person_from_dict(person_data: dict): | |
return NamedConstructor( | |
name = person_data['name'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin() | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'mkitt/tabline.vim' | |
Plug 'arcticicestudio/nord-vim' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'wakatime/vim-wakatime' | |
call plug#end() | |
colorscheme nord |
NewerOlder