Skip to content

Instantly share code, notes, and snippets.

View jfcherng's full-sized avatar
🦀
Yes, that should work.

Jack Cherng jfcherng

🦀
Yes, that should work.
View GitHub Profile
@jfcherng
jfcherng / README.md
Last active December 7, 2023 07:27
ColorHelper custom color parsing for .lsx files
@jfcherng
jfcherng / 50-noto-color-emoji.conf
Last active October 16, 2023 09:48
Ubuntu color emoji
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="scan">
<test name="family">
<string>Noto Color Emoji</string>
</test>
<edit mode="assign" name="scalable">
<bool>true</bool>
</edit>
@jfcherng
jfcherng / signtool.md
Created June 12, 2022 03:26
Windows code signing
signtool.exe sign -a -tr http://timestamp.sectigo.com -td sha256 -fd sha256 YOUR_FILE_PATH
@jfcherng
jfcherng / git-settings.md
Last active April 13, 2024 17:57
一些關於 GIT 的設定

Prerequisites

Git Installation

Ubuntu

sudo add-apt-repository -y ppa:git-core/ppa
sudo apt update
sudo apt install -y git pandoc catdoc odt2txt
@jfcherng
jfcherng / Symbol List - Heading.tmPreferences
Last active September 12, 2021 22:11
ST 4083 Markdown headings beautifying
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>scope</key>
<string>text.html.markdown markup.heading - meta.whitespace.newline.markdown</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
@jfcherng
jfcherng / st4-kind-scope-relationship
Last active December 11, 2021 17:00
ST 4 Autocompletion: Kind <---> Scope relationship
https://discord.com/channels/280102180189634562/280157067396775936/736233105295278120
keyword:
keyword
storage.modifier
storage.type
keyword.declaration
variable.language
constant.language
type:
@jfcherng
jfcherng / .env
Last active April 2, 2024 06:24
Symfony 5 maintenance mode
MAINTENANCE_MODE=0
@jfcherng
jfcherng / CompletionItemDemo.py
Last active August 10, 2021 05:19
Sublime Text 4 demo: CompletionItem (Min ST version: 4073)
import sublime
import sublime_plugin
# @see https://discordapp.com/channels/280102180189634562/280157067396775936/697124502244687984
class CompletionItemDemoListener(sublime_plugin.EventListener):
def on_query_completions(self, view, prefix, locations):
return (
[
sublime.CompletionItem(
@jfcherng
jfcherng / st4-changelog.md
Last active February 10, 2024 20:21
Sublime Text 4 changelog just because it's not on the official website yet.
@jfcherng
jfcherng / SimpleCrypto.php
Created October 26, 2019 20:22
Yet another simple encryption/decryption wrapper.
<?php
declare(strict_types=1);
namespace App\Core;
use RuntimeException;
class SimpleCrypto
{