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 / 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 / tmux_italic.md
Created October 30, 2020 18:16 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux
@ellisonleao
ellisonleao / twitch-irc-with-weechat.mkd
Last active October 30, 2022 12:10 — forked from noromanba/twitch-irc-with-weechat.mkd
How to join Twitch IRC w/ WeeChat
@ellisonleao
ellisonleao / zipapp.md
Created October 22, 2019 18:02 — forked from lukassup/zipapp.md
Python zipapp

Python zipapp web apps

What's a zipapp?

This concept is very much like .jar or .war archives in Java.

NOTE: The built .pyz zipapp can run on both Python 2 & 3 but you can only build .pyz zipapps with Python 3.5 or later.

Initial setup

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl