Skip to content

Instantly share code, notes, and snippets.

View IceCodeNew's full-sized avatar

IceCodeNew IceCodeNew

  • PKU
  • Beijing
View GitHub Profile
@ossa-ma
ossa-ma / tropes.md
Last active March 13, 2026 07:13
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@PsiACE
PsiACE / Friendly-Python.md
Created January 8, 2026 18:53
Friendly Python notes

Friendly Python

本文基于 Frost Ming “friendly python” 标签下的文章,整理出偏向工程实践的开发范式、规范与典型好/坏代码范式示例。重点是“对使用者友好 + 对维护者友好”,并强调在 Python 中利用语言特性与生态扩展点进行合理抽象。

资料来源

@yzqzss
yzqzss / README.md
Last active April 22, 2025 02:22
sshconfig2ananta
Convert SSH config to Ananta hosts csv.

positional arguments:
  csvfile      Path to the Ananta hosts csv.

optional arguments:
  --ssh SSH    SSH config file. (default: ~/.ssh/config)
  --user USER  default ssh user
@rickd-uk
rickd-uk / cloudSettings
Last active March 9, 2023 14:00
BASH - MAKE EVAL SAFE
{"lastUpload":"2023-03-09T14:00:32.624Z","extensionVersion":"v3.4.3"}
@yihong0618
yihong0618 / shanbay_remember.js
Last active January 8, 2025 13:27
扇贝加密破解自动发送今日新词到 telegram
const https = require("https");
const token = ""; // change this to you telegram bot token!
const chatId = ""; // change this to your telegram chat id!
const cookie = ""; // change this to your shanbay cookie!
const PATH_API = (page) =>
`/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`;
const options = {
@moesoha
moesoha / worker.js
Last active September 8, 2025 04:00
Auto kick any joining users from Telegram group (deployed on Cloudflare Worker)
addEventListener('fetch', event => event.respondWith(handleRequest(event.request)));
// Add environment variable `TGBOT_TOKEN` via Worker-Settings
async function requestTelegramBotAPI(method, payload) {
return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, {
method: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8"
},
body: !payload ? undefined : JSON.stringify(payload)
@k4yt3x
k4yt3x / ipa.md
Last active October 11, 2022 21:19
ipa: A shell alias that will simplify your "ip address" output

ipa

Description

ipa is a shell function that will display the distilled informaiton from the ip a command.

Screenshots

image

@k4yt3x
k4yt3x / zshrc
Last active January 27, 2026 21:29
K4YT3X Server/Community zshrc
# K4YT3X Server/Community Zsh Configuration
# Copyright 2017-2026 K4YT3X.
# Created: December 16, 2019
# Updated: January 27, 2026
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@haproxytechblog
haproxytechblog / haproxy-config-2-0.cfg
Created June 13, 2019 20:41
HAProxy 2.0 configuration
#
# This is the ultimate HAProxy 2.0 "Getting Started" config
# It demonstrates many of the features available which are now available
# While you may not need all of these things, this can serve
# as a reference for your own configurations.
#
# Have questions? Check out our community Slack:
# https://slack.haproxy.org/
#
@zoonderkins
zoonderkins / awesome-dns-resolver.md
Last active May 13, 2023 14:57
awesome-dns-resolver