963 shaares
118 results
tagged
tips
Given a temperature in Celsius you simply:
Multiply by 2 Add 30
That’s it, that’s the whole thing. (You can also go from °F→°C by inverting the steps: first subtract 30, then divide by 2.)
Multiply by 2 Add 30
That’s it, that’s the whole thing. (You can also go from °F→°C by inverting the steps: first subtract 30, then divide by 2.)
The theming system is used to control the style of a PDF file generated by Asciidoctor PDF from AsciiDoc. This document describes how the theming system works, how to define a custom theme in YAML, and how to activate the theme when running Asciidoctor PDF.
In this article, we’ll look at how to validating Python inputs with the PyInputPlus.
We use the PyInputPlus package to validate inputs from retrieved from the command line.
We use the PyInputPlus package to validate inputs from retrieved from the command line.
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true \
-dColorImageResolution=150 -dNOPAUSE -dBATCH -sOutputFile=output.pdf input.pdf
-dColorImageResolution=150 -dNOPAUSE -dBATCH -sOutputFile=output.pdf input.pdf
The Ultimate Docker Command List
A curated list of Docker commands that’ll save you hours in debugging and scouting Stack Overflow
A curated list of Docker commands that’ll save you hours in debugging and scouting Stack Overflow
How To Rotate Videos Using FFMpeg From Commandline
Expanding a LVM partition to fill remaining drive space
Logical Volume Management (LVM) provides a high level, flexible view of a server's disk storage. Though robust, problems can occur. The purpose of this document is to review the recovery process when a disk is missing or damaged, and then apply that process to plausible examples. When a disk is accidentally removed or damaged in some way that adversely affects the logical volume, the general recovery process is:
Replace the failed or missing disk
Restore the missing disk's UUID
Restore the LVM meta data
Repair the file system on the LVM device
The recovery process will be demonstrated in three specific cases:
A disk belonging to a logical volume group is removed from the server
The LVM meta data is damaged or corrupted
One disk in a multi-disk volume group has been permanently removed
Replace the failed or missing disk
Restore the missing disk's UUID
Restore the LVM meta data
Repair the file system on the LVM device
The recovery process will be demonstrated in three specific cases:
A disk belonging to a logical volume group is removed from the server
The LVM meta data is damaged or corrupted
One disk in a multi-disk volume group has been permanently removed
A tool for exploring a docker image, layer contents, and discovering ways to shrink your Docker image size.
The build context is the set of files located at the specified PATH or URL. Those files are sent to the Docker daemon during the build so it can use them in the filesystem of the image.
webkay
This is a demonstration of all the data your browser knows about you. All this data can be accessed by any website without asking you for any permission.
Most of the data points are educated guesses and not considered to be accurate.
This is a demonstration of all the data your browser knows about you. All this data can be accessed by any website without asking you for any permission.
Most of the data points are educated guesses and not considered to be accurate.
To set a default browser, make sure that a .desktop file exists for your preferred browser. I'll be setting Mozilla Iceweasel for this example:
$ ls /usr/share/applications/iceweasel.desktop
iceweasel.desktop
Assured you have the file, run:
$ xdg-settings set default-web-browser iceweasel.desktop
# Test that it works
$ xdg-open "http://example.com"
$ ls /usr/share/applications/iceweasel.desktop
iceweasel.desktop
Assured you have the file, run:
$ xdg-settings set default-web-browser iceweasel.desktop
# Test that it works
$ xdg-open "http://example.com"
When searching a Perl module, sooner or later you will end up on one of two sites sites providing information about CPAN modules. Both Meta CPAN, and search.cpan.org will show you a link to download the module, but in most cases that's not what you need.
So how do you really install Perl modules from CPAN ?
So how do you really install Perl modules from CPAN ?
How to install Perl modules in Debian
docker exec -it mariadb bash
mysql
produces the following error message: TERM environment variable not set.
Unsure why since echo $TERM returns dumb and issuing export TERM=dumb resolves issue.
If the environment variable is explicitly issued in the dockerfile, the error message never appears, i.e. adding ENV TERM dumb
mysql
produces the following error message: TERM environment variable not set.
Unsure why since echo $TERM returns dumb and issuing export TERM=dumb resolves issue.
If the environment variable is explicitly issued in the dockerfile, the error message never appears, i.e. adding ENV TERM dumb