Skip to content

Instantly share code, notes, and snippets.

View brenopolanski's full-sized avatar
🦙
Llama Llama

Breno Polanski brenopolanski

🦙
Llama Llama
View GitHub Profile
@brenopolanski
brenopolanski / install-couchdb.sh
Last active August 29, 2015 14:01
Installing CouchDB on Ubuntu
# via
# http://wiki.apache.org/couchdb/Installing_on_Ubuntu
# Installing using an existing package
sudo apt-get install couchdb -y
### Troubleshooting
### If the aptitude/apt-get installation gives an error message then couchdb might not have access to its pid file.
### Fix:
sudo chown -R couchdb /var/run/couchdb
@brenopolanski
brenopolanski / install-atom-ubuntu(x64).md
Last active August 29, 2015 14:01
Installing Atom on Ubuntu (64bits) via PPA

To install Atom in Ubuntu 14.04, 13.10 or 12.04 (64bits only!) and derivatives (Linux Mint, elementary OS, etc.), use the following commands:

$ [sudo] add-apt-repository ppa:webupd8team/atom
$ [sudo] apt-get update
$ [sudo] apt-get install atom

Before installing Atom, remember that it's still in beta so you may find bugs or missing / incomplete features!

{
"bitwise": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"newcap": true,
"esnext": true,
"latedef": true,
"noarg": true,
"node": true,
@brenopolanski
brenopolanski / how-to-install-mongodb-on-ubuntu.md
Last active August 29, 2015 14:02
How To Install MongoDB On Ubuntu

Add GPG Key

10gen package required GPG key, imports it:

$ [sudo] apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10

Add 10gen package to source.list.d

@brenopolanski
brenopolanski / install-gnome-shell.md
Created July 6, 2014 19:16
Install Gnome Shell

gnome-shell

GNOME 3 has been designed from the ground up to help you have the best possible computing experience.

Install the Gnome Shell in Ubuntu / Linux Mint (and elementary OS along with Ubuntu derivatives: Xubuntu, Kubuntu, etc.), use the following commands:

$ [sudo] apt-get update
$ [sudo] apt-get install gnome-shell
@brenopolanski
brenopolanski / loading-page.css
Created August 11, 2014 12:15
Effect of loading in page
#loading-page {
background: rgba(204,204,204,.8);
height: 100%;
width: 100%;
overflow: hidden;
position: fixed;
left: 0;
top: 0;
z-index: 99998;
}
@brenopolanski
brenopolanski / deleteObjectFunction.js
Created August 25, 2014 15:08
Delete object function
var obj = {
a: 'house',
b: function() {
console.log('Hi function');
},
c: 123456
}
deleteObjectFunction: function(obj) {
if (obj.length === undefined) {
@brenopolanski
brenopolanski / ClearFileInput.js
Created September 11, 2014 22:16
Clear a File Input
var inputFile = $("#control");
function something_happens() {
inputFile.replaceWith(inputFile.val('').clone(true));
};
@brenopolanski
brenopolanski / write-vim-sudo.md
Created September 22, 2014 13:06
Write vim file as superuser

If you find you do not have permission to perform :w, use the following:

:w !sudo tee % > /dev/null

@brenopolanski
brenopolanski / shell-comando-teste.md
Last active August 29, 2015 14:06
Shell - O comando test
Testes em variáveis
-lt Núm. é menor que (LessThan)
-gt Núm. é maior que (GreaterThan)
-le Núm. é menor igual (LessEqual)
-ge Núm. é maior igual (GreaterEqual)
-eq Núm. é igual (EQual)
-ne Núm. é diferente (NotEqual)
= String é igual
!= String é diferente