Check These Out
just set macdst to the mac address of the system
you wish to wake up, the macsrc is optional but helps
use tcpreplay to broadcast or wireshark to view
Preserve file structure when coping and exclude some file o dir patterns
example:
--------------------------------------------------------------------------------------------
user@ubuntu:~/workspace/SVN/haystak-repos/trunk/internal/src$ addpi
--------------------------------------------------------------------------------------------
Now that directory is in the list of fast access directories.
You can switch to it anytime like this:
--------------------------------------------------------------------------------------------
user@ubuntu:~$ pi internal`
user@ubuntu:~/workspace/SVN/haystak-repos/trunk/internal/src$ --------------------------------------------------------------------------------------------
Please note the backquote ( the symbol that shares its key with ~ in the keyboard )
pi will switch you to that directory.
To see the list of all fast access directories you have to say "cat ~/.pi"
I like to label my grub boot options with the correct kernel version/build.
After building and installing a new kernel with "make install" I had to edit my grub.conf by hand.
To avoid this, I've decided to write this little command line to:
1. read the version/build part of the filename to which the kernel symlinks point
2. replace the first label lines of grub.conf
grub.conf label lines must be in this format:
Latest [{name}-{version/build}]
Old [{name}-{version/build}]
only the {version/build} part is substituted.
For instance:
title Latest [GNU/Linux-2.6.31-gentoo-r10.201003]
would turn to
title Latest [GNU/Linux-2.6.32-gentoo-r7.201004]"
Shows all block devices in a tree with descruptions of what they are.
-map 0.0:0
map the video of video.mp4 to the video of mix.mp4
-map 1.0:1
map the audio of audio.mp3 to the audio of mix.mp4
make sure that video.mp4 and audio.mp3 have the same duration
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
Possible simplification of egrep-awk-sort with find and -exec with xargs.
Change the sample rate with sox, the swiss army knife of sound processing.