Skip to content

Instantly share code, notes, and snippets.

# Generals
## enable undercurl
# https://github.com/AstroNvim/AstroNvim/issues/1336#issuecomment-1317609457
set -g default-terminal "${TERM}"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
## color correction
# https://github.com/tmux/tmux/wiki/FAQ#how-do-i-use-rgb-colour
set -as terminal-features ",${TERM}*:RGB"
set -as terminal-overrides ",${TERM}*:Tc"
@hieulw
hieulw / NEOVIM.md
Created September 10, 2021 01:27
Update vim plugin
@hieulw
hieulw / mac-build-pgmodeler.md
Last active August 10, 2021 01:14 — forked from jdforsythe/mac-build-pgmodeler.md
Build pgmodeler on Mac with Homebrew-installed pg and openssl

Building pgmodeler for Mac

Check requirements at https://pgmodeler.io/installation.

You will need Qt > 5.9.x installed, full XCode installed, and homebrew installation of postgres and openssl.

brew install qt@5 postgresql@12 openssl@1.1

The installation is the same as the instructions at the link above. There are a few path differences due to homebrew installation locations.

function fetchQRCode(content, download = false) {
const endpoint = "https://qr-generator.qrcode.studio/qr/custom";
const data = {
data: content,
config: {
bgColor: "#FFFFFF",
body: "circle-zebra-vertical",
bodyColor: "#f37239",
brf1: ["fv"],
brf2: [],
@hieulw
hieulw / crackme4.js
Last active July 21, 2020 02:58
giải bài crackme4.exe môn Hacking Exposed
function getKeyInfo(key) {
key = key.toString();
if (key.length != 16) return false;
sum = 0;
for (let i = 10, len = key.length; i < len; i++) {
sum += Number(key[i]);
}
if (sum < 0 || sum > 54) return false;
sum = Number(key.substr(8, 2)) - sum;
if (sum < 0 || sum > 99) return false;