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 / .env
Last active April 29, 2024 11:42
Symfony 5 maintenance mode
MAINTENANCE_MODE=0
@jfcherng
jfcherng / st4-changelog.md
Last active April 20, 2024 00:25
Sublime Text 4 changelog just because it's not on the official website yet.
@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 / LunarCalendar.php
Last active January 11, 2024 09:27
PHP 農曆相關
<?php
class Lunar
{
const MIN_YEAR = 1891;
const MAX_YEAR = 2100;
const LUNAR_INFO = [
[0, 2, 9, 21936], [6, 1, 30, 9656], [0, 2, 17, 9584], [0, 2, 6, 21168], [5, 1, 26, 43344], [0, 2, 13, 59728],
[0, 2, 2, 27296], [3, 1, 22, 44368], [0, 2, 10, 43856], [8, 1, 30, 19304], [0, 2, 19, 19168], [0, 2, 8, 42352],
@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 / 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
{
@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 / Python3.7-Build.txt
Last active January 1, 2022 18:12 — forked from nesffer/Python3.5-Build.txt
Python 3.7 Build on Ubuntu 16.04
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline zlib _uuid
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
sudo apt install libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev sqlite3 libsqlite3-dev openssl libssl-dev tcl8.6-dev tk8.6-dev libreadline-dev zlib1g-dev uuid-dev
@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: