Skip to content

Instantly share code, notes, and snippets.

View jyxjjj's full-sized avatar
🇳🇱
NL

ShenLin jyxjjj

🇳🇱
NL
View GitHub Profile
@jyxjjj
jyxjjj / Disclosure.md
Created July 10, 2026 07:26
AI Author Emails

AI Git Commit Attribution Reference

GitHub Copilot

Application Co-authored-by GitHub API
GitHub Copilot Cloud Agent Co-authored-by: copilot-swe-agent[bot] <198982749+copilot@users.noreply.github.com> copilot-swe-agent[bot]
GitHub Copilot Chat Co-authored-by: Copilot <167198135+copilot[bot]@users.noreply.github.com> copilot[bot]
GitHub Copilot CLI `Co-authored-by: Copilot <167198135+copilot[bot]@u
@jyxjjj
jyxjjj / ContentView.swift
Created June 11, 2026 09:51
Salary Per Second
import Combine
import SwiftUI
struct ContentView: View {
@State private var salary = "20000"
@State private var days = "21"
@State private var hours = "8"
@State private var startedAt: Date?
@State private var now = Date()
@State private var showSummary = false
@jyxjjj
jyxjjj / README.md
Last active March 2, 2026 09:22
Convert PingFang -> PingFang.ttc -> PingFangSC.ttx -> PingFangSC.otf -> PingFangSC.ttf & PingFangSC.woff2

⚠️ WARNING ⚠️

THESE FONTS ARE PROPRIETARY TO APPLE INC. AND MAY BE COPYRIGHTED OR OTHERWISE PROTECTED. THEY ARE NOT OPEN SOURCE AND MAY NOT BE USED FOR COMMERCIAL DISTRIBUTION, REDISTRIBUTION, OR UNAUTHORIZED EMBEDDING INTO PRODUCTS. FOR MORE INFORMATION, SEE:

⚠️ DISCLAIMER & DMCA ⚠️

THESE CODES ARE INTENDED FOR PERSONAL USE ONLY. THERE IS NO INTENTION OF REDISTRIBUTION, COMMERCIAL PACKAGING, OR SECONDARY DISTRIBUTION. IF ANY CONTENT IS FOUND TO INFRINGE COPYRIGHT, I WILL PROMPTLY REMOVE THE RELEVANT CODE UPON NOTIFICATION FROM THE RIGHTFUL COPYRIGHT OWNER OR AUTHORIZED OFFICIAL REPRESENTATIVES.

tell application "System Events"
tell process "Telegram"
repeat with w in windows
set size of w to {1024, 720}
delay 0.05
set position of w to {768, 360}
end repeat
end tell
tell process "QQ"
repeat with w in windows
#!/bin/zsh
export API_DOMAIN
export API_URL
export PARAMS
/opt/homebrew/bin/curl \
--interface $(
if ifconfig en0 2>/dev/null | grep -q 'status: active'; then
echo 'en0'
@jyxjjj
jyxjjj / direct.xml
Created August 20, 2025 05:06
FirewallD randomizing outbound IPv6 source IP selection
<?xml version="1.0" encoding="utf-8"?>
<direct>
<!-- probability: P(i) = 1 / (N - (i - 1)) -->
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0625 -j SNAT --to-source 2::::::0</rule>
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0667 -j SNAT --to-source 2::::::1</rule>
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0714 -j SNAT --to-source 2::::::2</rule>
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0769 -j SNAT --to-source 2::::::3</rule>
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0833 -j SNAT --to-source 2::::::4</rule>
<rule ipv="ipv6" table="nat" chain="POSTROUTING" priority="0">-m statistic --mode random --probability 0.0909 -j SNAT --to-source 2::::::5</rule>
<rule ipv="ipv6" table="nat" chain="P
@jyxjjj
jyxjjj / SupervisorMonitor.go
Created June 26, 2025 09:30
Supervisor Monitor
package main
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"net"
"net/http"
"strings"
@jyxjjj
jyxjjj / .SwiftBar.Plugin.SSH
Last active June 26, 2025 02:59
SwiftBar SSH
# RENAME functions script with hidden dot `.SSH.functions.sh`
@jyxjjj
jyxjjj / DecryptChromeCookies.php
Last active November 3, 2025 08:29
Decrypt Chrome Cookies
<?php /** @noinspection PhpComposerExtensionStubsInspection */
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Process;
use SQLite3;
class DecryptChromeCookies extends Command
{
@jyxjjj
jyxjjj / MariaDBError.php
Created September 8, 2023 07:00
Temporary MariaDB Error Codes Enum
<?php
namespace DESMG\MariaDB\V11_0_2;
enum MariaDBError: int
{
/** hashchk */
case ER_HASHCHK = 1000;
/** isamchk */
case ER_NISAMCHK = 1001;