An easier way to take a nice screenshot of an area of your screen, this is very cool.

The best way to take a screenshot of an area of your screen is with a GUI application. Flameshot is one that is very good at doing this, and offers many tools to manipulate the image before saving. Install Flameshot easily. jason@Yog-Sothoth:~$ sudo apt install flameshotjason@Yog-Sothoth:~$ sudo apt install flameshot Then it will create menu … Read more

Very useful C code samples. These might be very useful to someone.

Some very useful code samples for any C programmer. These might give you some new ideas. Print the time and date with C. #include <time.h> // For time function (random seed). #include <stdio.h> // For extra functions. printf(). #include <stdlib.h> // For getenv();   #define format "The time and date is: %A %d %B %Y. … Read more

Using the Internet is annoying sometimes, everyone can relate to this.

Using the Internet can be annoying when you are searching for an obscure fix to a problem and there is a solution that is on a forum that you cannot view unless you register with it. The solution sometimes is to Google the URL and then open the cached page. Otherwise you must register and … Read more

Connect to a Ubiquity wireless Nanostation easily.

This is how I get the IP information from a Ubiquity wireless Nanostation. XM.v5.5.3# ifconfig br0 br0 Link encap:Ethernet HWaddr DC:9F:DB:42:59:2B inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::de9f:dbff:fe42:592b/64 Scope:Link UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1 RX packets:921 errors:0 dropped:0 overruns:0 frame:0 TX packets:501 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:158229 (154.5 KiB) TX … Read more

How to create a loopback filesystem easily in your home folder. Good for storing files or creating a swapfile.

It is very easy to create a loopback filesystem in your home directory. This can be used to store files, or can be enabled as a swap partition. Firstly, run this command to create a blank file-system image. This will be 524 megabytes. jason@Yog-Sothoth:~/Documents$ dd if=/dev/zero of=myimage.img bs=1024 count=524288jason@Yog-Sothoth:~/Documents$ dd if=/dev/zero of=myimage.img bs=1024 count=524288 Now … Read more

Search your Linux machine for information about a certain package.

To find information about a certain package on a Linux machine, the man command is very useful, but it does not show all man pages that could contain valuable information. The apropos command is what is required to find all pertinent information. This example below shows how to use this command to find all manual … Read more

Get a randomly generated bash shell prompt and some other tricks for the Linux shell.

A nice shell prompt that is randomly generated each time it appears. Working version. PS1="\[\e[1;31m\]$(shuf -n 1 /usr/share/dict/words)\[\e[m\]@\[\e[1;35m\]$(shuf -n 1 /usr/share/dict/words)\[\e[m\]\$ "PS1="\[\e[1;31m\]$(shuf -n 1 /usr/share/dict/words)\[\e[m\]@\[\e[1;35m\]$(shuf -n 1 /usr/share/dict/words)\[\e[m\]\$ " Select a random word from a textfile with bash. ubuntu ~ $ shuf -n 1 /usr/share/dict/words pluckedubuntu ~ $ shuf -n 1 /usr/share/dict/words plucked Select a … Read more

How to find movie downloads on the largest repository of pirated material ever.

There is a massive repository of pirated material out there, and it is not Pirate Bay. It is Google Drive. There is practically anything you can dream of on there. Use this search term to find pirated movies. site:drive.google.com "yify" -"Whoops!"site:drive.google.com "yify" -"Whoops!" This returns a massive listing of all the pirated material that Google … Read more

Some very useful Arch Linux tips and tricks.

Get a comprehensive listing of all Arch Linux pacman mirrors. curl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed ‘s/^.//’ > mirrorlistcurl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed ‘s/^.//’ > mirrorlist A simple script to update your mirror listing on your Arch Linux system. #!/bin/bash echo "Fetching new sorted mirrorlist…" curl -s -L "https://www.archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" 2>&1 | sed … Read more

How to show a banner explaining terms of use for an SSH connection before login.

It is very simple to show a banner to your users, that explains the terms of use for an SSH connection upon the user reaching a login prompt. Firstly, create a file named info in the /etc/ssh directory. sudo touch /etc/ssh/infosudo touch /etc/ssh/info Then put this in it. *************************************************************************** NOTICE TO USERS     This … Read more

Another way to get a mobile view of websites with Firefox and no need for addons.

How to test a responsive web design with Firefox If you press Ctrl->Shift->m when viewing a website, it will be switched to a mobile view that allows you to see what the website looks like at various mobile resolutions. I found this out by accident. But this is a very cool Firefox trick. This makes … Read more

How to list only symbolic links in a directory on a Linux filesystem.

How to list all symlinks in a Linux directory To list only the symbolic links on a Linux filesystem, use ls and grep as shown below. This will easily do this for you. ubuntu ~/Documents $ ls -hula /lib | grep "\->" lrwxrwxrwx 1 root root 21 Feb 4 02:48 cpp -> /etc/alternatives/cpp lrwxrwxrwx 1 … Read more