Automating command/script execution using PuTTY

PuTTY has the -m switch, that you can use to provide a path to a file with a list of commands to execute: Where the commands.txt will, in your case, contain a path to your shell script, like: Though for automation, your better use the Plink command-line connection tool, instead of the GUI PuTTY application, as you have already found … Read more

Source Tree doesn’t launch after installation

This solved the issue for me. Cause The most likely reason for this error is that the user.config file for SourceTree has been corrupted. You can confirm this by locating the file in this location: C:\Users\<User>\AppData\Local\Atlassian\SourceTree.exe_<random_string>\<version_number> If this is the cause, when you open the file, it will be full of <NULL> values. Resolution If the user.config file is … Read more

Relational Database Design Patterns?

There’s a book in Martin Fowler’s Signature Series called Refactoring Databases. That provides a list of techniques for refactoring databases. I can’t say I’ve heard a list of database patterns so much. I would also highly recommend David C. Hay’s Data Model Patterns and the follow up A Metadata Map which builds on the first and is far more ambitious … Read more

How to format code in Xcode? 

Select first the text you want to format and then press Ctrl+I. Use Cmd+A first if you wish to format all text in the selected file. Note: this procedure only re-indents the lines, it does not do any advanced formatting. In XCode 12 beta: The new key binding to re-indent is control+I.

How to connect to database from Unity

Please disregard any security risks with this approach Do not do it like this. It doesn’t matter if security will come before or after. You will end of re-writing the whole code because the password is hard-coded in your application which can be decompiled and retrieved easily. Do the connection the correct way now so that you won’t … Read more