init: Alfred preferences
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "[Interface]\nPrivateKey = \nListenPort = 51820\nAddress = 10.10.10.10\/16\nDNS = 192.168.42.53\n\n[Peer]\nPublicKey = \nAllowedIPs = 10.10.0.4\/32, 192.168.42.0\/24, 192.168.88.0\/24, 192.168.168.0\/24\nEndpoint = timmy.dyndns.tv:51820\nPersistentKeepalive = 25",
|
||||
"uid" : "E93394A4-4377-4B0A-B798-27F13F6A7E45",
|
||||
"name" : "cfg",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
BIN
Alfred.alfredpreferences/snippets/wireguard/icon.png
Normal file
BIN
Alfred.alfredpreferences/snippets/wireguard/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
10
Alfred.alfredpreferences/snippets/wireguard/info.plist
Normal file
10
Alfred.alfredpreferences/snippets/wireguard/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" : "logread | grep wg0",
|
||||
"uid" : "0C0CFDF8-B114-4837-AB91-6FA0608C859E",
|
||||
"name" : "logread | grep wg0",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "cat {cursor} | qrencode -t ANSIUTF8",
|
||||
"uid" : "60394704-2DC4-49C8-8A9E-189691189AA4",
|
||||
"name" : "qrencode",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "uci delete network.@wgpeer[0]",
|
||||
"uid" : "42F526CF-598B-4D83-BE5A-C6B2973EBCA7",
|
||||
"name" : "uci delete network.@wgpeer[0]",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg-quick up wg0",
|
||||
"uid" : "4D46B378-9CAB-4596-A9BE-1980EB41871B",
|
||||
"name" : "啟動 WireGuard 介面 wg0",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg genkey | tee wg.key | wg pubkey > wg.pub",
|
||||
"uid" : "B7E76900-44FD-4641-AF8B-AACA45AFB4F2",
|
||||
"name" : "生成 WireGuard 金鑰對並儲存",
|
||||
"keyword" : "wg"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg-quick down wg0 ; wg-quick up wg0",
|
||||
"uid" : "B5DED236-1967-44EC-9EA8-465E2ED763F1",
|
||||
"name" : "重啟 WireGuard 介面 wg0",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "ifdown wg0\nifup wg0",
|
||||
"uid" : "A0A89947-8152-470F-9D5B-46787E82F80E",
|
||||
"name" : "重啟網路介面 wg0",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg showconf wg0",
|
||||
"uid" : "2DA81A74-B965-4EBC-9F64-D8302BB29306",
|
||||
"name" : "顯示 WireGuard 介面 wg0 配置",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg show",
|
||||
"uid" : "E02D79FF-C106-4873-89B1-066226790A17",
|
||||
"name" : "顯示 WireGuard 介面狀態",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"alfredsnippet" : {
|
||||
"snippet" : "wg show all dump",
|
||||
"uid" : "D3F1007F-BE30-4FC4-915E-90597A7462BA",
|
||||
"name" : "顯示所有 WireGuard 設定詳細資訊",
|
||||
"keyword" : ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user