Skip to content

Instantly share code, notes, and snippets.

View liopoos's full-sized avatar
🐱
Pal time

Liopos_ liopoos

🐱
Pal time
  • Hangzhou, China
  • 12:05 (UTC +08:00)
View GitHub Profile
@liopoos
liopoos / macOS-input-method-killer.sh
Created October 2, 2023 15:14 — forked from qzydustin/macOS-input-method-killer.sh
Resolving macOS Chinese Input Lag Issue
#!/bin/sh
# This script aims to address the problem of input lag that can occur when using the Chinese input method on macOS.
# It provides a simple and effective solution by terminating the SCIM process, which is often the cause of the lag.
# To use the script, follow these steps:
# 1. Open the Terminal application (located in "Applications/Utilities/Terminal").
# 2. Copy and paste the script into the Terminal window.
# 3. Press Enter to execute the script.
@liopoos
liopoos / AppleStoreCode.js
Last active December 29, 2020 08:42
Apple Store Code By Scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: apple-alt;
let stores = await getStoreList()
let table = new UITable()
for(let i in stores) {
let row = new UITableRow()
let store = stores[i]
@liopoos
liopoos / GetiPhoneStock.py
Last active December 29, 2020 08:42
iPhone12 Pro Stock Query
# -*- coding: utf-8 -*-
import requests
import json
import time
storeRequest = json.loads(requests.get('https://reserve-prime.apple.com/CN/zh_CN/reserve/A/stores.json').content)
# print(storeRequest)
stores = {}
model = {