export Data in localStorage for later re-import

Here’s how to import/export your entire localStorage Export copy(JSON.stringify(localStorage)); This will copy your localStorage to your clipboard. (You need two JSON.stringify()’s to get the quotes escaped.) Import var data = JSON.parse(/*paste stringified JSON from clipboard*/); Object.keys(data).forEach(function (k) { localStorage.setItem(k, JSON.stringify(data[k])); });

Best (easiest) way to make a SQL Server dump and import that dump in another SQL Server

An easy way would be to use SQL Server Management Studio, in the Object Explorer right click on the database you want to export, select Tasks -> Back Up, then select a destination and file name in the Destination box at the bottom of the dialog. You can play around with the various settings, but … Read more

How to fix the error `found no layout file for “HTML” for “page”` in Hugo CMS?

Okay so here is what is likely happening: You have a theme you added as a git submodule and you recently re-cloned your project. Guess what? Your submodule needs to be re-downloaded as well. You can do this with: git submodule init git submodule update Then your project will load without errors.