Skip to content

Instantly share code, notes, and snippets.

View cornradio's full-sized avatar
🌚
moonnnnnnn

super cool dev cornradio

🌚
moonnnnnnn
View GitHub Profile
## 自定义--自动分类app
window_rules:
- commands: ['move --workspace web', 'focus --workspace web']
match:
- window_process: { regex: "chrome" }
- commands: ['move --workspace music', 'focus --workspace music']
match:
- window_process: { regex: "cloudmusic" }
- commands: ['move --workspace message', 'focus --workspace message']
match:
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<!-- saved from url=(0056)http://139.196.171.60:5000/uploads/index_1761040989.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>掐指神通</title>
<style>
:root { --bg: #0b1020; --panel: #121a33; --accent: #5b8cff; --text: #e8eefc; --muted: #9bb0da; --danger: #ff6b6b; }
* { box-sizing: border-box; }
html{background-color: #0b1020;}
@echo off
setlocal enabledelayedexpansion
:: 设置 FFmpeg 的路径,如果已添加到环境变量则无需修改
:: 如果未添加到环境变量,请修改为你的 FFmpeg 可执行文件的完整路径,例如:
:: set "FFMPEG_PATH=C:\Program Files\ffmpeg\bin\ffmpeg.exe"
set "FFMPEG_PATH=ffmpeg.exe"
:: 源文件夹 (要压缩的 MP4 文件所在目录)
set "SOURCE_DIR=E:\素材"
@cornradio
cornradio / js
Last active April 17, 2025 12:05
jandan-comment.js
#!/usr/bin/env node
//update https://gist.github.com/cornradio/55d9e5053260e7db8c9464e05edffcfa
const https = require('https');
const readline = require('readline');
const postId = process.argv[2] || '102312';
let currentPage = 1;
let comments = [];
@cornradio
cornradio / cool1.swift
Last active March 20, 2025 09:49
cool1.swift
import SwiftUI
import AppKit
struct AppInfo: Identifiable, Codable, Equatable, Hashable {
let id = UUID()
let name: String
let path: String
var isFavorite: Bool = false
}
@cornradio
cornradio / squid_install.sh
Last active January 10, 2025 09:42
squid_install.sh 允许任何地址访问、访问任何端口、允许转发。
#!/bin/bash
# 确保脚本以root权限运行
if [ "$EUID" -ne 0 ]; then
echo "请以root用户或使用sudo运行此脚本"
exit 1
fi
# 检测操作系统类型
if [[ $(grep -oP '(?<=^NAME=")[^"]*' /etc/os-release) =~ "Ubuntu" ]]; then
@cornradio
cornradio / gist:0bb1d71d895909130257135cf2afb6b7
Last active November 22, 2024 07:07
steamdeck_desktopmode.sh
#!/bin/bash
unset LD_PRELOAD
unset XDG_DESKTOP_PORTAL_DIR
unset XDG_SEAT_PATH
unset XDG_SESSION_PATH
RES=$(xdpyinfo | awk '/dimensions/{print $2}')
# Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper
# whilst being launched by plasma-session
@cornradio
cornradio / terraria_lbutton.ahk
Created February 2, 2023 03:03
ahk script for terraria mouse holidng and auto clicking
;shift + lbutton to trigger holding (auto mineing)
;click Lbutton again to stop
+LButton::Send, {LButton Down}
; click f5 to trigger rapid clicking (fight)
; click f6 to stop rapid clicking
stop_signal := False
F5::
stop_signal == False
Loop