Skip to content

Instantly share code, notes, and snippets.

View haunt98's full-sized avatar
:octocat:
Keep creating bugs

sudo pacman -Syu haunt98

:octocat:
Keep creating bugs
View GitHub Profile
@haunt98
haunt98 / gojq.sh
Last active February 9, 2024 18:35
gojq.sh
gojq '.contact_users[] | select(.phone != "0") | {userid: .zalopay_id, zalo_name: .zalo_name, phone: .phone, contact_name: .contact_name, avatar: .avatar}' friends.json
body {
font-family: Shantell Sans Normal, Rec Mono Casual, SF Pro, Inter, sans-serif;
font-weight: 500
}
code {
font-family: Berkeley Mono, IBM Plex Mono, SF Mono, Jetbrains Mono, monospace
}
@haunt98
haunt98 / dz60rgb_wkl_v2.layout.json
Last active July 18, 2023 17:57
dz60rgb_wkl_v2.layout
{
"name": "DZ60RGB WKL V2",
"vendorProductId": 1146753825,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_GESC",
"KC_1",
"KC_2",
"KC_3",

Backup games

# Dark Souls III
# Windows
%APPDATA%\DarkSoulsIII\<id>\DS30000.sl2
# Linux
~/.steam/steam/steamapps/compatdata/374320/pfx/drive_c/users/steamuser/AppData/Roaming/DarkSoulsIII/<id>/DS30000.sl2

# God of War
@haunt98
haunt98 / docker.md
Last active January 16, 2024 17:58
What to do with docker
# https://hub.docker.com/_/redis
docker run -d -p 6379:6379 -v /docker_data/redis/data:/data --name redis redis redis-server --save 60 1 --loglevel warning

# https://hub.docker.com/_/mysql
docker run -d -p 3306:3306 -v ~/docker_data/mysql-5.7/config:/etc/mysql/conf.d -v ~/docker_data/mysql-5.7/data:/var/lib/mysql -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" --name mysql-5.7 mysql:5.7

# https://docs.percona.com/percona-server/5.7/installation/docker.html
docker run -d -p 6603:3306 -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" --name percona-5.7 percona/percona-server:5.7