Skip to content

Instantly share code, notes, and snippets.

@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([
@shiny
shiny / 杭州机动车驾驶人理论培训平台——模拟练习页面体验改进.md
Last active April 5, 2019 09:19
杭州机动车驾驶人理论培训平台——模拟练习页面体验改进

为什么要用这个平台刷题

因为和真实题库一致,而手机 App 上的题库和实际题库有差别。

当前平台的缺点:

  1. 点击答案无法选中,必须要精确点击 radio 按钮才选中答案,点击右下角的 ABCD 选项又不直观
  2. 回答完成切入下一题过于麻烦

改进:

  1. 点击答案文字就能选中;
@shiny
shiny / get-ssl-inform.php
Created July 23, 2017 10:26
get-ssl-inform.php
<?php
$g = stream_context_create ([
"ssl" => ["capture_peer_cert" => true],
'http' => [
'method' => 'GET',
'user_agent' => 'shouwang.io ssl detector',
'timeout'=>10
]
]);
$r = fopen("https://www.baidu.com/", "rb", false, $g);