Site sobre software livre, cultura, arte, gimp, inkscape, wallpapers, vim, firefox, python, e-books, algoritmos, openoffice, ubuntu, debian, gnome, inkscape, bash, shell script, música, arte, mpb, dicas em geral, Geopolítica, politica, brasil, blogsfera, ativismo, rock, english
Android: Nada de Airdroid ou Whatsappweb
$ cd /home/somedir
$ python -m SimpleHTTPServer
Depois ele pega o ip da máquina
ifconfig
no meu caso o ip é: 192.168.25.151
Daí basta digitar no seu celular:
http://192.168.25.151:8000
daí no seu android da vida baixa o arquivo sem maiores problemas
Expansão de textos, você conhece o texter?
How I Can Code Twice As Fast As You
Vim: Desfazendo uso acidental co ^u ou ^w no modo insert do vim
description - Vim provides a number or ways to recover some text that you have deleted
(multiple undos, numbered registers, unnamed register etc.), however,
there is no way to recover a line or word that you killed either
accidentally (e.g., pressing
are already in insert mode.
- This little script tries to compensate for this missing functionality for
the most commonly used two commands,
that is going to be killed is first backed up in an internal script
variable before letting Vim continue to do what you asked it to do.
- The script also provides a mapping (by default
customize by using the
execute to put back the text at the current cursor position. A
immediately followed by a
of the previous action.
- The script is only going to "estimate" what is going to be deleted by ^W,
but for certain filetypes it may not exactly match the word that Vim is
going to delete, in which case the undo might undo too much or too little.
This is essentially a 6.0 version of my previous undoInInsertMode.vim script,
except that the script works much better now for ^W, thanks to Luc Hermitte
(hermitte at laas dot fr) for helping me get this done.
O link para baixar
http://www.vim.org/scripts/script.php?script_id=150
Novo site de buscas
ele não tem propaganda e é muito personalizável, por exemplo você pode
habilitar https por padrão. Acesse nete link. Se desejar ir além pesquise
por recursos ocultos, pesquisei o que aconteceu no dia do meu nascimento
"november 8, 1968".
Tem mais coisa
pw .......... gera uma senha aleatória
rand 100 .... gera um numero aleatório
ip .......... pega o seu ip externo
j/k ......... avança/retrocede na listagem
50*45 ....... faz calculos como o google
#vim ........ busca hastags do twitter
Para saber mais acesse: https://duckduckgo.com/goodies.html
O site ainda não tem sugestões de busca como o google mas já existe um plugin para esta tarefa: http://nfriedly.com/stuff/duckduckgoogle/
Aplicação similar ao Deep Freeze para linux
sudo add-apt-repository ppa:tldm217/gofris
sudo apt-get update
sudo apt-get install gofris-en
Screenshot
Conhece o "detox"?
sudo apt-get install detox
site: http://detox.sourceforge.net/
python solution: active-state
Workbrave: aplicação para auxiliar na prevenção de lesões por esforço repetitivo
Workrave is a program for Linux and Windows that assists in the recovery and prevention of Repetitive Strain Injury (RSI). Workrave pops up and prompts you for a "micro break" or a longer exercise break at time intervals you determine. The app will even suggest anti-RSI exercises for your eyes, back and shoulders to help prevent backaches, headaches and carpal tunnel and comes with some nice statistics so you can see how long you have been working in the past days, etc.:
If you work long enough to fill a progress meter, Workrave will begin to nag you by displaying a small borderless window, called a prelude, asking if you want to break. You can ignore the prelude, which includes a progress meter of its own, bound to a 30-second countdown timer. When the timer reaches zero, the prelude disappears. However, the prelude returns in two minutes to nag you again, and it continues the cycle of disappearing and reappearing until finally take a break:

Workrave for Linux includes a notification area applet that works with GNOME and KDE and has network capabilities to monitor your activity even if switching back and forth between different computers is part of your job:

Workrave should be available in your Linux distribution repositories.
To install Workrave in Ubuntu, simply paste this in a terminal:
sudo apt-get install workraveOnce installed (under Gnome), you will find Workrave under Aplicativos > Accessibilidade > Workrave.
Source: http://www.facebook.com/notes.php?id=126426811202
Exibindo os maiores arquivos usando python
Pode baixar direto aqui. ou...
Top 5 site snippets - share code
Mas também há:
Quem tiver sugestões pode mandar, minha preferência é por serviços que tenham a possibilidade de incorporar no blogger ou qualquer outro serviço.
Uma forcinha para auxiliar a colocar o windows na lixeira
Instale o ultradefrag ele é gpl:
oferece opções avançadas como desfragmentação durante a inicialização, o que permite reorganizar também os arquivos de sistema, que não são movidos durante as desfragmentações tradicionais.
link: http://ultradefrag.sourceforge.net/
No script de boot use (seja paciente)
No meu caso só consegui remover os dados "que não podiam ser movidos" usando a opção de otimização no script. Outro detalhe não tente salvar usando outra codificação, aliás isto é comentado dentro do próprio script, tem que ser utf-16.
udefrag -o c:
Leia o handbook:
http://ultradefrag.sourceforge.net/handbook/
Renomear grupos de arquivos - pyrenamer
With pyRenamer you can change the name of several files at the same time easily.
→ You can use patterns to rename files.
→ You can use search & replace to rename files.
→ You can use common substitutions.
→ You can manually rename selected files.
→ You can rename images using their metadata.
→ You can rename music using its metadata.
It is written using PyGTK for the GNOME desktop, altought it will work in any PyGTK enabled environment (KDE, XFCE, even Windows), and it's licensed under the GPL.
Conhece o amigo "sphinx"?
Ele, o Luciano Ramalho usou uma ferramenta chamada sphinx para processar a documentação do livro, mantida originalmente na linguagem de marcação "rest".
Para conhecer melhor esta ferramenta acesse: http://sphinx.pocoo.org/
E para instalar proceda antes a instalação do pacote
python-setuptoolsEm seguida um
easy_install -U Sphinx
O mais interessante de tudo isto é o fato de eu só ter descoberto esta ferramenta devido ao fato de querer ajudar o Luciano Ramalho na sua empreitada, assim como ao iniciar o projeto de criação do livro sobre vim tive de estudar de novo LaTeX e aprender de vez a usar controle de versões.
linux-cookbook
|
|
| Participe do grupo linux-cookbook |
| Visitar este grupo |

