-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32e7490
commit aa89c6e
Showing
12 changed files
with
74 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
I, [2017-08-08 22:55:32 +0000 #6024] INFO -- : Scry is looking into your code... | ||
I, [2017-08-08 22:55:32 +0000 #6024] INFO -- : Scry is looking into your code... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
This being such a simple project, I'm not going to waste a lot of time telling you how to contribute. If you create a proxy file of your own and want to add it or have any ways this project can be improved please create a PR. | ||
This being such a simple project, I'm not going to waste a lot of time telling you how to contribute. If you create a proxy file of your own and want to add it or have any ways this project can be improved please create a PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
Version 2, December 2004 | ||
Copyright (C) 2017 Chris Watson <[email protected]> | ||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
0. You just DO WHAT THE FUCK YOU WANT TO. | ||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
|
||
Version 2, December 2004 | ||
|
||
Copyright (C) 2017 Chris Watson <[email protected]> | ||
|
||
Everyone is permitted to copy and distribute verbatim or modified | ||
copies of this license document, and changing it is allowed as long | ||
as the name is changed. | ||
|
||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | ||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
|
||
0. You just DO WHAT THE FUCK YOU WANT TO. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# List of Proxies | ||
|
||
#### PHP | ||
- [php](./php.bat) | ||
- [composer](./composer.bat) | ||
- [phpcs-composer](./phpcs-composer.bat) | ||
- [phpcs.phar](./phpcs.phar.bat) | ||
- [phpcs](./phpcs.bat) | ||
|
||
#### Haskell | ||
- [ghc](./ghc.bat) | ||
- [ghci](./ghci.bat) | ||
- [ghc-mod](./ghci-mod.bat) | ||
- [cabal](./cabal.bat) | ||
|
||
#### Crystal | ||
- [crystal](./crystal.bat) | ||
- [shards](./shards.bat) | ||
- [icr](./icr.bat) | ||
|
||
#### Clojure | ||
- [clojure](./clojure.bat) | ||
- [lein](./lein.bat) | ||
|
||
#### Java | ||
- [java](./java.bat) | ||
# List of Proxies | ||
|
||
#### PHP | ||
- [php](./php.bat) | ||
- [composer](./composer.bat) | ||
- [phpcs-composer](./phpcs-composer.bat) | ||
- [phpcs.phar](./phpcs.phar.bat) | ||
- [phpcs](./phpcs.bat) | ||
|
||
#### Haskell | ||
- [ghc](./ghc.bat) | ||
- [ghci](./ghci.bat) | ||
- [ghc-mod](./ghci-mod.bat) | ||
- [cabal](./cabal.bat) | ||
|
||
#### Crystal | ||
- [crystal](./crystal.bat) | ||
- [shards](./shards.bat) | ||
- [icr](./icr.bat) | ||
|
||
#### Clojure | ||
- [clojure](./clojure.bat) | ||
- [lein](./lein.bat) | ||
|
||
#### Java | ||
- [java](./java.bat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# WSL Proxy Files | ||
|
||
WSL (Windows Subsystem for Linux) is an awesome bit of innovation by Microsoft that allows you to run Linux inside of Windows 10 without the need for a Virtual Machine. This has several benefits, the largest of which is the memory that you sae by not running a whole secondary OS. Unfortunately it also has it's drawbacks, the biggest of which is a distinct lack of support through editors such as Atom, VSCode, and Sublime Text. | ||
|
||
The goal of this project is to create a collection of "proxy" batch files that can be used to route requests to the linux version of a command. Almost all of the files will have the same layout | ||
|
||
```batch | ||
@echo off | ||
bash.exe -c "php %*" | ||
``` | ||
|
||
As an example usecase take the [atom-linter](https://github.com/steelbrain/linter) package. Most of the linters, such as [linter-php]() require the path to an executable in order to run. If that executable is inside of WSL however, there is no way to access it. | ||
|
||
Using the wsl-proxy `php.bat` file however, you can just replace the path to the executable with `C:\\Users\\myuser\\path\\to\\wsl-proxy\\php.bat`. Requests are now being routed to the linux version of PHP. | ||
|
||
**Pro tip:** If you clone this and add the cloned directory to your windows PATH you will be able to access any of the proxied commands through command prompt (even without the `.bat` extension) | ||
|
||
**Note:** This is an experiment currently and I can't guarentee it will work with everything, but please feel free to add files here. Let's turn this into a one-stop shop for wsl-proxy files. | ||
# WSL Proxy Files | ||
|
||
WSL (Windows Subsystem for Linux) is an awesome bit of innovation by Microsoft that allows you to run Linux inside of Windows 10 without the need for a Virtual Machine. This has several benefits, the largest of which is the memory that you sae by not running a whole secondary OS. Unfortunately it also has it's drawbacks, the biggest of which is a distinct lack of support through editors such as Atom, VSCode, and Sublime Text. | ||
|
||
The goal of this project is to create a collection of "proxy" batch files that can be used to route requests to the linux version of a command. Almost all of the files will have the same layout | ||
|
||
```batch | ||
@echo off | ||
bash.exe -c "php %*" | ||
``` | ||
|
||
As an example usecase take the [atom-linter](https://github.com/steelbrain/linter) package. Most of the linters, such as [linter-php]() require the path to an executable in order to run. If that executable is inside of WSL however, there is no way to access it. | ||
|
||
Using the wsl-proxy `php.bat` file however, you can just replace the path to the executable with `C:\\Users\\myuser\\path\\to\\wsl-proxy\\php.bat`. Requests are now being routed to the linux version of PHP. | ||
|
||
**Pro tip:** If you clone this and add the cloned directory to your windows PATH you will be able to access any of the proxied commands through command prompt (even without the `.bat` extension) | ||
|
||
**Note:** This is an experiment currently and I can't guarentee it will work with everything, but please feel free to add files here. Let's turn this into a one-stop shop for wsl-proxy files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "docker %*" | ||
@echo off | ||
bash.exe -c "docker %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "git %*" | ||
@echo off | ||
bash.exe -c "git %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "php-cs-fixer %*" | ||
@echo off | ||
bash.exe -c "php-cs-fixer %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "~/.composer/vendor/bin/phpcs %*" | ||
@echo off | ||
bash.exe -c "~/.composer/vendor/bin/phpcs %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "phpcs %*" | ||
@echo off | ||
bash.exe -c "phpcs %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "php phpcs.phar %*" | ||
@echo off | ||
bash.exe -c "php phpcs.phar %*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@echo off | ||
bash.exe -c "yarn %*" | ||
@echo off | ||
bash.exe -c "yarn %*" |