Skip to content

Instantly share code, notes, and snippets.

View ChaosTong's full-sized avatar
🍍
wondering

tong chao ChaosTong

🍍
wondering
View GitHub Profile
@ChaosTong
ChaosTong / translate.js
Created October 16, 2025 06:22
Xcode strings translate
const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const https = require('https');
const readline = require('readline');
const appId = '';
const key = '';
const languageMap = {
@ChaosTong
ChaosTong / mergePDFs.py
Created March 30, 2024 15:33
合并PDF, 并制作对应目录
# pip3 install pypdf2 pdfminer.six --break-system-packages
import os
from PyPDF2 import PdfMerger, PdfReader
# 获取所有PDF文件
pdf_files = [f for f in os.listdir('.') if f.endswith(".pdf")]
merger = PdfMerger()
# 按照文件名排序,你可以根据需要修改排序方式
@ChaosTong
ChaosTong / ping.js
Last active October 31, 2022 03:16
ping.sh
let spawn = require("child_process").spawn;
spawn(
"/bin/sh",
["ping.sh"]
);
@ChaosTong
ChaosTong / PacketTunnelProvider.swift
Last active February 13, 2019 07:21
SimpleTunnelViewController
//
// PacketTunnelProvider.swift
// PacketTunnel
//
// Created by chaostong on 2019/1/29.
// Copyright © 2019 chaostong. All rights reserved.
//
import NetworkExtension