Skip to content

Instantly share code, notes, and snippets.

View joaquimpedro's full-sized avatar

Joaquim Pedro joaquimpedro

View GitHub Profile
@joaquimpedro
joaquimpedro / gist:4047327
Created November 9, 2012 18:21
How to connect Galaxy Nexus MTP on Linux
Change /etc/fuse.conf so its read by all..
# sudo chmod a+r /etc/fuse.conf
Edit /etc/fuse.conf to remove the comment # from user_allow_other so the default fuse.conf will look like
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#
#mount_max = 1000
# Allow non-root users to specify the 'allow_other' or 'allow_root'
@joaquimpedro
joaquimpedro / gist:3918387
Created October 19, 2012 14:03
How to install Oh My ZSH
sudo apt-get update && sudo apt-get install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s 'which zsh'
Reboot you system
@joaquimpedro
joaquimpedro / gist:2770323
Created May 22, 2012 17:10
add cores no terminal para o git e mostrando branch
basta inserir isso no .bashrc
PS1='\n[\u] \[\033[1;33m\]\w\a\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")\n\$ '
Ou essa configuraçao que fica mais simples
PS1='\u@\h:\w/ $(__git_ps1 "\[\033[1;32m\](%s)\[\033[0m\]")\$ '
@joaquimpedro
joaquimpedro / gist:2578969
Created May 2, 2012 18:27
Ubuntu 12.04 - Permitir autenticação ao se conectar num compartilhamento windows
Add as linhas abaixo no arquivo: /etc/samba/smb.conf
client lanman auth = yes
client ntlmv2 auth = no
@joaquimpedro
joaquimpedro / apt.conf
Created March 14, 2012 17:30
APT-GET e Central de Programas com Proxy autenticado
#abra o arquivo apt.conf, localizado na pasta /etc/apt/, com algum editor como root e adicione as seguintes linhas abaixo:
Acquire::http::Proxy "http://usuario:senha@servidorProxy:porta";
Acquire::https::Proxy "https://usuario:senha@servidorProxy:porta";
Acquire::ftp::Proxy "ftp://usuario:senha@servidorProxy:porta";
agora é ser feliz e ter o poder do apt-get em suas mãos! :p