Skip to content

Instantly share code, notes, and snippets.

View cornradio's full-sized avatar
🌚
moonnnnnnn

Name cornradio

🌚
moonnnnnnn
View GitHub Profile
@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
@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 / 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