Skip to content

Instantly share code, notes, and snippets.

View fz6m's full-sized avatar

Sakina fz6m

View GitHub Profile
@fz6m
fz6m / settings.json5
Last active August 17, 2025 07:08
VSCode settings
{
// ------- [version: 2025-08-17] -------
// ? ========== Editor ==========
// 自动保存
"files.autoSave": "afterDelay",
// 默认 lf 结尾
"files.eol": "\n",
// 字号
"editor.fontSize": 13,
@fz6m
fz6m / transform.py
Last active August 8, 2025 22:24
Transform GIF/PNG to WebM for Telegram Video Sticker
# Transform GIF to WebM for Telegram Sticker
import subprocess
import os
# for static png image
def convert_png_to_webm(source: str, output: str, compress: int, size: str, limit: int):
source_filename = os.path.basename(source)
print(f"> convert {source_filename} to webm")
if source.endswith(".png"):
@fz6m
fz6m / vscode-background-fork.css
Created October 3, 2024 22:43
VSCode Background CSS
/*internal_background-css-fork*/
[id='workbench.parts.editor']
.split-view-view
.editor-container
.overflow-guard
> .monaco-scrollable-element
> .monaco-editor-background {
background: none;
}
[id='workbench.parts.editor']
@fz6m
fz6m / github-disable-turbolinks.js
Created September 30, 2024 23:49
GitHub disable turbolinks
@fz6m
fz6m / logo.css
Last active April 22, 2024 04:25
vscode custom styles
.monaco-workbench.vs-dark
.part.editor
> .content
.editor-group-container
> .editor-group-watermark
> .letterpress {
opacity: .88;
}
.monaco-workbench
@fz6m
fz6m / .bashrc
Created March 29, 2024 04:32
Tmux alias
# tmux alias
alias ,t_n="tmux new -s"
alias ,t_a="tmux a -t"
@fz6m
fz6m / .gitconfig
Last active May 2, 2025 06:22
Git Config
[http]
proxy = http://127.0.0.1:7890
[https]
proxy = http://127.0.0.1:7890
[user]
name = username
email = username@users.noreply.github.com
signingkey = XXXXXXXXXXXX
[core]
excludesfile = /Users/username/.gitignore_global
@fz6m
fz6m / jemalloc.md
Last active March 19, 2025 11:38
Using jemalloc in Node.js

Using jemalloc in Node.js

Linux

  # install
  sudo apt-get update
  sudo apt-get install -y libjemalloc-dev
  
 # run
@fz6m
fz6m / .zshrc
Last active August 8, 2025 22:19
zshrc
# 2025-08-09
export USER_BASE=$HOME
export ZSH="$USER_BASE/.oh-my-zsh"
ZSH_THEME="sorin"
plugins=(git)
source $ZSH/oh-my-zsh.sh
@fz6m
fz6m / right-option-to-double-right-click.json
Last active May 12, 2023 18:34
Karabiner - Right option to Double right click
{
"title": "Right option to Double right click",
"rules": [
{
"description": "Right option to Double right click",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_option"