Skip to content

Instantly share code, notes, and snippets.

View ysl2's full-sized avatar
💤
At home

sonnyslyu ysl2

💤
At home
View GitHub Profile
@ysl2
ysl2 / pacman-auto-update.service
Created March 11, 2022 07:00 — forked from raspi/pacman-auto-update.service
Arch Linux Pacman auto download updated packages
# Download new packages but don't install them
# Save in /etc/systemd/system/
[Unit]
Description=Pacman Automatic Download (no install) service
After=network-online.target
[Service]
# Wait time if process hangs
TimeoutStopSec=5m
@ysl2
ysl2 / tmux_cheatsheet.markdown
Created February 8, 2023 14:31 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

import pandas as pd
import asyncio
# 初始化 DataFrame
df = pd.DataFrame(columns=['id', 'name', 'value'])
# 模拟异步增删改查操作
async def add_row(name: str, value: float):
global df
new_id = len(df) + 1
@ysl2
ysl2 / settings.json
Last active May 22, 2026 10:29
vscode settings.json
{
"editor.fontSize": 15,
"workbench.editor.empty.hint": "hidden",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.autoIndent": "full",
"workbench.colorCustomizations": {