This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ $_ != $0 ]] && echo "Write your password:" || | |
echo "You need to call this from the source command: source $(basename $0)" | |
PROTOCOL=http | |
USERNAME=myuser | |
HOST=proxy.bigevilcorporation.com | |
PORT=8009 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Meter en el .bashrc ################################ | |
export PATH="$PATH:/usr/local/share/drush:/usr/local/bin" | |
export http_proxy=http://user:pass@IP:Port | |
export ftp_proxy=$http_proxy | |
##### Meter en el /etc/apt/sources.list ################## | |
# non free packages | |
#deb http://ftp.fr.debian.org/debian/ squeeze non-free | |
#deb-src http://ftp.fr.debian.org/debian/ squeeze non-free | |
## Recargar el fichero .bashrc sin tener que reiniciar la consola |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### Meter en el .bashrc ################################ | |
export PATH="$PATH:/usr/local/share/drush:/usr/local/bin" | |
export http_proxy=http://user:pass@IP:Port | |
export ftp_proxy=http://user:pass@IP:Port | |
##### Meter en el /etc/apt/sources.list ################## | |
# non free packages | |
deb http://ftp.fr.debian.org/debian/ squeeze non-free | |
deb-src http://ftp.fr.debian.org/debian/ squeeze non-free | |
## Recargar el fichero .bashrc sin tener que reiniciar la consola |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//clase tipica | |
var Dog = function(name) { | |
this.name = name; | |
}; | |
Dog.prototype.legs = 4; | |
Dog.prototype.speak = function() { | |
return "Un perro de " + this.legs + " patas llamado " + this.name + " dice guau!"; | |
}; |