init: Alfred preferences
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tmux -CC attach || tmux -CC",
|
||||
"uid" : "4F48EC40-3F5D-425F-8E22-2E98C930402F",
|
||||
"name" : "Attach to an existing Tmux session if available, otherwise create a new Tmux session with Tmux Control Mode enabled.",
|
||||
"keyword" : "tmux"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tcpdump -evni any udp port 547",
|
||||
"uid" : "8E28130A-94FA-41BA-A8EB-4AF584D10F88",
|
||||
"name" : "Capture UDP Traffic on Port 547 using tcpdump command",
|
||||
"keyword" : "tcpdump"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tcpdump -evni any udp port 67",
|
||||
"uid" : "83721240-62CC-4399-989B-E41925AB858F",
|
||||
"name" : "Capture UDP Traffic on Port 67 using tcpdump command",
|
||||
"keyword" : "tcpdump"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "cd ~\/Downloads",
|
||||
"uid" : "8FFD01F4-D495-4A2C-A9EF-EAC26044464F",
|
||||
"name" : "Change Directory to Downloads",
|
||||
"keyword" : "cd"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "timedatectl status",
|
||||
"uid" : "E0020BE0-FD95-4A86-A0C5-95AA8635E3D8",
|
||||
"name" : "Check System Time and Date Status using timedatectl command",
|
||||
"keyword" : "timedatectl"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ubuntu-support-status",
|
||||
"uid" : "079F45B0-0DD2-4759-AB58-E68E94855A50",
|
||||
"name" : "Check Ubuntu Support Status",
|
||||
"keyword" : "ubuntu"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "[[ -s \"\/usr\/local\/etc\/grc.zsh\" ]] && source \/usr\/local\/etc\/grc.zsh",
|
||||
"uid" : "7D7F68BE-949C-4D9C-9150-472A74BF5198",
|
||||
"name" : "Check and load configuration file.",
|
||||
"keyword" : "grc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "nc -z -w 1 {cursor} | echo $?",
|
||||
"uid" : "C730D1C6-0836-445A-A050-63F4DBB94399",
|
||||
"name" : "Check port open status command",
|
||||
"keyword" : "nc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "xattr -rc \"{clipboard}\"\ntar --disable-copyfile -czvf \"{clipboard}_$(date +%Y%m%d%H%M%S).tar.gz\" \"{clipboard}\"\n",
|
||||
"uid" : "6EEAC46A-A337-4DB6-A200-E458A1ADA8B7",
|
||||
"name" : "CleanAndTar",
|
||||
"keyword" : "tarc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "uniq -c",
|
||||
"uid" : "96E5F26E-5222-4228-B21C-5F930BF5CE6B",
|
||||
"name" : "Count Consecutive Occurrences and Display Unique Lines using uniq command",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo tar -pczvf",
|
||||
"uid" : "C66977C9-7720-41EF-90F9-A2C0D9E5A35D",
|
||||
"name" : "Create a Compressed Tar Archive using tar command with sudo privileges.",
|
||||
"keyword" : "tar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "socat -v TCP4-LISTEN:3478,fork stdout",
|
||||
"uid" : "3C438526-9329-4733-B432-51CE926D3CB8",
|
||||
"name" : "Create a server on TCP port 3478 and output received data to standard output.",
|
||||
"keyword" : "socat"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "cat << EOF | sudo tee myfile\n…\nEOF",
|
||||
"uid" : "CFC498FC-0A03-44DA-A614-37E5D11ADB11",
|
||||
"name" : "Create and Write Content to a File Named \"myfile\" Using sudo",
|
||||
"keyword" : "EOF"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "yt-dlp -f mp4 -o \"%(title)s.%(ext)s\" {cursor}",
|
||||
"uid" : "732A4289-6C73-4A07-BBF6-BBDDE0569B42",
|
||||
"name" : "Download YouTube Video as MP4 using yt-dlp with a custom output filename format.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "echo {cursor} | awk -F. '{print $1}'",
|
||||
"uid" : "94E6A983-C030-417C-87FB-3CE8F0076237",
|
||||
"name" : "Extract Filename without Extension using awk command",
|
||||
"keyword" : "awk"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar zxvf {clipboard} -C {cursor} --strip-components 1",
|
||||
"uid" : "D5D58626-EE4C-4E4A-833D-6EBF954A0E3D",
|
||||
"name" : "Extract tar.gz file to a specified directory and remove the top-level directory.",
|
||||
"keyword" : "tar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "rsync -vrltDW --delete --progress --stats --size-only ",
|
||||
"uid" : "5510DCD5-C7AC-421E-AD3C-40CACFE32C76",
|
||||
"name" : "FastSyncPlus",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "pwgen -s 12 1",
|
||||
"uid" : "B9867CF0-F107-4482-A7FB-C697E2E66B98",
|
||||
"name" : "Generate a Random Password with 12 Characters using pwgen command",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "diceware -n 2",
|
||||
"uid" : "B3EC9086-960D-4258-9FE1-FFD2B031E264",
|
||||
"name" : "Generate a random password with two words.",
|
||||
"keyword" : "diceware"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ssh-keygen -t ed25519",
|
||||
"uid" : "9D496730-7090-462E-9C80-573A53230E7B",
|
||||
"name" : "Generate an Ed25519 SSH Key Pair",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ssh-keygen -t rsa -b 2048",
|
||||
"uid" : "7C1C04C2-FB78-4CBE-B9D3-C91020897E9F",
|
||||
"name" : "Generate an RSA SSH key pair with a key size of 2048 bits.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "stat -c \"%a %n\"",
|
||||
"uid" : "82C0B158-C51B-40D2-A984-12BB066CE587",
|
||||
"name" : "Get File Permissions and Filename using stat command",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "stat -c \"%a\"",
|
||||
"uid" : "2ABD46FE-1FA0-4CBA-B7C3-E3026CF9723A",
|
||||
"name" : "Get File Permissions using stat command",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "yt-dlp --print filename -f mp4 -o \"%(title)s.%(ext)s\" {cursor}",
|
||||
"uid" : "172B0F59-56D1-4F33-8F0B-54C42460A6D8",
|
||||
"name" : "Get the Filename of the YouTube Video without downloading it using yt-dlp with a custom output filename format.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ss -lntup",
|
||||
"uid" : "64701B51-EA44-445C-B95B-2A99BB07F793",
|
||||
"name" : "List Listening TCP Sockets with Process Details using ss command",
|
||||
"keyword" : "ss"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "screen -ls",
|
||||
"uid" : "11CDD0ED-9A5E-46A1-BDB0-BD3DEC136605",
|
||||
"name" : "List Running Screen Sessions",
|
||||
"keyword" : "screen"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar tvf {clipboard}",
|
||||
"uid" : "F3AABE94-6217-4189-BE44-50AEE9CC7FC9",
|
||||
"name" : "List contents of a tar file.",
|
||||
"keyword" : "tar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar -tvzf {cursor}.tar.gz\t",
|
||||
"uid" : "7808D47D-4D99-428E-B4D8-FFB18278EC92",
|
||||
"name" : "List tar.gz",
|
||||
"keyword" : "tarls\t"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo passwd -l ",
|
||||
"uid" : "91D9348C-ADAC-406A-8BB7-245DEBF30211",
|
||||
"name" : "Lock User Account using passwd command with sudo privileges.",
|
||||
"keyword" : "passwd"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "watch progress",
|
||||
"uid" : "49413EDB-72ED-4A88-97C5-E9FE0C614919",
|
||||
"name" : "Monitor progress status.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "code --folder-uri \"vscode-remote:\/\/ssh-remote+{cursor}\/\"",
|
||||
"uid" : "32F47005-6435-4C33-8043-20C29C678434",
|
||||
"name" : "Open folder remotely via SSH.",
|
||||
"keyword" : "vscode"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo nmap -sn 192.168.1.0\/24",
|
||||
"uid" : "597A07ED-AE35-4AFB-9788-79F4D4BC5884",
|
||||
"name" : "Perform a Ping Scan on the IP range 192.168.1.0\/24 using nmap command with sudo privileges.",
|
||||
"keyword" : "nmap"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo nmap -sS 192.168.42.0\/24",
|
||||
"uid" : "A34FC3F9-9018-49CD-AFC1-400269916A51",
|
||||
"name" : "Perform a TCP SYN Scan on the IP range 192.168.42.0\/24 using nmap command with sudo privileges.",
|
||||
"keyword" : "nmap"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo arp-scan -I en0 --localnet",
|
||||
"uid" : "C547CDB3-0CE0-47A5-8C52-7E6B1563DACE",
|
||||
"name" : "Perform a local network ARP scan using arp-scan command with interface en0 and as a superuser.",
|
||||
"keyword" : "arp-scan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo arp-scan -I en7 --localnet",
|
||||
"uid" : "DC0F8659-C9F3-40AB-AA53-BBCDD639EC88",
|
||||
"name" : "Perform a local network ARP scan using arp-scan command with interface en7 and as a superuser.",
|
||||
"keyword" : "arp-scan"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ping 1.1.1.1",
|
||||
"uid" : "A50440EA-584C-463F-811A-A5A38C269402",
|
||||
"name" : "Ping one.one.one.one",
|
||||
"keyword" : "ping"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ping raspberrypi.local",
|
||||
"uid" : "3480254F-9BDE-48E3-8596-72A693154053",
|
||||
"name" : "Ping raspberrypi.local",
|
||||
"keyword" : "ping"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "dig +short -t txt {cursor}",
|
||||
"uid" : "392A9BE3-DE0A-4C00-84BC-8BB250B041F4",
|
||||
"name" : "Query domain TXT records and show results in short format.",
|
||||
"keyword" : "dig"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "shuf -i 1-10000 -n 1",
|
||||
"uid" : "B0321A78-D5B7-411A-B428-A85742B4E7F3",
|
||||
"name" : "Randomly pick a number from 1 to 10,000.",
|
||||
"keyword" : "shuf"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "socat -v UDP4-RECVFROM:3478,fork stdout",
|
||||
"uid" : "4286E196-77B2-4819-90EF-123DDEC3C0A9",
|
||||
"name" : "Receive data on UDP port 3478 and output to standard output.",
|
||||
"keyword" : "socat"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "zip -r {clipboard:trim}_BACKUP_$(date +\"%Y%m%d%H%M%S\").zip {clipboard:trim}",
|
||||
"uid" : "AE47AC48-ED24-4541-8EFF-646F1B8FFCC8",
|
||||
"name" : "Recursively compress directory into a ZIP backup file with a timestamp.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "cp --archive ",
|
||||
"uid" : "67795CA7-9808-4C37-A318-8CA233F78BCA",
|
||||
"name" : "Recursively copy files and directories, preserving attributes and timestamps.",
|
||||
"keyword" : "cp"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "dot_clean -m .",
|
||||
"uid" : "97C8897D-FA4F-4ADC-B063-380E53E9C0D1",
|
||||
"name" : "Remove extra metadata files in the directory.",
|
||||
"keyword" : "dot_clean"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "dot_clean .",
|
||||
"uid" : "327B247B-1308-4CC1-AB14-0AE869CDFC4D",
|
||||
"name" : "Remove hidden files in the directory.",
|
||||
"keyword" : "dot_clean"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ssh pi@{cursor}",
|
||||
"uid" : "3382EC90-151F-4D1D-9C2B-BCB25EAEFF2E",
|
||||
"name" : "SSH into a Raspberry Pi with the specified IP address or hostname.",
|
||||
"keyword" : "ssh"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ssh -t {cursor} 'tmux -CC new -A -s main'",
|
||||
"uid" : "B86B86AC-99A5-4C30-92EC-06FCAEEC9058",
|
||||
"name" : "SSH into a remote server and start a Tmux session named \"main\"",
|
||||
"keyword" : "tmux"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "iw dev wlan0 scan",
|
||||
"uid" : "4AAE3615-64B0-4620-B749-348C31BA60C8",
|
||||
"name" : "Scan nearby Wi-Fi networks.",
|
||||
"keyword" : "iw"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "echo 'Hello, Server!' | nc {cursor} 3478",
|
||||
"uid" : "68CFD50B-407C-426F-9A5E-74516F56ECA4",
|
||||
"name" : "Send message to server IP on port 3478 using TCP.",
|
||||
"keyword" : "nc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "echo 'Hello, UDP Server!' | nc -u -q 0 {cursor} 3478",
|
||||
"uid" : "B32D03EE-C819-4BF0-9708-D1EA087AB0F8",
|
||||
"name" : "Send message to server IP on port 3478 using UDP.",
|
||||
"keyword" : "nc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "timedatectl set-timezone Asia\/Taipei",
|
||||
"uid" : "3B35575E-1998-4C2F-A047-2A372E6006EF",
|
||||
"name" : "Set the Timezone to Asia\/Taipei using timedatectl command",
|
||||
"keyword" : "timedatectl"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sw_vers",
|
||||
"uid" : "218BCD71-C5F3-41A4-BB00-B28E3504A11D",
|
||||
"name" : "Show macOS system version information.",
|
||||
"keyword" : "sw_vers"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sort -nr",
|
||||
"uid" : "CEC1723E-0C83-4EDA-BAFA-3C1D9A1DA6BA",
|
||||
"name" : "Sort in Non-Reverse Numerical Order",
|
||||
"keyword" : "sort"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ttyd bash",
|
||||
"uid" : "0BE56ED2-4D77-4420-8C41-2FA7A8B6496B",
|
||||
"name" : "Start a Bash shell session using ttyd.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ttyd zsh",
|
||||
"uid" : "E77C05C6-186B-4F3D-AB6F-4E42958D06B4",
|
||||
"name" : "Start a Zsh shell session using ttyd.",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "rsync -rltvp --delete ~\/Sync\/ \/Volumes\/980NVMe500GB\/Sync\/",
|
||||
"uid" : "30709364-FADC-486F-9BFC-8FD4F8E24C01",
|
||||
"name" : "Sync Sync folder from home directory to external drive, preserve attributes, and delete extra files in target.",
|
||||
"keyword" : "rsync_home_sync_to_512gb_ssd"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "rsync -rltvp --delete ~\/Sync\/ \/Volumes\/Shared\/Sync\/",
|
||||
"uid" : "5F51CCCA-B11B-48B6-96D6-E459F7F90DD0",
|
||||
"name" : "Sync files from ~\/Sync\/ to \/Volumes\/Shared\/Sync\/ using rsync with options: -rltvp and --delete",
|
||||
"keyword" : "rsync_home_sync_to_synology_nas"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "# TODO: Add your code here",
|
||||
"uid" : "98C52265-6157-44C8-957C-42DB4B87403D",
|
||||
"name" : "# TODO: Add your code here",
|
||||
"keyword" : "TODO"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "timedatectl list-timezones",
|
||||
"uid" : "112EF3A9-F626-480C-82F5-9731E830AFE5",
|
||||
"name" : "TZList",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar -czvf \"{clipboard}_$(date +%Y%m%d%H%M%S).tar.gz\" \"{clipboard}\"",
|
||||
"uid" : "A57529C7-6122-4A3A-A6EC-22549E782DB3",
|
||||
"name" : "TimeStampedTar",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "nc -w 1 -z -u -v {cursor} ",
|
||||
"uid" : "D6EBF294-0A94-4C8D-80F7-070E898B15E1",
|
||||
"name" : "UDP port scan script command",
|
||||
"keyword" : "nc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo passwd -u {cursor} ",
|
||||
"uid" : "0EB1FCEC-4AAB-42F4-8887-826ED93B448A",
|
||||
"name" : "Unlock a user account",
|
||||
"keyword" : "passwd"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "awk -F\\. '{print {cursor} }'",
|
||||
"uid" : "656BF5D3-6B23-4A8E-9DCF-6F2C05046596",
|
||||
"name" : "awk_field_print_script.sh",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "\/bin\/bash",
|
||||
"uid" : "9DC96F35-E0C5-47DE-AEF2-E3C067DC42CA",
|
||||
"name" : "bash",
|
||||
"keyword" : "bash"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "# fmt: skip",
|
||||
"uid" : "962E0F3E-2C9D-4568-953B-E4C3023DAA7F",
|
||||
"name" : "black_fmt_skip",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "chmod +x {cursor}",
|
||||
"uid" : "DDF4EF41-912E-49BE-A51C-BD208682F572",
|
||||
"name" : "chmod_add_executable_permission",
|
||||
"keyword" : "chmod"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "# Created by `Gia` on {isodate:yyyy-MM-dd HH:mm:ss}",
|
||||
"uid" : "01DB8DA0-625E-4A6E-B7DC-2E814D3B6EA1",
|
||||
"name" : "created_by_gia_on_datetime",
|
||||
"keyword" : "cbyg"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "# Created by `Timmy` on {isodate:yyyy-MM-dd HH:mm:ss}",
|
||||
"uid" : "7D77BE96-34E4-4E84-BBD7-E5A25509FA52",
|
||||
"name" : "created_by_timmy_on_datetime",
|
||||
"keyword" : "cbyt"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "curl -s http:\/\/ip-api.com\/json | jq",
|
||||
"uid" : "1398F065-9BE4-40E1-AF7C-016A2BF4EBDD",
|
||||
"name" : "curl 搞 IP 資訊查詢,接 jq 直接砍 JSON 解析",
|
||||
"keyword" : "ip"
|
||||
}
|
||||
}
|
||||
BIN
Alfred.alfredpreferences/snippets/Favorites/icon.png
Normal file
BIN
Alfred.alfredpreferences/snippets/Favorites/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
10
Alfred.alfredpreferences/snippets/Favorites/info.plist
Normal file
10
Alfred.alfredpreferences/snippets/Favorites/info.plist
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>snippetkeywordprefix</key>
|
||||
<string></string>
|
||||
<key>snippetkeywordsuffix</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "killall Dock",
|
||||
"uid" : "F7A15C2D-F7A5-495A-A64A-DAAB502039AA",
|
||||
"name" : "killall Dock",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ls -l --sort newest",
|
||||
"uid" : "3D560319-E962-4D2E-9E30-CD172C3F9C49",
|
||||
"name" : "ls -l --sort newest",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "nc -zv {cursor} 3478",
|
||||
"uid" : "CA66E558-A9F5-4338-9795-CEE447BD73F1",
|
||||
"name" : "nc tests connection to server IP on port 3478.",
|
||||
"keyword" : "nc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ping ",
|
||||
"uid" : "E404291C-7C1D-454D-9827-14E00A456044",
|
||||
"name" : "ping",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "awk '{ print $1 }'",
|
||||
"uid" : "C361E9D2-42E7-4AB4-967B-A878D974605C",
|
||||
"name" : "print_first_field_with_awk",
|
||||
"keyword" : "awk"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "rsync -vrltDW --delete --progress --stats --size-only \/Volumes\/980NVMe500GB\/Sync\/ \/Volumes\/NO\\ NAME\/Sync\/",
|
||||
"uid" : "6D9EE091-288F-4CEA-9CD5-A4202DDB5466",
|
||||
"name" : "rsync -vrltDW --delete --progress --stats --size-only \/Volumes\/980NVMe500GB\/Sync\/ \/Volumes\/NO\\ NAME\/Sync\/",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo arping -I en0",
|
||||
"uid" : "30C019AD-47E6-410E-8050-CFD5F5F75AD5",
|
||||
"name" : "sudo_arping_with_interface",
|
||||
"keyword" : "arping"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo cp --archive {clipboard:trim} {clipboard:trim}_BACKUP_$(date +\"%Y%m%d%H%M%S\")",
|
||||
"uid" : "C14D6CE1-E2E0-4C1C-BA50-44EABB69AF9B",
|
||||
"name" : "sudo_cp_archive_with_timestamp_suffix",
|
||||
"keyword" : "cp"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo netstat -tulpn",
|
||||
"uid" : "350A32A2-88AE-4ED6-BD1B-F9239FA83276",
|
||||
"name" : "sudo_netstat_list_tcp_listening_ports",
|
||||
"keyword" : "netstat"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar -cvzf {cursor}.tar.gz {cursor}\t",
|
||||
"uid" : "A82DA3FF-8CFB-4507-B470-BE296669E51A",
|
||||
"name" : "tar-create",
|
||||
"keyword" : "tar-create"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar -xvzf {cursor}.tar.gz",
|
||||
"uid" : "D80DCB44-663E-4F75-BD02-7D52C8696853",
|
||||
"name" : "tar-extract",
|
||||
"keyword" : "tar-extract"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar -tvzf {cursor}.tar.gz --test-label",
|
||||
"uid" : "6713BBBA-26D9-4262-90B7-3856D49F160C",
|
||||
"name" : "tar-test",
|
||||
"keyword" : "tar-test"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "unison \/Volumes\/980NVMe500GB\/Sync \"\/Volumes\/NO NAME\/Sync\" -perms 0",
|
||||
"uid" : "5D458B40-81AD-4B58-8198-919342BA7336",
|
||||
"name" : "unison \/Volumes\/980NVMe500GB\/Sync \"\/Volumes\/NO NAME\/Sync\" -perms 0",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wormhole send {cursor} ",
|
||||
"uid" : "D6927E3E-A15B-4A94-AAB0-EAE16404B9CF",
|
||||
"name" : "wormhole send",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "find . -type d -name \"__pycache__\" -exec rm -rf {} +",
|
||||
"uid" : "11A25DE0-085D-4B23-AA75-FA473D21FE03",
|
||||
"name" : "刪除所有 pycache 目錄",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "rsync -rltvp --delete \/Volumes\/980NVMe500GB\/timmy_projects \/Volumes\/Shared\/timmy_projects\/",
|
||||
"uid" : "365ED9DC-9C07-4EC7-86ED-5D8AA8E36FC1",
|
||||
"name" : "同步 timmy_projects 資料夾並保持一致",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ag --python {cursor} ",
|
||||
"uid" : "3478C6B6-E83A-46E3-A709-16F2AF8468E9",
|
||||
"name" : "在 Python 檔案中搜尋關鍵字",
|
||||
"keyword" : "ag"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ag --shell {cursor} ",
|
||||
"uid" : "EF5B7E5D-65A3-4E6A-8B3D-ECED87B60CC7",
|
||||
"name" : "在 Shell 腳本中搜尋關鍵字",
|
||||
"keyword" : "ag"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "arping -I eth0",
|
||||
"uid" : "5B580E5D-066B-4DB3-A511-8073677090AF",
|
||||
"name" : "在 eth0 介面發送 ARP 探測封包",
|
||||
"keyword" : "arping"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "docker run --rm -it --net host nicolaka\/netshoot curl ifconfig.me",
|
||||
"uid" : "8E8B4171-E182-45CF-9703-F1E439EC3FA9",
|
||||
"name" : "在主機網路模式下查詢外部 IP",
|
||||
"keyword" : "ifconfig.me"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar --exclude='.DS_Store' --exclude='sockets\/*' --exclude='known_hosts*' -cvzf ssh.tgz -C ~\/.ssh .",
|
||||
"uid" : "6F6F2403-F781-4DA5-8108-D54F6BA52B98",
|
||||
"name" : "建立 SSH 設定的壓縮檔",
|
||||
"keyword" : "tar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ln -s $(realpath {cursor}) ~\/.ssh",
|
||||
"uid" : "50A4FA2F-D044-42B8-A812-BB66FF830020",
|
||||
"name" : "建立 SSH 設定的符號連結",
|
||||
"keyword" : "ln"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar \\\n --exclude='.git' \\\n --exclude='.venv' \\\n --exclude='__pycache__' \\\n --exclude='*.py[cod]' \\\n --exclude='.pytest_cache' \\\n --exclude='.mypy_cache' \\\n --exclude='.ruff_cache' \\\n --exclude='build' \\\n --exclude='dist' \\\n --exclude='.coverage' \\\n -zcvf {clipboard}_$(date +\"%Y%m%d%H%M%S\").tar.gz \\\n {clipboard}",
|
||||
"uid" : "B67EDA71-B0CC-4F5A-940A-855D7F051498",
|
||||
"name" : "建立排除 Python 產物的壓縮檔",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar --exclude='.\/node_modules' -zcvf {clipboard}_$(date +\"%Y%m%d%H%M%S\").tar.gz {clipboard}",
|
||||
"uid" : "275E9F43-B905-4112-993A-0E1E16C57127",
|
||||
"name" : "建立排除 node_modules 的壓縮檔",
|
||||
"keyword" : "tar"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "tar --exclude-from={clipboard}\/.tarignore -zcvf \"{clipboard}_$(date +\"%Y%m%d%H%M%S\").tar.gz\" \"{clipboard}\"",
|
||||
"uid" : "3DC2BE7C-4B0C-4DCD-B6BE-80B4B87363DC",
|
||||
"name" : "建立排除檔案的壓縮檔",
|
||||
"keyword" : "targz"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "networkctl status",
|
||||
"uid" : "305B4519-5B1B-4A3C-AF16-7899BBE80A03",
|
||||
"name" : "查看網路介面狀態",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "sudo sh -c 'echo 3 > \/proc\/sys\/vm\/drop_caches'",
|
||||
"uid" : "AE526B2C-FCFC-495D-BED4-90ED848AE825",
|
||||
"name" : "清除 Linux 檔案快取",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "mkvpropedit {cursor} --tags all:",
|
||||
"uid" : "48B5C2CE-8DA4-40EE-9CE8-10F61CBC2CCA",
|
||||
"name" : "清除 MKV 檔案的所有標籤",
|
||||
"keyword" : "mkvpropedit"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ping6 2001:b000:168::1",
|
||||
"uid" : "64EA587F-4AB3-407B-ADEF-F5EFDD8D4A19",
|
||||
"name" : "測試 IPv6 網路連線",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ping6 2001:b000:168::2",
|
||||
"uid" : "94DD18B4-0FA8-4757-934B-92068B4BC6B4",
|
||||
"name" : "測試 IPv6 網路連線",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user