•  ru

ShellHacks

Command-Line Tips and Tricks
  • Blog

PIP: Install From Private PyPi Repository

Posted on Thursday February 18th, 2021by admin

By default pip installs packages from a public PyPi repository but can also be configured to install them from the private repositories, like Nexus or Artifactory. In this note i will show how to configure pip to install packages from the private repositories. I will also show how to define username and password in pip […]

Read More
No comments yet
  • Blog

SSH Fingerprint: Get Fingerprint of SSH RSA Key

Posted on Thursday February 18th, 2021Thursday February 18th, 2021by admin

The fingerprint is a unique sequence of letters and numbers used to identify the SSH RSA key. It is the fingerprint of a key that is verified when you try to connect to a remote host using SSH. In this note i will show how to generate the md5 and sha256 fingerprints of the SSH […]

Read More
No comments yet
  • Blog

Nginx: `proxy_pass` Without Trailing Slash

Posted on Thursday February 18th, 2021by admin

The URLs with and without trailing slash are considered by web-servers as well as by search engines as different web-pages. By this reason the URLs with trailing slash may return 404 Not Found error, while without the trailing slash they are reachable. In this note i will show how to remove the trailing slash from […]

Read More
No comments yet
  • Blog

Install Ansible on Ubuntu – APT Repository

Posted on Tuesday February 9th, 2021by admin

Ansible is a popular agent-less automation tool used to configure local or remote systems and deploy applications. The easiest way to install the latest version of Ansible on Ubuntu is to get it from the official APT repository. This short note shows how to install Ansible on Ubuntu, check its version, locate the configuration file […]

Read More
No comments yet
  • Blog

Ansible: Human-Readable Output Format

Posted on Monday February 8th, 2021by admin

By default Ansible sends output of the plays, tasks and module arguments to STDOUT in the format that is not suitable for human reading. Starting from Ansible 2.5, the default output format can be changed to a human-readable using the callback plugin. This short note shows how to change the default Ansible’s JSON output format […]

Read More
No comments yet
  • Blog

Pip: Install Requirements – Exclude Specific Packages

Posted on Thursday January 28th, 2021by admin

The requirements.txt file that contains the Python application dependencies is usually generated by developers using the pip freeze > requirements.txt command. If you install dependencies with the pip install -r requirements.txt command as a part of some automated pipeline or a Dockerfile and you have an issue with some of the dependencies, you may wonder […]

Read More
No comments yet
  • Blog

Pip: Show Python Package Dependencies

Posted on Wednesday January 27th, 2021by admin

The dependencies of the installed Python packages can be listed using the built-in pip show command. Alternatively the dependencies can be shown as a tree structure using the pipdeptree command. In this note i will show several examples of how to list dependencies of the installed Python packages.

Read More
No comments yet
  • Blog

Docker Compose: Specify Dockerfile Path – Example

Posted on Wednesday January 27th, 2021by admin

The docker-compose build or docker-compose up –build commands read the docker-compose.yml file looking for all services containing the build configuration option and run a docker build command for each of them. If the Dockerfile has been renamed or placed out of the context directory, you can specify the alternate path in the Docker Compose file. […]

Read More
No comments yet
  • Blog

Jenkins: Hide Passwords – MaskPasswordsBuildWrapper

Posted on Tuesday January 26th, 2021by admin

For some reason you may not want to store credentials in Jenkins using the Credentials Plugin. Nevertheless, you still may need to hide sensitive data, like passwords or secret keys from the console output in Jenkins. One of the possible solution is to wrap the parts of the code you want to hide with set […]

Read More
No comments yet
  • Blog

Jenkins Pipeline: Input Step – Example

Posted on Monday January 25th, 2021Monday January 25th, 2021by admin

In Jenkins declarative pipelines it is possible to prompt a user for an interactive input by creating the input step. For example, at some stage of the Jenkins pipeline you may want to ask a user to provide the credentials. The user input can be saved as an environment variable and used in the next […]

Read More
No comments yet

Posts navigation

Older posts

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive artifactory aws bash boot cmd command-line curl dns docker encryption git java jenkins kubernetes linux mail mongodb mysql network nmap openssl oracle password pdf performance powershell prometheus proxy python rabbitmq raspberry pi redis ssh systemd telnet text-processing tor tsm windows yum
  • Twitter
  • RSS
Privacy
Copyright © 2011-2020 | www.ShellHacks.com
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok