Skip to content

Instantly share code, notes, and snippets.

View pockyneko's full-sized avatar

pockyneko pockyneko

View GitHub Profile
@zhuziyi1989
zhuziyi1989 / enable_gemini.sh
Last active March 1, 2026 03:10
强制开启 Gemini in Chrome 的脚本 2026.01.29
#!/bin/bash
# 定义 Chrome Local State 文件的路径
CHROME_STATE_FILE="$HOME/Library/Application Support/Google/Chrome/Local State"
echo "🚀 开始尝试强制开启 Chrome Gemini 功能..."
# 1. 安全检查:检测 Google Chrome 是否正在运行
# 如果 Chrome 没关,修改配置文件可能会被覆盖或导致错误
if pgrep "Google Chrome" > /dev/null; then
@arch1t3cht
arch1t3cht / video_noob_guide.md
Last active March 16, 2026 17:47
What you NEED to know before touching a video file

What you NEED to Know Before Touching a Video File

Hanging out in subtitling and video re-editing communities, I see my fair share of novice video editors and video encoders, and see plenty of them make the classic beginner mistakes when it comes to working with videos. A man can only read "Use Handbrake to convert your mkv to an mp4 :)" so many times before losing it, so I am writing this article to channel the resulting psychic damage into something productive.

If you are new to working with videos (or, let's face it, even if you aren't), please read through this guide to avoid making mistakes that can cost you lots of time, computing power, storage space, or video quality.

@f1shy-dev
f1shy-dev / best_SAE_trick.md
Last active March 17, 2026 04:14
sneakyf1shy's apple intelligence tutorial

the sneakyf1shy apple intelligence tutorial v2.0

Warning

This is patched as of iOS/iPadOS 18.1 DevBeta 5. If you want to follow this, stay on Beta 4.

This actually downloads the models, and is NOT just new SiriUI. Hence, this process is complex and probably not worth it.

⚠️ Prepare to be disappointed and annoyed, and have your time wasted! ⚠️

  • What does not work: Writing Tools, Memories, Reduce Interruptions, Image Eraser and other tools that are within official Apple Intelligence on supported devices.
#!/usr/bin/env python3
# -*-coding:utf-8 -*-
'''
A picture slideshow viewer widget
'''
import os
import natsort
@unixzii
unixzii / ForceEnablingXcodeLLM.md
Last active March 17, 2026 03:07
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@Kyle-Ye
Kyle-Ye / XcodeLLM.md
Last active September 19, 2025 01:31
Enable XcodeLLM for ChinaSKU Mac on macOS 15 Beta 1

Warning

The following guide need to disable SIP to work.

Please confirm the risk of disabling the SIP by yourself.

Another solution which does not require disabling SIP is currently under investigation.

Step 0

Reboot into Recovery OS + Disable SIP

@s1ntoneli
s1ntoneli / pppdata.js
Created February 2, 2024 17:10
各国家购买力水平清单
const ppp = [
{
"range": "0.0-0.1",
"countries": []
},
{
"range": "0.1-0.2",
"countries": []
},
{
@okatu-loli
okatu-loli / bat
Last active March 31, 2025 04:58
临时解决“百度网盘的插件导致 Windows 资源管理器持续占用高 CPU,进而导致资源管理器进程的稳定性下降、系统卡顿”的问题
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
:: 作者: 千石
:: 来源: 蓝点网(https://mp.weixin.qq.com/s/2t9TqXFHkhDcMaVXSvuxnQ)
:: V2EX(https://www.v2ex.com/t/1007324#reply11)
:: 开源地址: https://gist.github.com/okatu-loli/556533c9d925b80eaff86094d5e949f9
echo 作者: 千石
echo 来源: 蓝点网(https://mp.weixin.qq.com/s/2t9TqXFHkhDcMaVXSvuxnQ)
@tobemaster56
tobemaster56 / applescript
Last active August 10, 2025 14:35
toggle-apple-id-zone script in raycast
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title toggle apple id zone
# @raycast.mode fullOutput
# Optional parameters:
# @raycast.icon
# @raycast.argument1 { "type": "text", "placeholder": "zone: zh or us" }
#!/usr/bin/env python3
# -*-coding:utf-8 -*-
'''
A picture slideshow viewer widget
'''
import os
import natsort