Check These Out
Get the latest and hopefully greatest to test out on the Ubuntu Phone - sometimes broken but always interesting. https://developer.ubuntu.com/en/start/ubuntu-for-devices/image-channels/
Run as root. Path may vary depending on laptop model and video card (this was tested on an Acer laptop with ATI HD3200 video).
$ cat /proc/acpi/video/VGA/LCD/brightness
to discover the possible values for your display.
Written by jmcnamara
Taken from http://www.perlmonks.org/?node_id=274896
Requires googlecl (http://code.google.com/p/googlecl/)
Even better when you wrap this in a script and allow the --date=STRING to be $1. Then you can type:
whatson "next Thursday"
The date string for UNIX date is very flexible. You can also add --cal "[regex]" to the end for multiple calendars.
Binding a server to privileged port on Linux w/o running as root
This is applicable to any service using privileged ports (< 1024), for instance to run a HTTP server on port 80 or a LDAP directory server on port 389 for example.
I often use it to find recently added ou removed device, or using find in /dev, or anything similar.
Just run the command, plug the device, and wait to see him and only him
-d: list directory entries instead of contents, and do not dereference symbolic links
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
TIMTOWTDI
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"