Wednesday, September 19, 2018

How to use WinSSHFS on Windows 10


The documentation for how one uses WinSSHFS on Windows 10 on the Internet, in my opinion, sucks. That said (and yes I feel better now), here's a quick, easy way to get it working on your machine.

1) Download WinSSHFS here:
https://github.com/feo-cz/win-sshfs/releases/download/1.6.1/WinSSHFS-1.6.1.13-devel.msi

2) Download the Dokan library. You must download version 1.0.5 or WinSSHFS will bitch. You can download Dokan here:
https://github.com/dokan-dev/dokany/releases/download/v1.0.5/DokanSetup-1.0.5.1000.exe

Enjoy!

Tuesday, September 18, 2018

Using GitBash, Xampp on Windows -> Mysql 'stdin is not a tty'?



I know, I hate it too!

Here's the fix:

1) $: mysql -u root -p [database-name]

2) [Enter root password]

3) In mysql prompt, type: source /full/path/to/file.sql

Done.

Do a 'show tables;' to verify.

Thursday, September 13, 2018

Trouble with XBox One Controller and Windows 10

I am trying to link my Xbox controller to my Windows 10 laptop. I can find the controller with my phone if I do a Bluetooth search. However, when I try to do the same from my PC, it doesn't find it. My laptop is able to find other devices but not my Xbox controller. Can't seem to figure out what the problem is.

Do you know? Thanks in advance for your help!

Regress to an old commit in GIT

# make a branch named B started on the commit B
git checkout -b B <sha1 id of the commit B> 
# it creates a branch which starts at a commit
# right before B and has exact copy of commit as B,
# but with a different sha1 id.
git rebase --no-ff HEAD~1

# now we do simple merge
git checkout master
git merge B

What I needed to do was to go back in time in my Repository. So there was a bunch of changes that were made to my code base but I realize that two changes were not going to work. The decision was made to go back to the original code base before it was modified. The best way to do that was to progress in our Repository to the sha1 that had the correct, older code. This process mentioned here simply checks out an old commit and turns it into a branch. Then you merge that branch with master and, bingo! All is wonderful!

https://stackoverflow.com/questions/11905428/merge-old-git-commit-with-head-at-master/11913700

How to use WinSSHFS on Windows 10

The documentation for how one uses WinSSHFS on Windows 10 on the Internet, in my opinion, sucks. That said (and yes I feel better now),...