QCopy – ClipBoard manager – Ignore KeePass entries

I installed QCopy on Xubuntu along with KeePass2.

Of course, I don’t want my password copied from KeePass to be available in QCopy history. Everything coming from KeePass must be ignored by QCopy!

To do so, I followed the instructions from the Official QCopy documentation:

Add and modify automatic command to ignore text copied from the window:

  1. open “Command” dialog (F6 shortcut),
  2. click “Add” button in the dialog,
  3. select “Ignore Password window” from the list and click “OK” button,
  4. select “Show Advanced”
  5. change “Window” text box to match the title (or part of it) of the window to ignore (e.g. KeePass),
  6. click “OK” button to save the changes.


This new command should be at top of the command list because automatic commands are executed in order they appear in the list and we don’t want to process sensitive data in any way.




Expect script – Read / write file

Thanks to this source : http://wiki.tcl.tk/367

To read data from a file in an Expect script:

#!/usr/bin/expect -f

set fd "input.txt"
set fp [open "$fd" r]
set data [read $fp]

# Read line by line

foreach line $data {

puts "$line\r"


And to write data to a file:

#!/usr/bin/expect -f

set outputFilename "output.txt"
set outFileId [open $outputFilename "w"]

puts -nonewline $outFileId "A first line\n"
puts -nonewline $outFileId "A second line\n"

#Close file descriptor to ensure data are flush to file
close $outFileId

Linux – Mount a shared folder with virtualbox

To mount a shared folder (previously configured in the VM’s parameters), launch the following command:

sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) NameOfSharedFolderInVMConfig PathToMount

as sudo user

For example, I have configured this shared folder : Capture

So in my VM, I launch this command to mount the shared folder under the “Labs” folder of the home folder


sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) Labs ~/Labs/

Git – my aliases

git config --global alias.poule 'pull'
git config --global alias.s 'status'
git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
git config --global alias.a 'add .'
git config --global alias.pu 'pull'
git config --global alias.ac "!git add . && git commit"
git config --global alias.pp "!git pull && git push"
git config --global alias.po 'push'

My favorite is obviously “ac” because I can do
git ac -m "my commit message"
and this simple line add and commit all the modified files 🙂

And I also use a lot git pp to pull and push in one line!

Linux – Set ACL


$ setfacl -m u:seza:rwx,g:admin:rw-,o:r-- MyFolder

To change to permissions for the folder MyFolder and add

  • User “seza” has all permission: Read, Write, eXecute
  • Group “admin” has all permissions
  • Other has just Read persmission


$ setfacl -m default:u:seza:rwx,default:g:admin:rw-,o:r-- MyFolder

To change the permissions for the future files/folders that will be added