Skip to content

Commit

Permalink
add yarn docker php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
LongStoryMedia committed Nov 19, 2018
1 parent 32e7490 commit aa89c6e
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 74 deletions.
2 changes: 1 addition & 1 deletion .scry.out
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...
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
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.
28 changes: 14 additions & 14 deletions LICENSE
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.
52 changes: 26 additions & 26 deletions PROXIES.md
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)
36 changes: 18 additions & 18 deletions README.md
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.
4 changes: 2 additions & 2 deletions docker.bat
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 %*"
4 changes: 2 additions & 2 deletions git.bat
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 %*"
4 changes: 2 additions & 2 deletions php-cs-fixer.bat
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 %*"
4 changes: 2 additions & 2 deletions phpcs-composer.bat
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 %*"
4 changes: 2 additions & 2 deletions phpcs.bat
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 %*"
4 changes: 2 additions & 2 deletions phpcs.phar.bat
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 %*"
4 changes: 2 additions & 2 deletions yarn.bat
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 %*"

0 comments on commit aa89c6e

Please sign in to comment.