Computing in the future. What we need to do now.

This machine before your eyes is extremely powerful, a machine that grants its user access to all of the information conceived by the human species. It is capable of performing highly complicated mathematical calculations thousands, possibly millions of times faster than your typical human, and can store massive amounts of information, perhaps a library filled … Read more

Macintosh OSX Sierra vulnerable to a moronic security bug.

The Macintosh Sierra operating system from Apple is vulnerable to a moronic security vulnerability. The user only needs to open a username/password prompt that requires elevation to perform a task and then enter the username ‘root’ and leave the password field blank. Then just click unlock twice, and the user will be granted root access … Read more

How to get information about a window on your Linux desktop.

Getting detailed information about a window on your Linux desktop is very easy. The Xwininfo command is very useful for getting this information. Run the command and then click a window to get detailed information about a window. jason@jason-desktop:~$ xwininfojason@jason-desktop:~$ xwininfo Absolute upper-left X: 498 Absolute upper-left Y: 47 Relative upper-left X: 4 Relative upper-left … Read more

Finding the largest file in a directory and other cool Linux commands.

To find the largest file in a directory; use the du command and this will return the information you are after. Using the pipe symbol to send the text through to the head command will allow us to only return the one file we are interested in. jason@jason-desktop:~/Documents$ find . -type f -exec ls -al … Read more

How to get information about a video file with the Linux command line.

The Linux command line may be used to get information about a video file easily. Here is an example. Getting the video resolution with a simple command. jason@jason-desktop:~/Videos$ ffprobe -v quiet -print_format json -show_format -show_streams burnout-in-a-town-street.mp4 | grep coded "coded_width": 400, "coded_height": 224,jason@jason-desktop:~/Videos$ ffprobe -v quiet -print_format json -show_format -show_streams burnout-in-a-town-street.mp4 | grep coded "coded_width": … Read more

Import a WordPress database dump into MySQL easily.

Importing a WordPress database dump into MySQL is very easy, I downloaded a very old backup of my old website, and I wanted to see what was in it. So I installed MySQL and then I had to create the database. mysql> CREATE DATABASE bejiitas_wrath;mysql> CREATE DATABASE bejiitas_wrath; This was necessary, as importing the database … Read more

Another way to gain root permissions on a Debian Linux installation.

This is another way to gain root permissions on a Debian system; this is a script that will elevate the user to root for a specific command; like using the sudo command. su-to-root -X -c "cat /etc/shadow"su-to-root -X -c "cat /etc/shadow" This is what you get if you try this without root permissions. [flynn@flynn-grid-runner ~]$ … Read more

How to shuffle play a directory full of movies with mpv on Linux.

The mpv movie player can play a directory of movies randomly, this is useful if the user wants movies playing randomly in the background. Do it like this. mpv –shuffle /media/jason/Seagate\ Backup\ Plus\ Drive/Movies/**mpv –shuffle /media/jason/Seagate\ Backup\ Plus\ Drive/Movies/** This is the result, a randomly chosen movie from your collection. This is how to do … Read more

Get a CPU-Z styled application for Linux to keep track of CPU status.

The CPU-Z app for Windows is very good for keeping track of the status of your CPU, but this is also available on Linux with the I-Nex app. This will show comprehensive CPU information that is very detailed indeed. Get the Debian packages here: https://launchpad.net/i-nex/+download. The Ubuntu 16.10 packages installed perfectly on Ubuntu 17.04. Then … Read more

How to get multicolored output when watching a file with Linux.

The tail command is a good way to see new content in a file, but it is monochrome output. But there is a better way to monitor files. Use the multitail command instead. This will print muticolored output when printing the last few lines of a file. Install this utility. sudo apt install multitailsudo apt … Read more

Some more very useful Linux commands.

This Linux command will print all the filenames of the PAM libraries in the /lib directory. A good use of the find command. find /lib{,64} -iname ‘*pam*.so’find /lib{,64} -iname ‘*pam*.so’ Print a waveform in the terminal that will continue until you press control-c. for((i=0;;i++)) { printf "%$(bc -l <<< "a=20*s($i/10);scale=0;a/1+20")s|\n"; sleep .05; }for((i=0;;i++)) { printf … Read more

Google translate behaving strangely.

The Google translate service is behaving strangely when attempting to translate from Mongolian to English. I entered this into the Mongolian field and got strange output. This is very strange… эээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээlogin friend (david smith):(password01)эээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээээlogin friend (david smith):(password01) ‘s Friends (david smith): (password01)’ s Contact Settings You have to login to add a translation.’s Friends (david … Read more

Useful bash shell prompt with customizable colors that are switchable on the fly.

This bash script will give you a custom bash prompt that has colors that are switchable on the fly. PS1=$( sep=$’\xC2\xBB’ # UTF-8 U+00BB red=$(tput setaf 1) green=$(tput setaf 2) yellow=$(tput setaf 3) blue=$(tput setaf 4) cyan=$(tput setaf 5) bold=$(tput bold) reset=$(tput sgr0)   [[ $EUID -eq 0 ]] && user=$red || user=$green   echo … Read more