System/DayToDay
Jump to navigation
Jump to search
Contents
Encrypt/Decrypt a file
Encryption
cat <file> | openssl enc -aes-256-cbc -salt -pass pass:$pass > <enc_file>
Decryption
cat <enc_file> | openssl enc -d -aes-256-cbc -salt -pass pass:$pass > <file>
Remove special character files
2 simple ways:
rm -- <filename> rm ./<filename>
Or with a bulldozer, by inode:
find . -inum <inode> -exec rm -i {} \;
VIM
set viminfo='1000,f1,<500
.bashrc
export HISTFILESIZE=3000 alias l='ls -aCFlh' alias u="apt-get update" alias ug="apt-get upgrade" alias i="apt-get install" alias r="apt-get remove" alias s="apt-cache search"
kernel parameters
For Compact Flash:
libata.dma=0 ide=nodma ide-core.nodma=0.0 ide-core.nodma=0.1
sudo
... Defaults timestamp_timeout=20 ...