Tuesday, July 17, 2018
Written on Jul 17, 2018
How to replace two things at once with sed
https://stackoverflow.com/questions/10565877/how-to-replace-two-things-at-once-with-sed
Use sed to remove first 2 characters of a line
https://www.unix.com/shell-programming-and-scripting/87242-sed-remove-1st-two-characters-every-line-text-file.html
How to work on two bugs at the same time on two computers
- Generate a patch for your commit to transfer to the remote computer
git format-patch -1 <hash>
- From https://stackoverflow.com/a/29637857
Generate a patch from stash
git stash show -p --color=never > my-patch-name.patch
- Apply the patch as a commit via
git am < mypatch.patch
or apply the patch as changes to your working tree via git apply mypatch.patch
- Setup OpenSSH and vncserver on your remote computer
- Install and setup Remote VSCode extension.
- https://marketplace.visualstudio.com/items?itemName=rafaelmaiolla.remote-vscode instructions for setting up the extension
- https://superuser.com/a/1335231 If you are having problems setting up remote port forwarding
- Now you can edit files from your remote computer on your VSCode.