close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_core.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Apr 24, 2020, 10:41:30 PM (6 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v1
|
v2
|
|
| 10 | 10 | while (1) {$wsh.SendKeys('{SCROLLLOCK}'); sleep 60} |
| 11 | 11 | }}} |
| | 12 | |
| | 13 | == SCOOP (Windows Homebrew) == |
| | 14 | |
| | 15 | * without Admin permission |
| | 16 | |
| | 17 | {{{ |
| | 18 | ## Note: if you get an error you might need to change the execution policy (i.e. enable Powershell) with |
| | 19 | Set-ExecutionPolicy RemoteSigned -scope CurrentUser |
| | 20 | |
| | 21 | ## NOTE: install to specified folder 'c:\scoop' |
| | 22 | ## https://techformist.com/install-scoop-for-command-line-nirvana/ |
| | 23 | $env:SCOOP='c:\scoop' |
| | 24 | [environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User') |
| | 25 | iex (new-object net.webclient).downloadstring('https://get.scoop.sh') |
| | 26 | |
| | 27 | scoop install git |
| | 28 | |
| | 29 | # make Symlinks in Windows available |
| | 30 | ## https://stackoverflow.com/questions/32847697/windows-specific-git-configuration-settings-where-are-they-set/32849199#32849199 |
| | 31 | ## https://www.joshkel.com/2018/01/18/symlinks-in-windows/ |
| | 32 | [environment]::setEnvironmentVariable('MSYS','winsymlinks:nativestrict','User') |
| | 33 | |
| | 34 | scoop bucket add java |
| | 35 | scoop bucket add extras |
| | 36 | |
| | 37 | scoop install python |
| | 38 | scoop install ojdkbuild8-full |
| | 39 | scoop install chromedriver |
| | 40 | scoop install vscode-portable |
| | 41 | }}} |
| | 42 | |
| | 43 | ## Git-Bash |
| | 44 | |
| | 45 | * 要注意 `ln -s` 預設是不支援 |
| | 46 | * https://github.com/git-for-windows/git/wiki/Symbolic-Links#creating-directory-junctions |
| | 47 | * 可以改用 cmd.exe 的 "mklink /J <連結> <目標路徑>" |
| | 48 | {{{ |
| | 49 | mklink /J git e:/writable/git |
| | 50 | }}} |