Developing with a SSD

“How to live with a SSD” or “This will save your life one day”

crontab -e
00 10,12,18,22,2 * * * rsync -zr /home/kospol/workspace/ /Backups/workspace

Share

Convert text file from ISO-8859-7 to UTF-8

As a linux user, I often receive documents in ISO-8859-7 from Windows users.

There is a great unix tool to convert the encodings and it’s called iconv. Here how to use it:

iconv --from-code=ISO-8859-7 --to-code=UTF-8 original.txt > converted.txt

Share

root bash autocomplete

This is the way to enable autocomplete in root’s bash:

sudo cp ~/.bash_aliases /root/.bash_aliases

sudo vim /root/.bashrc

Search following lines and uncomment them all: (remove the #’s)
Code:
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi

Share

Samba public folder without password

write this to your smb.conf

[public]
comment = public
public = yes
writeable = yes
create mode = 777
path = /path/to/public
directory mode = 777
browsable = yes
guest ok = yes

make sure to chmod 777 the directory and have the following option on:

[global]
security = share

We use it as a temporary space and quick way to exchange files between linux, macos x and windows machines.
Be aware that *anyone* can read/delete/modify *every* file or folder located in the public folder.

Share