Browse Source

增加脚本最近使用的脚本

liuyuqi-dellpc 4 years ago
parent
commit
e776c6f639
8 changed files with 120 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 10 0
      CopyOtherTab.xys
  3. 11 0
      Downloading.xys
  4. 43 0
      GitShell.xys
  5. 36 0
      OpenFolderWith.xys
  6. 9 0
      ServeHere.xys
  7. 9 0
      jupyterLab.xys
  8. 1 0
      open-vscode.xys

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/.idea

+ 10 - 0
CopyOtherTab.xys

@@ -0,0 +1,10 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   复制另外一个tab到当前tab(对当前tab操作)
+*********************/
+
+::#1070

+ 11 - 0
Downloading.xys

@@ -0,0 +1,11 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   下载文件
+*********************/
+"downlaod a file..."
+    $a = input("Enter download URL", , , "m");
+    download $a

+ 43 - 0
GitShell.xys

@@ -0,0 +1,43 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   Git 项目常用操作
+Git Shell...
+*********************/
+
+" 1. git init..."
+    run "git init"
+" 2. git clone"
+    $a = input("Enter git reop URL", , , "m");
+    run "git clone $a"
+"2.1 git clone from clipboard"
+    run "git clone ""<clipboard>"""
+" 3. git commit..."
+    run "cmd /c ""git add --all && git commit -m ""Automatic Commit By liuyuqi"""""
+" 4. git auto(Git Automatic Commit & Push)..."
+    run "git add --all && git commit -am 'Automatic Commit By liuyuqi $(date '+%Y-%m-%d %H:%M:%S')' && git pull origin master && git push origin master ; read -n1"
+" 5. git pull"
+    run "cmd /k ""git pull"""
+" 6. git push..."
+    run "git push"
+" 7. git sync(pull/push)"
+    run "git pull && git push"
+" 8. git submodule init..."
+    run "git submodule init"
+" 9. git log -5"
+    run """D:\Program Files\Git\bin\bash.exe"" -l -c ""git log -5 ; read -n1"""
+"10. git ls..."
+    run """D:\Program Files\Git\git-bash.exe"" -l -c ""git ls ; read -n1"""
+"11. git hist..."
+    run """D:\Program Files\Git\git-bash.exe"" -l -c ""git hist && read -n1"""
+"12. git archive..."
+    run "git archive --format zip --output master_src.zip master"
+"13. git checkout..."
+    run "git checkout ."
+"14. git reset(hard)..."
+    run "git reset --hard"
+"15. git clean -n"
+    run "cmd /k ""git clean -n -d"""

+ 36 - 0
OpenFolderWith.xys

@@ -0,0 +1,36 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   文件夹打开方式
+ Open Folder With ...
+*********************/
+
+"1. Open Folder With Sublime..."
+    run "D:/Program-Files/Sublime/sublime_text.exe" "<curpath>"
+"2. Open Folder With Typora..."
+    open "D:\Program Files\Typora\bin\typora.exe" "<curpath>"
+"3. Open Folder With VSCode..."
+    open "D:/Program-Files/VSCode-win32-x64-1.30.1/Code.exe" "<curpath>"
+"4. Open Folder With Brackets..."
+    open "D:\Program Files (x86)\Brackets\Brackets.exe" "<curpath>"
+"5. Open Folder With Hbuilder..."
+    open "D:/Program-Files/HBuilderX/HBuilderX.exe" "<curpath>"
+"6. Open Folder With Idea..."
+    open "D:\Program-Files\ideaIU-2019.2.4.win\bin\idea64.exe" "<curpath>"
+"7. Open Folder With Phpstorm..."
+    open "D:/Program Files/JetBrains/PhpStorm 2019.1.3/bin/phpstorm.exe" "<curpath>"
+"8. Open Folder With GoLand64..."
+    open "D:/Program Files/JetBrains/GoLand 2018.1.1/bin/goland64.exe" "<curpath>"
+"9. Open Folder With PyCharm64..."
+    open "D:/Program Files/JetBrains/PyCharm 2019.1.3/bin/pycharm64.exe" "<curpath>"
+"10. Open Folder With WebStorm..."
+    open "D:\Program Files\JetBrains\WebStorm2018.1.5\bin\webstorm64.exe" "<curpath>"
+"11. Open Folder With Android Studio..."
+    open "D:/Program-Files/android-studio/bin/studio.exe" "<curpath>"
+"12. Open Folder With Jupyter lab..."
+    run "cmd /k ""jupyter lab --notebook-dir=""<curpath>"""""
+"13. Serve With fs..."
+    run """D:\opt\fs-go\fs-go.exe"" -port 8080 -dir  ""<curpath>"""

+ 9 - 0
ServeHere.xys

@@ -0,0 +1,9 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   None
+*********************/
+! D:\opt\fs-go\fs-go.exe -port 8080 -dir  "<curpath>"

+ 9 - 0
jupyterLab.xys

@@ -0,0 +1,9 @@
+/*********************
+ @Author  :   liuyuqi
+ @Contact :   liuyuqi.gov@msn.cn
+ @Time    :   2019/07/23 05:54:37
+ @Version :   1.0
+ @License :   (C)Copyright 2019 liuyuqi.
+ @Desc    :   None
+*********************/
+! "jupyter lab --notebook-dir=""<curpath>"""

+ 1 - 0
open-vscode.xys

@@ -9,3 +9,4 @@
 
 openwith D:\Program-Files\VSCode-win32-x64-1.30.1\Code.exe
 
+CopyOtherTab