Skip to content

Instantly share code, notes, and snippets.

@sadikaya
sadikaya / cmder-in-webstorm.md
Created November 28, 2016 06:52
Cmder inside Webstorm terminal
  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script.
  2. In your IntelliJ terminal settings, use "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
@sadikaya
sadikaya / git-bash-in-webstorm.md
Last active February 13, 2024 01:23
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
@sadikaya
sadikaya / git-mirror.md
Created November 20, 2016 10:47
Mirror git repository, good for backup or migration
git clone --mirror <url_of_old_repo>
cd <name_of_old_repo>
git remote add new-origin <url_of_new_repo>
git push new-origin --mirror
@sadikaya
sadikaya / package.json
Last active November 18, 2016 13:31
use npm-scripts to deploy build folder to gh-pages.
{
"scripts": {
"deploy": "git push origin :gh-pages && git subtree push --prefix [build-folder] origin gh-pages"
}
}
@sadikaya
sadikaya / npm-global-check.md
Created November 11, 2016 12:24
check globally installed npm packages
npm list -g --depth=0
$ npm list -g --depth=0
C:\Users\skay\AppData\Roaming\npm
+-- colorguard@1.2.0
+-- create-react-app@0.6.0
+-- node-gyp@3.4.0