Skip to content

Instantly share code, notes, and snippets.

@rainly
rainly / list.md
Created November 17, 2025 09:30 — forked from vikingmute/list.md

1. 常用药物

感冒/发烧类

  • 布洛芬(退烧、止痛)
  • 对乙酰氨基酚(泰诺)

抗病毒/流感类

  • 奥司他韦(达菲,需处方)

消炎类

  • 阿莫西林(需处方)
  • 红霉素软膏(外用)
类别 药品通用名 原研品牌
抗生素类 头孢克洛 希刻劳
头孢呋辛 西力欣
左氧氟沙星 可乐必妥
莫西沙星 拜复乐
阿奇霉素 希舒美
头孢妥仑匹酯 美爱克
抗真菌类 盐酸特比萘芬 兰美抒
奥美拉唑 洛赛克
@rainly
rainly / Dockerfile
Created November 17, 2025 09:24 — forked from vikingmute/Dockerfile
# ================================
# Next.js 生产最优模板
# 最终镜像 130~160MB
# ================================
# 公共 base(只拉一次镜像,所有阶段共享)
FROM node:22-alpine AS base
RUN apk add --no-cache libc6-compat
# pnpm 只装一次,所有阶段都能用
RUN corepack enable && corepack prepare pnpm@latest --activate
@rainly
rainly / config_git_use_proxy.md
Created October 27, 2025 08:02 — forked from wgzhao/config_git_use_proxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@rainly
rainly / word_to_card.py
Created October 27, 2025 08:01 — forked from wgzhao/word_to_card.py
把单词列表转为单写默写卡
"""
单词默写表格生成小工具
读取包含了单词以及中文释义两列的 Excel 文件(也可以是 csv 文件)
然后按照 A4 纸大小排列可这翻折的单词默写表格形式
每页 48 个单词,每个单词都需要默写中文释义以及中文对应的单词
"""
import pandas as pd
import openpyxl
from openpyxl.styles import Alignment, Border, Side
from openpyxl.worksheet.page import PageMargins
@rainly
rainly / configuration.nix
Created May 9, 2025 10:41 — forked from hemashushu/configuration.nix
NixOS configuration reference 2025-05
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@rainly
rainly / cleanup_weixin.py
Created August 26, 2024 03:32 — forked from shell909090/cleanup_weixin.py
清理微信公众号链接,用法:python3 cleanup_weixin.py -c == pbpaste | python3 cleanup_weixin.py -i | pbcopy
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
@date: 2024-07-22
@author: Shell.Xu
@copyright: 2024, Shell.Xu <[email protected]>
@license: BSD-3-clause
'''
import sys
import argparse
@rainly
rainly / 01.bash_shortcuts_v2.md
Created February 6, 2023 12:51 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@rainly
rainly / nokia-router-cfg-tool.py
Created May 7, 2022 14:56 — forked from thedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool
#!/usr/bin/env python3
#
# Nokia/Alcatel-Lucent router backup configuration tool
#
# Features:
# - Unpack/repack .cfg files generated from the backup and restore functionnality
# in order to modify the full router configuration
# - Decrypt/encrypt the passwords/secret values present in the configuration
@rainly
rainly / download_talebook.sh
Created April 3, 2022 17:04 — forked from syhily/download_talebook.sh
Download all the books from a talebook website. The https://curl.se/ and https://stedolan.github.io/jq/ are required for using this script.
#!/usr/bin/env bash
# Download metadata, modify these as your needs.
## The directory to save the downloaded files.
download_directory="/volume1/Download/EPUB"
## The website you want to visit.
calibre_site="http://soulseeker.myds.me:25788"
## The formats you want to download. We only download the first present format.
## All the formats should be upper case.
allow_formats=( EPUB MOBI AZW3 )