ShellHacks

Command-Line Tips and Tricks
  • Blog

Linux Mint: Lock Screen on Lid Close – Enable/Disable

Posted on August 24, 2022August 24, 2022by admin

When a laptop lid is getting closed, different scenarios are possible: do nothing, blank screen, suspend or shutdown. In Linux Mint, the system behavior on closing the lid is controlled by the “Power Management” and “Screensaver” settings. This note shows how to enable or disable screen locking when closing the lid in Linux Mint.

Read More
1 Comment
  • Blog

Python Script Not Showing Output [SOLVED]

Posted on August 10, 2022August 10, 2022by admin

It may happen that you execute a Python script and nothing happenes, i.e. it seems that it “hangs” without showing any output. Even if you explicitly include some print() statements to debug the issue, it may still not print anything to a terminal. One of the reasons of why your Python script does not show […]

Read More
1 Comment
  • Blog

Ansible: Skip Parameter If Variable Not Defined

Posted on August 3, 2022August 3, 2022by admin

In Ansible, if you run a task that has some module’s parameter with a variable that is not set you will get “The task includes an option with an undefined variable” error. If for some reason you can’t or don’t want to define this variable, you can make it optional. In this case Ansible will […]

Read More
No comments yet
  • Blog

Rename User Folder in Windows

Posted on July 28, 2022July 26, 2022by admin

User profiles in Windows on the most of computers are usually located in the folder C:\users\. By default, the user folder name is the same as you user name. But if you change your user name, the old name of your user folder will remain and you may want to rename it as well. The […]

Read More
No comments yet
  • Blog

PasswordNeverExpires: Disable Password Expiration

Posted on July 27, 2022July 25, 2022by admin

A password expiration is a feature in Windows that forces users to change their passwords after a certain number of days. When it is time to change your password, Windows will send you a “Consider changing your password” notification. In this note i will show several ways of how to disable the password expiration of […]

Read More
No comments yet
  • Blog

Change User Name of Local Account in Windows

Posted on July 26, 2022July 26, 2022by admin

There may be different reasons for changing a local user account name in Windows. For example, you may want to change the name on the sign-in screen to your actual name instead of the nickname or vice versa. This short note describes the easiest way of changing a user name of the local account in […]

Read More
No comments yet
  • Blog

Disable Startup Programs in Windows

Posted on July 25, 2022July 22, 2022by admin

It is quite annoying when some apps are not expected to, but they are automatically opening on startup in Windows. And it raises a perfectly logical question, how to stop such apps from running at startup. In this note i will show the easiest and the most efficient way of how to find ALL startup […]

Read More
No comments yet
  • Blog

You Need Permission to Perform This Action [FIXED]

Posted on July 22, 2022July 25, 2022by admin

While trying to delete, copy, move or rename some files or folders in Windows you may get the error: “You need permission to perform this action” followed by “You require permission from the computer’s administrator to make changes to this file or folder“. This “Access Denied” error means that you are not authorized to make […]

Read More
No comments yet
  • Blog

Kubernetes: Get ServiceAccount Permissions/Roles

Posted on July 21, 2022by admin

A Service Account in Kubernetes is a special type of non-human privileged account that provides an identity for processes that run in a Pod. When you create a Pod, if you do not specify a Service Account, it is automatically assigned the default Service Account in the same Namespace. This note shows how to list […]

Read More
No comments yet
  • Blog

Python: Check Package Version

Posted on July 18, 2022July 20, 2022by admin

While working with Python you may wonder what is the version of a certain Python package (library) that you are using. There are several ways of how to get the version of a package or module in Python. This note describes how to check the version of Python packages from a Python shell, from a […]

Read More
No comments yet

Posts navigation

Older posts
Newer posts

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory bash boot cmd command-line curl dns docker encryption git gitlab helm java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2022 | www.ShellHacks.com