Check These Out
THIS COMMAND IS DESTRUCTIVE. That said, lets assume you want to render your boot drive unbootable and reboot your machine. Maybe you want it to boot off the network and kickstart from a boot server for a fresh OS install. Replace /dev/fd0 with the device name of your boot drive and this DESTRUCTIVE command will render your drive unbootable. Your BIOS boot priority should be set to boot from HD first, then LAN.
apt-get install trash-cli
Commandline program that allows you put folders or files in the standard KDE/Unity desktop trash.
Grabs the cmdline used to execute the process, and the environment that the process is being run under. This is much different than the 'env' command, which only lists the environment for the shell. This is very useful (to me at least) to debug various processes on my server. For example, this lets me see the environment that my apache, mysqld, bind, and other server processes have.
Here's a function I use:
$ aa_ps_all () { ( cd /proc && command ps -A -opid= | xargs -I'{}' sh -c 'test $PPID -ne {}&&test -r {}/cmdline&&echo -e "\n[{}]"&&tr -s "\000" " "
Useful to crawl where the javascript is declared, and extract it a common file. You can redirect it to a file to review item by item.
CPU flags:
rm --> 16-bit processor (real mode)
tm --> 32-bit processor (? mode)
lm --> 64-bit processor (long mode)
Using this command you can track a moment when usb device was attached.
Change the original date set by camera :
Create Date : 2020:08:21 13:26:24.63 //Operating System: Date Created (ie: sdcard)
Date/Time Original : 2020:08:21 13:26:24.63 // Set by camrea when you point and click for photo
Modify Date : 2020:08:21 13:26:24.63 //Operating System: Modified (ie: sdcard)
Exif argument examples are :
exiftool.exe ā-DateTimeOriginal+=0:0:0 5:30:0ā filename.jpg (add 5 hours and 30 minutes to the Exif Date/Time Original)
exiftool.exe" "-modifydate-=0:0:0 0:25:0" filename.jpg (reduce the Exif Modify Date to 25 minutes)
exiftool.exe ā-AllDates+=Y:M:D h:m:sā filename.jpg (Change all exif date values to Y:M:D h:m:s)
You might want to secure your AWS operations requiring to use a MFA token. But then to use API or tools, you need to pass credentials generated with a MFA token.
This commands asks you for the MFA code and retrieves these credentials using AWS Cli. To print the exports, you can use:
`awk '{ print "export AWS_ACCESS_KEY_ID=\"" $1 "\"\n" "export AWS_SECRET_ACCESS_KEY=\"" $2 "\"\n" "export AWS_SESSION_TOKEN=\"" $3 "\"" }'`
You must adapt the command line to include:
* $MFA_IDis ARN of the virtual MFA or serial number of the physical one
* TTL for the credentials
I always add this to my .profile rc so I can do things like: "vim *.c" and the files are opened in tabs.