Skip to content

Instantly share code, notes, and snippets.

View erbanku's full-sized avatar
Building awesome

Cactus erbanku

Building awesome
View GitHub Profile
@erbanku
erbanku / autohotkey-auto-clicker.ahk
Created August 6, 2024 01:40
autohotkey-auto-clicke
#MaxThreadsPerHotkey 3
^z:: ; Ctrl+Z to toggle
Toggle := !Toggle
Loop
{
If (!Toggle)
Break
Click
Sleep 50 ; Make this number higher for slower clicks, lower for faster.
@erbanku
erbanku / mouse-and-keyboard-macro-recorder.ahk
Created November 24, 2024 03:34
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:34 +08:00 (1732419260)
;-----------------------------------
; Macro Recorder v2.1+ By FeiYue (modified by Speedmaster)
;
; Description: This script records the mouse
; and keyboard actions and then plays back.
;
; F1 --> Record(Screen) (CoordMode, Mouse, Screen)
; F2 --> Record(Window) (CoordMode, Mouse, Window)
; F3 --> Stop Record/Play
; F4 --> Play LogFile
@erbanku
erbanku / autohotkey-auto-clicker.ahk
Created November 24, 2024 03:37
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:37 +08:00 (1732419449)
#MaxThreadsPerHotkey 3
!^z::
Toggle := !Toggle
Loop
{
If (!Toggle)
Break
Click
Sleep 50 ; Make this number higher for slower clicks, lower for faster.
@erbanku
erbanku / System Timer.ahk
Created November 24, 2024 03:38
(Windows) Created by Cactus with ♥ using GitHub-CLI at Sun 11/24/2024 11:38 +08:00 (1732419486)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Persistent
#SingleInstance, Force
#NoEnv
#NoTrayIcon
@erbanku
erbanku / wsl_clash_proxy.sh
Created March 7, 2025 12:56 — forked from libChan/wsl_clash_proxy.sh
WSL2使用clash for windows代理
# WSL通过Win访问网络,所以WSL的网关指向的是Windows,DNS服务器指向的也是Windows,设置WSL的proxy为win的代理ip+端口即可
# WSL中的DNS server在/etc/resolv.conf中查看,该文件是由/etc/wsl.conf自动生成的。
# 如果关闭了wsl.conf中自动生成resolve.conf并自行修改了resolve.conf,DNS nameserver并不是本机win ip
# 需要开启wsl.conf的自动生成,再运行以下命令
# https://zhuanlan.zhihu.com/p/153124468
# 添加到环境变量设置中,例如~/.zshrc
export hostip=$(cat /etc/resolv.conf |grep -oP '(?<=nameserver\ ).*')
export https_proxy="http://${hostip}:7890"
export http_proxy="http://${hostip}:7890"
@erbanku
erbanku / update-mathpix-notes-archive-online-images-to-local.py
Last active May 22, 2025 10:07
Update Mathpix Notes archive online images to local (including updating links in the file).
import os
import re
import requests
from urllib.parse import urlparse
def download_file(url, folder):
parsed_url = urlparse(url)
filename = os.path.basename(parsed_url.path)
base, ext = os.path.splitext(filename)
@erbanku
erbanku / autohotkey-snapshot-file-with-timestamps.ahk
Created May 25, 2025 14:59
(Windows-IRX9) Created by Cactus with ♥ using GitHub-CLI at Sun 05/25/2025 22:59 +08:00 (1748185170)
#Requires AutoHotkey v2.0
#SingleInstance Force
^+s::
{
; Configuration
destFolder := "D:\OneDrive\Documents\Snapshots"
; Create destination folder if it doesn't exist
if !DirExist(destFolder) {

清华大学数据大讲堂第十一讲总结:AI 时代下数据既要保护又要利用的思考与实践

时间:2025-09-12 19:21:36
主题:AI 时代的数据保护与利用、AI+网络安全、隐私计算与数据基础设施、AI 本身的安全治理

速读要点(Executive Summary)

  • 安全形势随技术演进阶段性跃迁:1995 病毒 → 2005 Web/SQL 注入 → 2015 云与大数据 → 2023-2025 大模型与智能体(Agent)。
  • AI+安全的根本变化:由“平台”走向“平台+大脑”,智能体复刻专家研判流程,显著提升告警降噪、研判与处置效率。
  • 动态数据安全成为主线:动态分类分级、动态授权、动态脱敏、动态策略与动态风险感知,支撑高频/跨域的数据流通。
  • API 成为数据流通高频载体:需从“机器/IP”转向“业务账号/场景”的精细化治理。
@erbanku
erbanku / you_are_not_right.sh
Created October 13, 2025 13:50 — forked from ljw1004/you_are_not_right.sh
A UserPromptSubmit hook for Claude Code to stop it saying "You're right"
#!/bin/bash
set -euo pipefail
trap 'echo "at line $LINENO, exit code $? from $BASH_COMMAND" >&2; exit 1' ERR
# This is a Claude Code hook to stop it saying "you are right".
#
# Installation:
# 1. Save this script and chmod +x it to make it executable.
# 2. Within Claude Code, /hooks / UserPromptSubmit > Add a new hook (this file)
#