Skip to content

Instantly share code, notes, and snippets.

View zikosw's full-sized avatar

Supakorn Warodom zikosw

View GitHub Profile
@zikosw
zikosw / hmac-sha256-sign.sh
Created November 29, 2020 15:54
Create hmac sha256 sign
echo -n 'PAYLOAD' | hmac256 $KEY
@zikosw
zikosw / .skhdrc
Last active July 27, 2022 02:37
Yabai config
# open terminal
# cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~
# focus window
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east
# swap window
@zikosw
zikosw / LumaSharpenHook.glsl
Created February 22, 2020 16:16 — forked from voltmtr/LumaSharpenHook.glsl
usage: vo=opengl-hq:user-shaders="~/config_directory/LumaSharpenHook.glsl"
// vim: set ft=glsl:
/*
LumaSharpenHook 0.3
original hlsl by Christian Cann Schuldt Jensen ~ CeeJay.dk
port to glsl by Anon
It blurs the original pixel with the surrounding pixels and then subtracts this blur to sharpen the image.
It does this in luma to avoid color artifacts and allows limiting the maximum sharpning to avoid or lessen halo artifacts.
@zikosw
zikosw / depth_chart.html
Created February 20, 2020 16:01 — forked from flavioespinoza/depth_chart.html
D3 Market Depth Chart built from Order Book
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>d3 depth chart</title>
<script type="text/javascript" src="https://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
<style>
@zikosw
zikosw / .tmux.conf
Created November 15, 2019 08:33 — forked from choestelus/.tmux.conf
Chochoe's tmux config, use tmux plugin manager to install plugin first
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set -s escape-time 0
set -ga terminal-overrides ",*256col*:Tc"
set -g mouse on
set -g focus-events on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
@zikosw
zikosw / kb
Last active October 24, 2019 06:40
# open terminal
# cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~
# focus window
alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east
# swap window
@zikosw
zikosw / init.nvim
Last active October 4, 2022 07:26
" Specify a directory for plugins
" - For Neovim:
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.local/share/nvim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
Plug 'easymotion/vim-easymotion'