Tag: Tech
-
How I installed IPython on macOS 10.13.1 High Sierra
So I installed IPython today. It was a bit of an adventure, so thought I’d document it here, in case it helps anyone else (including my future self, heh): Installed Python 3.6 (the default, 2.7, included with macOS, isn’t new enough). This puts the “python3” executable on your machine, which you can invoke similarly to…
-
Connecting to remote MySQL servers so they appear as though they are local
Simple! Just create an SSH tunnel. Or a couple of them. Create SSH tunnel to MySQL server running on port 3306 on 192.168.213.207 so that server appears to be running locally on port 3307: ssh -L 3307:127.0.0.1:3306 root@192.168.213.207 -NnT Create SSH tunnel to MySQL server running on port 3306 on machine2 so that server appears…
-
Writing reliable Windows Batch files
This is probably a good argument to just ditch Windows Batch (.bat) files entirely for Windows Powershell scripts, but if you find yourself in a position where this is not feasible, see this Stack Overflow post about how to check the exit codes of programs run within Windows Batch files.