Skip to content

Instantly share code, notes, and snippets.

View ellisonleao's full-sized avatar

Ellison ellisonleao

View GitHub Profile
@ellisonleao
ellisonleao / DOCKERFILE
Created August 10, 2023 12:07 — forked from MatthewJamesBoyle/DOCKERFILE
production go dockerfile
FROM golang:1.21.0-bullseye as builder
COPY . /workdir
WORKDIR /workdir
ENV CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all"
ENV GOFLAGS="-buildmode=pie"
RUN go build -ldflags "-s -w" -trimpath ./cmd/app
@ellisonleao
ellisonleao / 12ft.md
Created June 30, 2022 18:45
12ft bookmarklet

12ft.io bookmarklet

  1. Copie o código
javascript:location.href='https://12ft.io/proxy?q=%27+document.location.href;
  1. Clique no botão direito da Barra de Favoritos e clique em "Adicionar página"
  2. Cole o código
@ellisonleao
ellisonleao / alacritty-tmux-vim_truecolor.md
Created November 4, 2021 23:13 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Tested successfully in bash and zsh with latest packages from Arch Linux (with exception of neovim built from source):

  • 2019-07-07
  • 2021-08-07

Notes

  1. Don't use &t_8f, &t_8b and t_Co in your vim config
  2. Don't set $TERM in your zshrc, bashrc, etc. Configure this in your terminal (alacritty).
@ellisonleao
ellisonleao / alacritty-tmux-vim_truecolor.md
Created November 4, 2021 23:13 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Tested successfully in bash and zsh with latest packages from Arch Linux (with exception of neovim built from source):

  • 2019-07-07
  • 2021-08-07

Notes

  1. Don't use &t_8f, &t_8b and t_Co in your vim config
  2. Don't set $TERM in your zshrc, bashrc, etc. Configure this in your terminal (alacritty).
@ellisonleao
ellisonleao / apex_ip_list.txt
Last active March 22, 2021 20:41 — forked from Liqianyu/default.txt
Apex Legends Server IP
104.198.102.93
104.198.101.253
52.40.240.176
63.251.239.123
52.42.44.79
209.239.121.82
104.197.17.180
130.211.193.234
104.197.136.10
104.197.42.178
@ellisonleao
ellisonleao / tmux-cheatsheet.markdown
Created February 17, 2021 16:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@ellisonleao
ellisonleao / test.md
Created January 4, 2021 16:10 — forked from ityonemo/test.md
Zig in 30 minutes

A half-hour to learn Zig

This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/

Basics

the command zig run my_code.zig will compile and immediately run your Zig program. Each of these cells contains a zig program that you can try to run (some of them contain compile-time errors that you can comment out to play with)

@ellisonleao
ellisonleao / curl.plenary.lua
Created November 11, 2020 22:49
curl + plenary
--[[
curl 'https://api.outline.com/v3/parse_article?source_url=https%3A%2F%2Fpolitica.estadao.com.br%2Fnoticias%2Fgeral%2Cconta-no-twitter-divulga-dados-pessoais-de-fotografa-do-estadao%2C70003323526' \
-H 'authority: api.outline.com' \
-H 'accept: */*' \
-H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36' \
-H 'origin: https://outline.com' \
-H 'referer: https://outline.com/' \
--compressed
]] --
local job = require("plenary.job")
@ellisonleao
ellisonleao / command.md
Last active November 2, 2020 22:00
github slack command to subscribe to all github actions
/github subscribe owner/repo issues pulls deployments statuses public commits commits:all releases comments branches reviews
@ellisonleao
ellisonleao / tmux_italic.md
Created October 30, 2020 18:16 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux