Skip to content

Instantly share code, notes, and snippets.

View mohitt's full-sized avatar
🎯
Focusing

Mohit Thakral mohitt

🎯
Focusing
View GitHub Profile
http://www.ebay.com/itm/55-Gallon-Metal-Barrel-Empty-Canola-Oil-Drum-/272239958748
https://help.github.com/enterprise/2.6/admin/guides/installation/high-availability-configuration/
https://help.github.com/enterprise/2.6/admin/guides/installation/installing-github-enterprise-on-vmware/
{
"draw_white_space": "all",
"font_size": 18,
"ignored_packages":
[
"Vintage"
],
"rulers":
[
120
git log release-3.8..buy_saveforlater --author="\(Mohit\)\|\(Jones\)" --oneline
git clone <original-remote>
cd <directory>
git remote add gitlab <gitlab-url>
for remote in `git branch -r`; do git branch --track ${remote/origin\//}; done
git push --all gitlab
@mohitt
mohitt / RoboCopy
Last active January 1, 2016 01:32
Robocopy
Robocopy C:\Users\mohit_thakral\ \\Desktop-da2t7v9\c\LaptopBackup\C-Drive\Users\mohit_thakral\ /MT:100000 /sl /xjd /xa:s /e /eta /tee /fp /a-:hs /b /MIR /R:0 /Z /XF *.iso *.log *.au C:\Users\mohit_thakral\NTUSER.DAT "C:\Users\mohit_thakral\Documents\Outlook Files\LocalEmails - Copy.pst" /LOG:M:\C-drive-backup4.log /XD C:\Users\mohit_thakral\AppData .android .AndroidStudio1.2 .babun C:\Users\mohit_thakral\Dropbox C:\Users\mohit_thakral\OneDrive
robocopy /b /e /xa:s /xjd /sl /a-:hs /mt /v /fp /eta /log:"D:\To\Directory\transfer.log" /tee "C:\From\Directory" "D:\To\Directory"
(Note that the paths don't have a trailing backslash.)
/b -- backup mode (there's a /zb option for restart mode, but it's a whole lot slower)
/e -- copies subdirectories (including empty directories) in addition to files
@mohitt
mohitt / .gitconfig
Created July 8, 2015 21:07
Single Files
[user]
email = [email protected]
name = Mohit Thakral
[credential]
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[credential]
helper = wincred
@mohitt
mohitt / powershell
Created June 29, 2015 18:59
git diff modified files to the older version
git status --porcelain | % { $_.split(" ")[2] } | % { git difftool 5069d42 $_}
* %userprofile%\.babun\cygwin\bin\mintty.exe -
>*"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" "-cur_console:a:t:PS"
*%systemroot%\SysWOW64\cmd.exe /c ""%SystemDrive%\cygwin64\bin\sh.exe" --login -i" "-cur_console:t:Cygwin Bash"
@mohitt
mohitt / Choco Installs
Created February 25, 2015 22:23
Choco Installs
choco install windowsazurepowershell -y
choco install nodejs -y