(no title)
arnel | 11 years ago
I didn't because i wrote a small command line utility to open the site with the right parameters.
You can also use it (instructions for ubuntu):
Copy the folowing to file with the name per:
#!/bin/bash
NC='\e[0m' # No Color
green='\e[0;32m'
blue='\e[0;34m'
if [ "$#" == "0" ]; then
echo "Usage: $0 filename" exit 1 fi
if [ "$#" != "1" ]; then
red='\e[0;31m'
echo -e "${red}$# Is illegal number of parameters.${NC}" exit 1 fi
usage(){
echo -e '\tper'
echo -e '\tOpen http://file-permissions.ninja with permission of the file.'
exit 1
}
if [ "$1" == "help" ] || [ "$1" == "-help" ] || [ "$1" == "-h" ] ; then
usage
fi
mode="`LC_ALL=C LANG=C /bin/ls -ld "$1" | LC_ALL=C LANG=C awk '{ print $1 }'`" || exit $?
echo -e "${blue}Opening: ${green}http://file-permissions.ninja/#$mode${NC}"
xdg-open 'http://file-permissions.ninja/#'$mode &> /dev/null
exit 0
# EOF ----------------------------------
Move per to folder within the path.
Let's say:
sudo mv per /bin
Now grant it execute permission:
sudo chmod +x /bin/per
Now you can use it with:
per filename
it's supposed to open the site with the permissions of filename.
No comments yet.