Skip to content

Instantly share code, notes, and snippets.

View ellisonleao's full-sized avatar

Ellison ellisonleao

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ellisonleao on github.
  • I am ellison (https://keybase.io/ellison) on keybase.
  • I have a public key ASDsL7MBUFc8m-SAjvqxrKT5a8P81RtMaTf4MccTxv2V5wo

To claim this, I am signing this object:

@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

@ellisonleao
ellisonleao / twitch.lua
Created October 7, 2020 14:53
twitch.lua
-- twitch module
local ws = require("http.websocket")
local utils = require("utils")
local M = {}
local twitch_url = "wss://irc-ws.chat.twitch.tv:443"
local message_types = {
PING = "PING",
PRIVMSG = "PRIVMSG",
ACK = "ACK",
@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 / tmux_italic.md
Created October 30, 2020 18:16 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux
@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 / 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 / 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-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 / 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