Skip to content

Instantly share code, notes, and snippets.

@shiny
shiny / sbwx.lua
Last active May 18, 2026 10:11
傻逼微信,傻逼张小聋
local wechatBundleID = "com.tencent.xinWeChat"
local key_E = hs.keycodes.map["e"]
local wechatEventTap = hs.eventtap.new({hs.eventtap.event.types.keyDown}, function(event)
local flags = event:getFlags()
local keyCode = event:getKeyCode()
-- 严格匹配:仅按下了 Ctrl 和 E
if keyCode == key_E and flags.ctrl and not flags.cmd and not flags.alt and not flags.shift then
local frontApp = hs.application.frontmostApplication()
@shiny
shiny / AkileCloud.md
Last active April 8, 2026 10:17
AkileCloud 适合什么人?高带宽、多地区节点、流媒体解锁

AkileCloud 的特点

首先是便宜,尤其是如果不需要三网优化线路,比如只优化移动,那价格就更低了; 有意思的是,它甚至还自带一个交易所,如果买来的 vps 吃灰了还可以放交易所出掉

交易所
  • 高带宽定位明确
  • 多地区节点可选
  • 部分流媒体解锁节点已预设好
@shiny
shiny / VPSDime.md
Created April 7, 2026 10:22
VPSDime

Looking for a high-performance Virtual Private Server that won’t break the bank? Welcome to VPSDime, an industry-leading provider of affordable, high-RAM VPS hosting engineered for developers, system administrators, and scaling businesses. Starting at just $5.00 per month, VPSDime disrupts the traditional hosting market by delivering massive resource allocations without the premium price tag.

Built on a foundation of write-intensive enterprise SSDs, high-frequency CPUs, and blazing-fast 10Gbps network uplinks, VPSDime ensures chart-topping performance for resource-heavy applications. Whether you need a cheap Linux VPS with generous memory, a robust Windows server, or a high-capacity storage VM, VPSDime guarantees a non-oversold environment with 99.99% uptime. Founded and operated by seasoned system admins, VPSDime offers radical transparency, scalable infrastructure, and a self-managed hosting experience designed to give you maximum power at minimum cost.

https://vpsdime.com/a/4726

@shiny
shiny / RoseHosting.md
Created April 7, 2026 10:15
RoseHosting Fully Managed VPS: Hire an Elite IT Team for the Price of a Server

rosehosting.com


Imagine it’s 3:00 AM. Your most important website just went down.

No clear error logs. No pages loading. Just the silent, agonizing reality that you are losing traffic and users by the minute. You are rubbing your eyes, frantically searching developer forums for a command-line fix to save your business.

When you are juggling multiple web-based projects and diverse digital assets, this is your absolute worst nightmare.

@shiny
shiny / VMRack.md
Created April 7, 2026 09:53
VMRack 洛杉矶机房线路解析:三网精品回程 (CN2 GIA/9929/CMIN2) 到底稳不稳

很多人在选择海外 VPS 时,最看重的指标只有一个:线路。机器性能再强,晚高峰绕路丢包也会让体验大打折扣。

今天我们抛开花里胡哨的营销词,直接根据 VMRack 官方在海外社区披露的底层技术细节,深扒一下 VMRack 这家主机的实际网络路由表现,不讲废话,只看硬核参数。

根据官方公布的数据,VMRack 的核心数据中心位于美国洛杉矶 (LA),目前主要提供两套截然不同的网络路由方案,以满足不同出海/回国业务的需求:

1. 核心主打:Premium 三网精品线

如果你受够了晚高峰的跨海网络卡顿,这就是你要找的目标线路。

@shiny
shiny / domain-connect.adoc
Created March 24, 2025 06:04
Domain connect chinese translation
:toc: macro
:toc-title: 目录
:toclevels: 4
:source-highlighter: prettify
:sectnums:
:specversion: 2.3
:revnumber: 67
:revdate: 3-02-2025
:revremark: 草案
:apply-image-size:
@shiny
shiny / docker-compose.yml
Created January 16, 2025 12:09
postgres docker-compose example
services:
db:
image: postgres:17.2
command:
- postgres
- -c
- config_file=/etc/postgresql/postgresql.conf
environment:
POSTGRES_USER: u301
POSTGRES_DB: u301
@shiny
shiny / Netcup Gutschein.md
Created November 11, 2024 10:44
Netcup Gutschein
@shiny
shiny / shadcn.json
Last active November 6, 2024 14:10
test shadcn component
{
"name": "button",
"type": "registry:ui",
"dependencies": [
"@radix-ui/react-slot"
],
"files": [
{
"path": "ui/button.tsx",
"content": "import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n {\n variants: {\n variant: {\n default:\n \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background shadow-sm hover:bg-ac
@shiny
shiny / 多维数组.php
Last active April 28, 2019 06:36
多维数组.php
<?php
$a = [ 'Date','Media','Geo' ];
$b = [ 'Num' ];
$subject = [ 'Date'=>'2019-04-26','Media'=>'AAA','Geo'=>'CN','Num'=>105 ];
// 多维数组的最后一项
$value = array_intersect_key($subject, array_fill_keys($b, 1));
// 生成多维数组
$res = createMultiArray($a, $value, $subject);
var_dump([