× Search About Posts Code Music Links
Blank Try
experiment
lots
learn
more

Dump

This is some stuff from Hugo Test One, a test site on my local hard drive.

Youtube Thumb Swap

By using just a thumbnail image of a video you can significantly speed up page load times on pages with multiple embedded Youtube videos. Here’s how.

test-nano

So this is a file to test out using Nano. There is another file called just nano.md here too.

What does “write out” mean? It means saving the file bizarrely enouth.

So this is a justified paragraph. What does it mean in a text editor context. When I get to the end of this line I’ll find out.

So one question might be what’s the advantages over Vim?

The GNU nano, commonly known as ‘nano,’ is an improved project of the Pico text editor, which was released in 1999. Like Vim, Nano also comes pre-installed on most Linux systems. The Nano text editor an ideal tool for beginners. On startup, the Nano text editor shows the following interface.

Read more...

Nano

bash linux

Nano is a CLI editor like vim that comes with bash. It’s with both Linux and the git-bash program.

Nano is supposedly easier to learn than vim.

You can open or create a file using nano path/to/file and start editing.

The menu use ^G for instance where the ^ just means press Ctrl key at the same time.

Using ^x is to exit where you are. You might be prompted to save first. You may need to press it twice to say exit from help then exit the program.

Read more...

WSL experiences

wsl bash windows
My experience setting up Windows Sub system for Linux v.2, inc installing programs and getting snap to work.

WSL

wsl Linux zsh

Why?

Many of the better CLI tools, such as Babun, seem to be stopping development.

WSL has now reached version 2 that is far more performant than the first version. It generally gets good reviews from all around.

Linux and Windows

Note that Windows “does not know about” the Linux file system, but Linux can access all the files in Windows. By default Windows file system is mounted in Linux at /mnt/c/. I recommand to create a symlink (shortcut) of Documents and Downloads, the most used Windows folders, in Linux home directory. That way, the access to data is simplified. ubuntu-on-windows-wsl

Read more...

New Places

New websites, video channels on the web that could be interesting.

Leo’s Hugo Template musterprojekt

Hugo

This is probably a little out of date now - from 2018. The nps used has not been updated since 2020 and with the rise of tools like Vite and Snowpack plus Hugo’s own js.Build there probably better ways.

Leo’s Hugo Template Example Project

In this project we work with [nps](https://www.npmjs.com/package/nps). Therefore we have beside the obligatory package.json a file called package-scripts.js. Due to it’s .js format we can comment all our tasks which would not be possible in package.json.

Read more...