Mostrando postagens com marcador tools. Mostrar todas as postagens
Mostrando postagens com marcador tools. Mostrar todas as postagens

Android: Nada de Airdroid ou Whatsappweb

Cabra macho que usa linux cria um http server usando python:

    $ 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?

A referência inicial veio deste link, no qual o autor desafia os leitores com este título: 

How I Can Code Twice As Fast As You

Vim: Desfazendo uso acidental co ^u ou ^w no modo insert do vim

A descrição do plugin em inglês (te vira com a tradução meu filho)

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 one extra time) or deliberately if you
  are already in insert mode.
- This little script tries to compensate for this missing functionality for
  the most commonly used two commands, and such that the text
  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 which you can
  customize by using the UndoInInsModeUndoKey mapping) that you can
  execute to put back the text at the current cursor position. A
  immediately followed by a or is effectively works like an undo
  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

A primeira impressão que tive foi que ele é muito rápido, além disso
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

Leia o artigo no site ubuntugeek.

sudo add-apt-repository ppa:tldm217/gofris
sudo apt-get update
sudo apt-get install gofris-en

Screenshot

Conhece o "detox"?

Detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them.

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

Many of us get caught up in our work on the computer and forget to take breaks. This can cause Repetitive Strain Injury. But Workrave comes to the rescue!

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 workrave

Once 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

Neste link você encontra um pequeno artigo sobre um script python que exibe uma listagem dos arquivos por tamanho.

Pode baixar direto aqui. ou...

Uma forcinha para auxiliar a colocar o windows na lixeira

Muitas vezes você se dispõe a ajudar seu amigo a instalar o windows linux em dual boot, e não mais que derrepente o desfragmentador do windows deixa os tais "dados que não podem ser movidos" lá no final do disco, o que fazer então?

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

http://www.infinicode.org/code/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.



How does pyRenamer look like?

Current stable version 0.6.0

img/screenshots_0.6.0/screenshot_01_thumb.png img/screenshots_0.6.0/screenshot_02_thumb.png img/screenshots_0.6.0/screenshot_03_thumb.png img/screenshots_0.6.0/screenshot_04_thumb.png img/screenshots_0.6.0/screenshot_05_thumb.png img/screenshots_0.6.0/screenshot_06_thumb.png img/screenshots_0.6.0/screenshot_07_thumb.png img/screenshots_0.6.0/screenshot_08_thumb.png img/screenshots_0.6.0/screenshot_09_thumb.png img/screenshots_0.6.0/screenshot_10_thumb.png img/screenshots_0.6.0/screenshot_11_thumb.png img/screenshots_0.6.0/screenshot_12_thumb.png img/screenshots_0.6.0/screenshot_13_thumb.png img/screenshots_0.6.0/screenshot_14_thumb.png img/screenshots_0.6.0/screenshot_15_thumb.png img/screenshots_0.6.0/screenshot_16_thumb.png

Conhece o amigo "sphinx"?

Bem, eu também não conhecia, é uma biblioteca python para gerar documentação, fiquei sabendo de sua existência graças ao Luciano Ramalho que retomou os trabalhos de melhoria da tradução do livro "Como pensar como um cientista da computação"

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-setuptools
Em 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

Grupos do Google
Participe do grupo linux-cookbook
E-mail:
Visitar este grupo