Tutorials

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

Page 21 of 36

1 min readBeginner

Python function to generate secure random password

In this short tutorial, we will explain how to write a function to generate a secure random password generator. the function will accept size and chars as parameters. We use SystemRandom since it's more secure and provides more entropy.

1 min readBeginner

Install Golang 1.10 on Raspberry Pi

Tutorial to install golang 1.10 in raspberry pi in a few steps.

1 min readBeginner

Iterm2: terminal where in my cursor behaves strangely

When using iTerm2 the cursor could behaves strangely on tmux or apps console, especially with tmux. You need to enable Enable "Use Unicode Version 9 Widths" on your profile settings.

1 min readIntermediate

Remove a pinned certificate from Firefox and Chrome

For firefox you need to edit the file SiteSecurityServiceState.txt. For chrome you need to enter to the url : chrome://net-internals/#hsts. Check this article for full details.

2 min readIntermediate

Unifi controller install steps and troubleshooting

In this short tutorial we explain how to install unifi controller in ubuntu. Just install it with sudo apt install unifiafter adding the ubiquiti repository.

1 min readBeginner

pip install error: locale.Error: unsupported locale setting

When you install a apackage with pip and you get the error: locale.Error: unsupported locale setting, try to set the locale like this: export LC_ALL=C. Check out full solution here!

2 min readBeginner

Using the host command to perform DNS queries

The command **host** is a DNS lookup utility that can be used to make DNS queries. Check this tutorial to learn how to use the host command. We are going to explain how to use it here.

1 min read

How to Trim String in JavaScript ?

With javascript if you need to remove the spaces on left and right you can use trim. If you need to trim only the left side of the string use replace with a regex, ex: str.replace(/^s+/,'');. Check this article for more details

2 min readIntermediate

Flask: How to Test file upload

Example on how to test file upload using flask client. Check here how to do a request using the FlaskClient to simulare a file upload. You need to put a tuple in the request payload with the data types: (, ) ex. file': (StringIO('my file contents'), 'test_file.txt'). Check here for a full example

2 min read

Ubuntu 18.04: Connect to WiFi via CLI

Debian/Ubuntu linux uses wpa_supplication to support WPA/WPA2 connections. In this tutorial we are going to connect to the Wi-Fi using the command line. See how to do it.