Posts Tagged ‘Linux’
Linux. Memory. Cache.
The reason Linux uses so much memory for disk cache is because the RAM is wasted if it isn’t used. Keeping the cache means that if something needs the same data again, there’s a good chance it will still be in the cache in memory. Fetching the information from there is around 1,000 times quicker than getting it from the hard disk. If it’s not found in the cache, the hard disk needs to be read anyway, but in that case nothing has been lost in time.
To see a better estimation of how much memory is really free for applications to use, run the command free -m.
The -/+ buffers/cache line shows how much memory is used and free from the perspective of the applications. Generally speaking, if little swap is being used, memory usage isn’t impacting performance at all.
Ok, isto da cache é muito bonito, giro e tal. Mas, ás vezes, consome o que não quero. Solução? Ora, faço isto (como root, obviamente): echo 3 > /proc/sys/vm/drop_caches
Normalmente ajuda.
Vim, lol
ponto ~ $ echo "hello world" > lol.txt
ponto ~ $ vim -c "+s/hello/vim" -c "+wq" lol.txt
ponto ~ $ cat lol.txt
vim world
lol, funciona.
ps: aparentemente o ‘-c’ não é necessário.
CheckGmail
Há uns tempo atrás instalei isto. E agora não quero outra coisa ;____;
CheckGmail is an alternative Gmail Notifier for Linux and other *nix systems. It is fast, secure and uses minimal bandwidth via the use of Atom feeds.CheckGmail is a system tray application that checks a Gmail account for new mail. When new mail is present the tray icon changes, an optional animated popup is displayed and a tooltip displays the number and details of new messages. Each message can be opened directly in a browser window, and many common Gmail operations (reading, marking as read, archiving, deleting or reporting as spam) can be carried out on messages directly within CheckGmail, without the need to use the Gmail web interface.
Página da aplicação: checkgmail.sourceforge.net
Zealous Autoconfig
Quem acompanha o xkcd, certamente que reconhecerá isto.
Popup Scrollbar Concept
Directamente do mundo GTK+:
Ext4 – too long a post for twitter
visto que isto não cabe no meu twitter:
If you’ve ever felt constrained by the fact that a directory can only hold 32,000 subdirectories in ext3, you’ll be relieved to know that this limit has been eliminated in ext4.
Geeks do anime em 400k pedaços, arquivadores do /b/, rejubilem!
Não vou fazer a review, longe de mim querer armar-me em connoisseur. : >
Leiam isto, se quiserem
“PowerShell” não só em Windows
Agora que o pessoal do Windows anda todo contente com a PowerShell, a nova shell da Microsoft, eis que, no mundo da sourgeforge, surge a Pash:

Pash: PowerShell open source reimplementation for “others” (Mac, Linux, Solaris, etc…) and Windows (including Windows Mobile and Windows CE)
Longe de estar acabada, segundo a página oficial:
- ~50% of public PowerShell classes defined.
- ~40% of framework functionality operational.
Mas pelo que vi da PowerShell (e do pouco uso que lhe dei), pareceu-me bastante boa e de longe muito melhor que a antiga shell do Windows (também não era um feito muito difícil de alcançar).
Seja como for, estarei à espera de novidades desta coisinhas nova.
Para quem quiser, aqui fica a página: pash.sourceforge.net.

