Every time you click on a checkbox the permalink is change according to the permission, so its easier to copy the permalink.
Therefore when you click the back button you're going to the previous state.
Neat. I suggest adding an explanation of what the special bits do (tooltip type of help on clicking the link?), as this is what's not obvious for most people.
Yeah, same problem here. At first I thought he had skipped out on allowing you to type the mask, which is the killer feature of a utility like this.
Also, when typing into the binary input, it isn't updating immediately on key-up like the rest of the inputs -- I'm having to hit the arrow keys to get it to update.
This is pretty cool and well done, but I kind of wish there was no need for this to exist.
It seems that as the world progresses to higher level language, bit manipulations and binary calculation are the realm of dinosaurs.
AnkhMorporkian|11 years ago
arnel|11 years ago
Every time you click on a checkbox the permalink is change according to the permission, so its easier to copy the permalink. Therefore when you click the back button you're going to the previous state.
Do you think its not a good behavior?
piqufoh|11 years ago
Also, love the use of .ninja domain - definitely most appropriate usage I've seen to date!
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.
lazyant|11 years ago
ajanuary|11 years ago
claar|11 years ago
Also, when typing into the binary input, it isn't updating immediately on key-up like the rest of the inputs -- I'm having to hit the arrow keys to get it to update.
Nice utility, though!
dkopi|11 years ago
DevUps|11 years ago
diaz|11 years ago
Now add an advanced mode for easy configuring setfacl :P
rikkus|11 years ago
Have you thought about the ugoa/rwx... etc. version of the flags, i.e. partial setting?
arnel|11 years ago
Working on it...
GigabyteCoin|11 years ago
Phogo|11 years ago
arnel|11 years ago
Can be found here: https://github.com/usablica/intro.js
Erwin|11 years ago
phloxicon|11 years ago
probinso|11 years ago
arnel|11 years ago
Now it should work with the number pad.
To make it work load it without cache: ctrl+shift+R
Thanks for the comment!