Check These Out
renames Anime Episodes to files, that can be parsed by sonarr & co
So, I'm using a CentOS VM in VirtualBox, and created four new disks in the SCSI controller.
The VM created the folders:
/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd
Using a 'for loop' all disks are partitioned for LVM.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Also with optional message:
$ echo "no login for you" > /etc/nologin
(This doesn't affect your current X session - you're already logged in!)
for example if you did a:
$ ls -la /bin/ls
then
$ ls !$
is equivalent to doing a
$ ls /bin/ls
Sometimes a program refuses to read a file and you're not sure why. You may have display_errors turned off for PHP or something. In this example, fopen('/var/www/test/foo.txt') was called but doesn't have read access to foo.txt.
Strace can tell you what went wrong. E.g., if php doesn't have read access to the file, strace will say "EACCESS (Permission denied)". Or, if the file path you gave doesn't exist, strace will say "ENOENT (No such file or directory)", etc.
This works for any program you can run from the command-line, e.g., strace python myapp.py -e open,access...
Note: the above command uses php-cli, not mod_php, which is a different SAPI with diff configs, etc.
This command will tell lynx to read keystrokes from the specified file - which can be used in a cronjob to auto-login on websites that give you points for logging in once a day *cough cough* (which is why I used -accept_all_cookies).
For creating your keystroke file, use:
$ lynx -cmd_log yourfile
Suppose you made a backup of your hard disk with dd:
dd if=/dev/sda of=/mnt/disk/backup.img
This command enables you to mount a partition from inside this image, so you can access your files directly.
Substitute PARTITION=1 with the number of the partition you want to mount (returned from sfdisk -d yourfile.img).