GIT recover deleted file

Posted in GIT
$ git checkout DELETING_COMMIT_HASH^ --file_path



You can get the “deleting commit hash” running Gitk (Windows, Linux or Mac), Gitg or Tig (no Linux).

Undo Four Square check-in

Posted in Mobile



Did you accidentally check in somewhere? You can delete check-ins from the link: Undo last check in on Four Square

Mouse over your check-in and you’ll see an “x”. Click to delete it.

Source: http://foursquare.com/user/history

Android for PCs (Android-x86)

Posted in Android, Mobile



Is already available the Android version for PCs.

Android x-86

Download list: http://code.google.com/p/android-x86/downloads/list



source: http://www.andronerd.com.br

SSH config file

Posted in Linux
#file location: ~/.ssh/config

Host online_server
HostName 189.XXX.XXX.XXX
User external_user

Host local_server, home
HostName 192.XXX.XXX.XXX
User myself

Host git_server
HostName 188.XXX.XXX.XXX
User git

#by default, access all servers as root
  #Host *
  #User root


Then you can use the alias as the IP of your servers:

$ scp local_server:file.zip online_server:
  #result: myself@localserver:file.zip external_user@online_server:file.zip


SSH Access by the Host IP

$ ssh 192.XXX.XXX.XXX
$ git clone git@188.XXX.XXX.XXX:project.git


Or this simply alternative

$ ssh local_server
$ git clone git_server:project.git

Gnome 3 run command (Alt F2)

Posted in Linux

The run menu (dafault hot key was alt+f2 in gnome 2) is not activated by default in gnome 3.

You can set this hot key in the “keyboard shortcurts” config:
Menu [applications] > [system tools] > [system settings] > [keyboard] > tab shortcurts > option [system], then click over “disabled”, and press, Alt+F2 (or whatever you want).

Desenvolvimento web: primeiros passos (servidor web)

Posted in Desenvolvimento Web

É necessário um servidor web para testar suas aplicaçōes.

Para evitar uploads “excessivos”, e até mesmo pela velocidade, é melhor que se tenha instalado localmente, um servidor web.

O php, por exemplo, é uma linguagem server-side (o processamento é feito no lado do servidor, e o cliente recebe somente o resultado), evitando assim que o cliente tenha acesso ao seu código PHP.

Servidores web

Pacotes: apache, php, mysql

Facilita, evitando que o desenvolvedor tenha que instalar separadamente: Apache, PHP  e MySQL; tudo isso é feito automaticamente.
Para ruby, por exemplo há o “ruby one click installer“.