Skip to content

Instantly share code, notes, and snippets.

View unknowntpo's full-sized avatar

Eric Chang unknowntpo

  • Taiwan
View GitHub Profile
@unknowntpo
unknowntpo / common.mk
Created May 2, 2023 00:09
Common Makefile with help message
all: help
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
help:
@echo 'Usage:'
@unknowntpo
unknowntpo / karabiner.json
Created April 19, 2023 04:26
karabiner.json for Falco Minilar Air
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
local is_bootstrap = false
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
is_bootstrap = true
vim.fn.system { 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path }
vim.cmd [[packadd packer.nvim]]
end
require('packer').startup(function(use)
@unknowntpo
unknowntpo / result.md
Created November 24, 2022 06:22
List Table Size in PostgreSQL
tablename size
new_table2 7080 kB
new_table 8192 bytes
autoload -Uz compinit
compinit
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
@unknowntpo
unknowntpo / version_2_of_data.md
Created September 2, 2022 03:29
db_version_control.version_2_of_data
id c0 c1 username version is_deleted
1 old0 old1 Eric 1 f
2 old2 old2 Eric 1 f
@unknowntpo
unknowntpo / merge.sql
Created September 2, 2022 03:26
no-change.md db_version_control.merge.sql
INSERT INTO data
SELECT * FROM temp;
@unknowntpo
unknowntpo / no-change.md
Last active September 2, 2022 03:22
db_version_control.no-change
temp_id temp_c0 temp_username temp_version
4 old2 Eric 2
@unknowntpo
unknowntpo / deleted.md
Created September 2, 2022 03:12
db_version_control.deleted
id c0 c1 username version is_deleted
6 old0 old1 Kevin 2 t
@unknowntpo
unknowntpo / add_or_modified.md
Created September 2, 2022 03:10
db_version_control.add_or_modified
id c0 c1 username version is_deleted
4 old2 old2 Eric 2 f
3 modified old1 Kevin 2 f
5 new0 new1 Kevin 2 f