Skip to content

Instantly share code, notes, and snippets.

@alexkuang0
alexkuang0 / agent loop
Created March 12, 2025 13:23 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
while read -r ip_range do
ufw deny from $ip_range
done < ip_ranges.txt
@alexkuang0
alexkuang0 / extract.sh
Created April 27, 2022 05:52
Extract audios from all videos in a directory
# assume that all videos in the directory are of the same codec
# first choose one of the videos to see the codec of audio
ffprobe xxx.mp4
# batch convert (in this example: mp4 -> aac)
for i in *.mp4; do ffmpeg -i "$i" -vn -acodec copy "${i%.*}.aac"; done
123456
21eternal
3322964
ABCDEF
Allen
AmiKara
Baboo
Card
Dashy
Delbert
// Solution from:
// https://users.rust-lang.org/t/30856/5
use std::collections::{HashMap, hash_map::Entry};
use std::cmp::Eq;
use std::hash::Hash;
use std::thread::sleep;
use std::time::Duration;
struct Cacher<T, U, V>
where T: Fn(&U) -> V, U: Eq + Hash {
123mxs
AlalajiYH
TryRSS
Yun
a2121441645
cbbcww
linglingqi
nobody
quarry
oui
cnmzdk
delete
djx
ethan2000
ewuzxl
extrastu
fack
feiyu
feng
forfunfor
@alexkuang0
alexkuang0 / Brewfile
Created January 13, 2021 07:57
My Homebrew dump file.
tap "beeftornado/rmtree"
tap "homebrew/bundle"
tap "homebrew/cask", "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask.git"
tap "homebrew/cask-drivers", "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-drivers.git"
tap "homebrew/cask-fonts", "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-fonts.git"
tap "homebrew/cask-versions", "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-cask-versions.git"
tap "homebrew/core", "https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
tap "homebrew/services"
brew "asciinema"
brew "bat"