}

Tutorials

Step-by-step technical guides on Docker, Linux, Python, Go, and more.

Page 16 of 35

1 min readBeginner

Linux: Find Largest Files with du Command

To find the largest file in a directory use the command: sudo du -a / 2>/dev/null | sort -n -r | head -n 20, please check here for more information

1 min readBeginner

golang open file and iterate lines

In this tutorial, we are going to explain how to parse a file with go and iterate lines of a file.

1 min readBeginner

How to disable Kali Linux auto-update

Follow this steps to disable apt-get auto updates for Kali: open dconf-editor, then go to org -> gnome -> software, Select 'download-updates'. Finally Scroll down until the end and set

3 min readBeginner

Go Type Conversion Guide: rune to int, string to int, int to string (2026)

Complete Go type conversion guide 2026: rune to int with int(), string to int with strconv.Atoi, int to string with strconv.Itoa, byte to string, int64 conversions. All with working code examples.

1 min readBeginner

Kubernetes: localhost:8080 Connection Refused

The error

1 min readBeginner

Update package.json to Latest Versions

package.json contains information about your project, to update libraries automatically you can use

2 min readBeginner

Different ways to revert git repository commit

To undo last commit not pushed try: git reset --soft HEAD~1. To undo last commit pushed use: git revert HEAD~1. Check this tutorial for more examples!

1 min readBeginner

How to find the mime type of a file in Python?

Here are some example on how to guess the mime type of a file using python. The first example uses the filename only and the second example opens the file to guess the mime type.

1 min readBeginner

PostgreSQL: Update query for JSONB columns with examples

PostgreSQL 9.5 added the type JSONB, which supports json as datatype. Here we show an example on how to perform an UPDATE on a jsonb type using postgresql. If you want to override the whole dict, just send the json between single quotes. check here...

5 min readIntermediate

Move LUKS Encrypted Disk to Smaller SSD

In this tutorial, we are going to move a linux encrypted disk to a new one. In particular, we are going to move from an old hard drive to a brand new SSD (but smaller). This tutorial also works for moving encryted disk to a bigger disk.