Skip to content

Instantly share code, notes, and snippets.

View andru255's full-sized avatar
🇵🇪
:)

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@andru255
andru255 / proxy-crunchbang
Last active December 18, 2015 01:49
configuración de proxy para crunchbang en las variables
Se modifica el archivo en modo adminitrador:
~ sudo [nombre_editor] /etc/environment/
y se agregan estas líneas
no_proxy=localhost,127.0.0.0/8,*.local,kotear.pagos
NO_PROXY=localhost,127.0.0.0/8,*.local,kotear.pagos
all_proxy=socks://172.21.0.12:3128/
ALL_PROXY=socks://172.21.0.12:3128/
@andru255
andru255 / netbeans.conf
Last active September 24, 2022 23:49
Archivo para configurar el look & feel del netbeans en linux
Este archivo se encuentra en la ruta en (crunchbang)
$ sudo geany $HOME/etc/netbeans.conf
o puede estar en
$ sudo geany /usr/local/netbeans-7.3/etc/netbeans.conf
Y se agrega al final del parámetro "netbeans_default_options" la linea:
@andru255
andru255 / .bashrc
Created June 13, 2013 22:32
Editing .bashrc, insert in the end of the .bashrc
## The prompt below gets ideas from the following:
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
# http://github.com/adamv/dotfiles/blob/master/bashrc
# http://wiki.archlinux.org/index.php/Color_Bash_Prompt
txtred='\[\e[0;36m\]' # Red
txtwht='\[\e[0;37m\]' # White
bldred='\[\e[0;31m\]' # Red
bldgrn='\[\e[1;32m\]' # Green
bldylw='\[\e[1;33m\]' # Yellow
bldwht='\[\e[1;37m\]' # White
@andru255
andru255 / tipos-instaladores
Created June 16, 2013 16:44
Diferencia entre un ejecutable .sh y un .deb
La diferencia entre estos archivos es:
[mi_archivo].sh
Este archivo se ejecuta en consola de esta manera como user normal:
$ sudo chmod +x [mi_archivo].sh
$ ./mi_archivo.sh
[mi_archivo].deb
Este archivo es un paquete para distros de debian y se ejecutan de la siguiente manera:
@andru255
andru255 / update-jdk
Last active December 18, 2015 13:49
jdk + jre para que constantemente reciba actualizaciones de estos paquetes en debian
La fuente está en http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
$ sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
$ sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
@andru255
andru255 / password-caching-git
Created June 16, 2013 17:28
Sentencias para tener en cache las credenciales de conexión a un repo en git vía https
Para todo el tiempo que uno estea conectado via https
$ git config --global credential.helper cache
Con un tiempo de 1 hora para que luego te pida credenciales
$ git config --global credential.helper 'cache --timeout=3600'
@andru255
andru255 / tunea-bashrc
Created June 17, 2013 06:06
Otra forma de mostrar el terminal editando el .bashrc que se encuentra en la carpeta home del user, puede estar como oculto.
if [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
__has_parent_dir () {
# Utility function so we can test for things like .git/.hg without firing up a
# separate process
test -d "$1" && return 0;
current="."
@andru255
andru255 / php-realtime-terminal
Created June 19, 2013 00:46
Ver en realtime el log de un sitio en php via terminal
php -S [nombre-del-sitio]
ejemplo:
php -S localhost:8080
@andru255
andru255 / gist:5921886
Created July 3, 2013 19:20
Para tener con color el git
git config --global color.ui auto
/**
* Draw SVG in canvas
*/