Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2015 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e9ee5e8c53d1b4c3c736 to your computer and use it in GitHub Desktop.
Save anonymous/e9ee5e8c53d1b4c3c736 to your computer and use it in GitHub Desktop.
# tried on Ubuntu 11.04:
git clone https://code.google.com/p/scriptfs scriptfs_git
cd scriptfs_git/
sudo apt-get install libfuse-dev
make
mkdir ~/work-melt
mkdir ~/uncommented-melt
mkdir ~/bin
nano ~/bin/uncomment-melt
chmod +x /home/username/bin/uncomment-melt
./scriptfs -p "$HOME/bin/uncomment-melt;&*.melt" ~/work-melt ~/uncommented-melt
cp /tmp/test_c.melt ~/work-melt/
melt ~/uncommented-melt/test_c.melt # again has characters; there has been no filtering
sudo umount ~/uncommented-melt
rm ~/uncommented-melt/*
./scriptfs -p "$HOME/bin/uncomment-melt;&*.melt" ~/work-melt ~/uncommented-melt # fusermount: failed to access mountpoint /home/username/uncommented-melt: Permission denied
rm -rf ~/uncommented-melt # rm: cannot remove `~/uncommented-melt': Device or resource busy # prob because Gnome in Ubuntu still shows an icon for a mounted device!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment