Skip to content

Instantly share code, notes, and snippets.

@chaucerling
chaucerling / ktransformers-support-before-ampere.patch
Created March 10, 2025 06:01 — forked from jeffrey4l/fix cuda build.patch
patch for ktransformers to support nvidia v100 and t4, testd for v0.2.1
From 1d3f2ede5adebbd3a6fca0afa083545a68112574 Mon Sep 17 00:00:00 2001
From: Your Name <[email protected]>
Date: Thu, 27 Feb 2025 23:35:12 +0800
Subject: [PATCH] support v100
---
Dockerfile | 24 +++++++--------
ktransformers/local_chat.py | 10 +++----
ktransformers/operators/attention.py | 29 ++++++++++++++-----
.../DeepSeek-V2-Chat-multi-gpu-4.yaml | 10 +++----
{
"request": [
{
"enable": true,
"name": "bing-cn-to-www",
"ruleType": "redirect",
"matchType": "prefix",
"pattern": "https://cn.bing.com",
"exclude": "",
"group": "bing-redirect",
@chaucerling
chaucerling / game.json
Last active September 11, 2025 07:38
playcover ipa source
[
{
"bundleID": "com.miHoYo.GenshinImpact",
"name": "Genshin Impact",
"version": "2.8.0",
"itunesLookup": "http://itunes.apple.com/lookup?bundleId=com.miHoYo.GenshinImpact",
"link": "https://ipa.playcover.workers.dev/0:/Genshin%20Impact/US/Genshin%20Impact_2.8.0.ipa"
},
{
"id": "com.miHoYo.Yuanshen",
@chaucerling
chaucerling / wingy_config.yml
Created May 19, 2017 12:53
add ingress reject domain
# Coding: kiman | Github: kimanlo
# Update: 2017-01-06
version: 2
adapter:
- id: shadowsocksproxy
type: ss
host: 1.2.3.4
port: 1080
method: aes-256-cfb
@chaucerling
chaucerling / default.custom.yaml
Created October 10, 2016 03:30 — forked from lotem/default.custom.yaml
在Rime輸入方案選單中添加五筆、雙拼、粵拼、注音,保留你需要的
# default.custom.yaml
# save it to:
# ~/.config/ibus/rime (linux)
# ~/Library/Rime (macos)
# %APPDATA%\Rime (windows)
patch:
schema_list:
- schema: luna_pinyin # 朙月拼音
- schema: luna_pinyin_simp # 朙月拼音 简化字模式
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
@chaucerling
chaucerling / README.md
Created December 28, 2015 15:43 — forked from killercup/README.md
Unicorn, RVM Wrapper, Init.d

You have your Rails Apps with specific Gemsets in RVM.

The following commands creates a wrapped unicorn_rails bin. Be sure to replace the variables and that you have unicorn in your bundle.

rvmsudo rvm wrapper [RUBY VERSION]@[GEMSET] [GEMSET] unicorn_rails

Now you have a /usr/local/rvm/bin/[GEMSET]_unicorn_rails I will refer to [GEMSET]_unicorn_rails as [WRAPPED_NAME]

@chaucerling
chaucerling / Gemfile
Created November 9, 2015 07:15 — forked from syon/Gemfile
SVG-to-PNG Converter using Ruby-GNOME2/RSVG on Sinatra
source "https://rubygems.org"
gem "sinatra"
gem "haml"
gem "rsvg2"
@chaucerling
chaucerling / application.html.erb
Created November 2, 2015 03:30 — forked from mattbrictson/application.html.erb
Simpler nested layouts in Rails using the parent_layout helper
<%= render("shared/navbar") %>
<div class="container">
<%= render("shared/alerts") %>
<%= render("shared/page_header") %>
<%= yield %>
<%= render("shared/footer") %>
@chaucerling
chaucerling / osx-10.9-setup.md
Last active September 1, 2015 13:11 — forked from kevinelliott/osx-10.9-setup.md
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store