Skip to content

Instantly share code, notes, and snippets.

View Nikita-schetko's full-sized avatar

Nikita Shc Nikita-schetko

View GitHub Profile
@Nikita-schetko
Nikita-schetko / replace-master
Created January 20, 2017 19:46
How to replace master branch in git, entirely, from another branch?
git checkout seotweaks
git merge -s ours master
git checkout master
git merge seotweaks
@Nikita-schetko
Nikita-schetko / snippetsLinks
Created January 26, 2017 09:23
Useful snippets for js
@Nikita-schetko
Nikita-schetko / gist:91770369189b1425e0f0bc57a2d518dd
Created January 28, 2017 17:14
Remove folder with long filenames inside
rimraf <dir>
rimraf is a Node.js package, so you will need to install Node.js which includes npm. Then you can run:
npm install -g rimraf
@Nikita-schetko
Nikita-schetko / gist:a3db3e34445058c15d140d2f9e85c979
Created February 5, 2017 08:03
Push to your repo (Change origin)
git remote set-url origin ***************GIT_ADRESS**********.git
git push -u origin master
@Nikita-schetko
Nikita-schetko / Typings
Created February 19, 2017 06:15
Typings Install
typings search jquery
typings install dt~jquery --global --save
http://www.bardev.com/2016/06/21/using-visual-studio-code-ceate-angularjs-applications/
@Nikita-schetko
Nikita-schetko / gist:75e04090d21210f7e43dad9fa4855fef
Created April 4, 2017 09:45
Kill process on localhost 3000
C:\Users\username>netstat -o -n -a | findstr 0.0:3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
C:\Users\username>taskkill /F /PID 3116
https://stackoverflow.com/questions/1139762/ignore-files-that-have-already-been-committed-to-a-git-repository
First commit any outstanding code changes, and then, run this command:
git rm -r --cached .
This removes any changed files from the index(staging area), then just run:
git add .
Commit it:
@Nikita-schetko
Nikita-schetko / macOsusefulSoft.txt
Created March 10, 2019 13:12
MacOS useful software;
https://pqrs.org/osx/karabiner/ -- Rebind keys (Eject key use as Del forward)
smcFanControl -- Control temperature with fan speed;
turbo boost switcher -- On/Off turbo boost;
@Nikita-schetko
Nikita-schetko / gist:3e70984ddf8d7d904804eaf0c70e50d8
Created April 16, 2019 20:20
Vs code show tabs : only one window opened
workbench.editor:Show Tabs