Difference between revisions of "System/DayToDay"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == Encrypt/Decrypt a file == |
− | find . -inum | + | 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 == | == VIM == | ||
Line 33: | Line 50: | ||
Defaults timestamp_timeout=20 | Defaults timestamp_timeout=20 | ||
... | ... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Latest revision as of 14:25, 8 May 2013
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 ...