Skip to content

Commit

Permalink
添加了下载功能
Browse files Browse the repository at this point in the history
  • Loading branch information
wxnacy committed May 22, 2020
1 parent c3c13a6 commit 412b7ab
Show file tree
Hide file tree
Showing 19 changed files with 214 additions and 138 deletions.
Binary file added 71463E91-2E01-41CC-B10F-3A01857AB2DE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 7550C092-A6C8-4BB2-A593-865B5A9F831B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions commands/cmd_javascript
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 恢复上次保存的任务状态
pm2 resurrect
# 保存当前任务列表
pm2 save

9 changes: 7 additions & 2 deletions commands/cmd_other
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
df -h
# 查看第一层目录的文件夹大小,并格式化输出
du -d 1 -h
# 恢复上次保存的任务状态
pm2 resurrect

# 查看服务器定时任务列表
crontab -l
# 编辑服务器定时任务
crontab -e

# 复制一段文字
echo -n 'hello world' | pbcopy
# 复制当前目录
echo -n $(echo -n $(pwd) | sed 's/ /\\ /g') | pbcopy
# 黏贴
pbpaste
2 changes: 2 additions & 0 deletions commands/cmd_python
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# py3 启动一个默认 8000 端口的服务
python -m http.server
18 changes: 0 additions & 18 deletions commands/git.json

This file was deleted.

6 changes: 0 additions & 6 deletions commands/vagrant.json

This file was deleted.

7 changes: 0 additions & 7 deletions deploy/commit.sh

This file was deleted.

8 changes: 0 additions & 8 deletions deploy/get_branch.sh

This file was deleted.

6 changes: 0 additions & 6 deletions deploy/publish.sh

This file was deleted.

31 changes: 0 additions & 31 deletions deploy/push.sh

This file was deleted.

18 changes: 0 additions & 18 deletions deploy/push_tag.sh

This file was deleted.

Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon/python.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon/vagrant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 137 additions & 22 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,32 @@
<false/>
</dict>
</array>
<key>3E407FFE-9A3F-49F5-B15F-CE97FAFAED07</key>
<array>
<dict>
<key>destinationuid</key>
<string>F97B3594-C530-4F63-B5F9-144A70D41B83</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>71463E91-2E01-41CC-B10F-3A01857AB2DE</key>
<array>
<dict>
<key>destinationuid</key>
<string>3E407FFE-9A3F-49F5-B15F-CE97FAFAED07</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>7550C092-A6C8-4BB2-A593-865B5A9F831B</key>
<array>
<dict>
Expand Down Expand Up @@ -184,27 +210,6 @@
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>keyword</key>
<string>run</string>
<key>subtext</key>
<string></string>
<key>text</key>
<string>执行命令并得到结果</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>0FA3CA6F-AB00-446F-95B9-EAB309AA7AD4</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand All @@ -219,7 +224,7 @@
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>5</integer>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
Expand Down Expand Up @@ -266,6 +271,27 @@
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>keyword</key>
<string>run</string>
<key>subtext</key>
<string></string>
<key>text</key>
<string>执行命令并得到结果</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>0FA3CA6F-AB00-446F-95B9-EAB309AA7AD4</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -334,6 +360,74 @@
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argumenttype</key>
<integer>0</integer>
<key>keyword</key>
<string>dl</string>
<key>subtext</key>
<string>默认目录 ~/Downloads</string>
<key>text</key>
<string>下载文件</string>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.keyword</string>
<key>uid</key>
<string>71463E91-2E01-41CC-B10F-3A01857AB2DE</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<false/>
<key>removeextension</key>
<false/>
<key>text</key>
<string>File in ~/Downloads</string>
<key>title</key>
<string>Download successful</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>F97B3594-C530-4F63-B5F9-144A70D41B83</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string># echo -n $(wget -P ${HOME}/Downloads -b -o ${HOME}/Downloads/wget-log $1)
# &gt;&gt; ${HOME}/Downloads/dl-log
cd ${HOME}/Downloads
echo -n $(nohup curl $1 -O &amp;)</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>3E407FFE-9A3F-49F5-B15F-CE97FAFAED07</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string></string>
Expand All @@ -360,13 +454,27 @@
<key>ypos</key>
<integer>35</integer>
</dict>
<key>3E407FFE-9A3F-49F5-B15F-CE97FAFAED07</key>
<dict>
<key>xpos</key>
<integer>350</integer>
<key>ypos</key>
<integer>455</integer>
</dict>
<key>5348461E-968E-4C7D-A961-2C53A47EEB39</key>
<dict>
<key>xpos</key>
<integer>520</integer>
<key>ypos</key>
<integer>35</integer>
</dict>
<key>71463E91-2E01-41CC-B10F-3A01857AB2DE</key>
<dict>
<key>xpos</key>
<integer>180</integer>
<key>ypos</key>
<integer>455</integer>
</dict>
<key>7550C092-A6C8-4BB2-A593-865B5A9F831B</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -402,6 +510,13 @@
<key>ypos</key>
<integer>175</integer>
</dict>
<key>F97B3594-C530-4F63-B5F9-144A70D41B83</key>
<dict>
<key>xpos</key>
<integer>525</integer>
<key>ypos</key>
<integer>455</integer>
</dict>
</dict>
<key>variablesdontexport</key>
<array/>
Expand Down
1 change: 1 addition & 0 deletions pbcopy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello world
Loading

0 comments on commit 412b7ab

Please sign in to comment.