Skip to content

Instantly share code, notes, and snippets.

View gblnovaes's full-sized avatar
🎯
Focusing

Gabriel gblnovaes

🎯
Focusing
View GitHub Profile
@gblnovaes
gblnovaes / gist:7265767
Last active December 27, 2015 04:19
How to install package control in sublime text 2
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')
note: is very important type in console of sublime text.
@gblnovaes
gblnovaes / gist:7301477
Last active December 27, 2015 09:09
How to install wine in ubuntu 13.04
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7
sudo apt-get install winetricks
@gblnovaes
gblnovaes / gist:7301833
Created November 4, 2013 12:34
How to install git-flow
sudo apt-get install git-flow
@gblnovaes
gblnovaes / gist:7308593
Created November 4, 2013 20:18
How to install google chrome stable
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
@gblnovaes
gblnovaes / gist:7339989
Created November 6, 2013 17:05
How to install gimp for ubuntu.
add repository -> sudo add-apt-repository ppa:otto-kesselgulasch/gimp
execute the command for update and install the gimp
update the repository -> sudo apt-get update
install the gimp -> sudo apt-get install gimp
@gblnovaes
gblnovaes / gist:7370399
Last active December 27, 2015 18:29
How to install PlayOnLinux
source: http://www.playonlinux.com/en/download.html
wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux
@gblnovaes
gblnovaes / wp-project-install.sh
Created November 14, 2013 16:55 — forked from betooliveirame-zz/wp-project-install.sh
Este script automatiza o processo de clonar e instalar o tema WP.
#!/bin/bash
git clone git@github.com:betooliveira79/WordPress.git portal-apadep
cd ./portal-apadep
git clone git@bitbucket.org:elshamah/portal-apadep.git wp-content
cd ./wp-content
git fetch
git checkout release/v1.0.0
git pull origin
curl -sS https://getcomposer.org/installer | php
@gblnovaes
gblnovaes / gist:7642464
Created November 25, 2013 14:58
Configuracao do Virtual Host
<VirtualHost *:80>
ServerName apadep-portal
ServerAlias apadep-portal
DocumentRoot /home/gabriel/Projetos/sites/apadep-portal
SetEnv APPLICATION_ENV "development"
<Directory /home/gabriel/Projetos/sites/apadep-portal
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
@gblnovaes
gblnovaes / gist:7962235
Created December 14, 2013 17:34
Instalando o Lamp..
sudo apt-get install apache2
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql php5-mysql
sudo /etc/init.d/apache2 restart
@gblnovaes
gblnovaes / ShowAndHide
Created January 22, 2014 19:56
Aparecer e ocultar usando Jquery
<DOCTYPE html>
<html lang="pt-br">
<head>
<title>Formulario simples</title>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#conteudo').hide();