Skip to content

Instantly share code, notes, and snippets.

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

Andrés Muñoz andru255

🇵🇪
:)
View GitHub Profile
@shime
shime / _readme.md
Last active November 11, 2024 01:23 — forked from ryin/tmux_local_install.sh
installation script for tmux 1.9a

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@schickling
schickling / .travis.yml
Created July 23, 2013 19:56
Use CasperJS with GruntJS for Travis CI
language: node_js
node_js:
- 0.6
- 0.7
- 0.8
- 0.9
- 0.10
before_script:
- npm install -g grunt-cli
- curl -L https://github.com/n1k0/casperjs/archive/1.0.3.tar.gz | tar xz
@jansanchez
jansanchez / gist:6202643
Last active March 17, 2017 20:17
Install Sublime Text into Linux CrunchBang 11 [Waldorf] and your Main Development Packages
# First, download the latest version from: http://www.sublimetext.com/2
# In my case choice: Linux 64 bits [[http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2]]
cd ~/downloads
# unzip: Sublime Text 2.0.2 x64.tar.bz2
tar -zxvf Sublime\ Text\ 2.0.2\ x64.tar.bz2
@infostreams
infostreams / bindFirst
Last active April 5, 2017 07:49
ensures a handler is run before any other registered handlers, independent of the order in which they were bound. Requires jQuery > 1.7
$.fn.bindFirst = function(which, handler) {
// ensures a handler is run before any other registered handlers,
// independent of the order in which they were bound
var $el = $(this);
$el.unbind(which, handler);
$el.bind(which, handler);
var events = $._data($el[0]).events;
var registered = events[which];
registered.unshift(registered.pop());
@mgedmin
mgedmin / rebuild-vim.sh
Last active December 31, 2019 13:56
Script I use to build the latest Vim on Ubuntu
#!/bin/sh
set -e
COMPILED_BY="Marius Gedminas <marius@gedmin.as>"
FEATURES=
FEATURES="$FEATURES --with-features=huge" # yum, features
FEATURES="$FEATURES --enable-multibyte" # vim is *crippled* without this!
# (BTW 'big' implies this)
FEATURES="$FEATURES --enable-pythoninterp" # most of my plugins use this
FEATURES="$FEATURES --enable-rubyinterp" # Command-T wants this
@andru255
andru255 / tips
Last active December 25, 2015 01:19
Tips del video: "El mítico editor VIM #linuxIO" de desarrolloweb :D
1. o minuscula = ubica el cursor a la sgte linea listo para escribir osea entra a modo inserción y enfoca al cursor a la linea sgte
1.1 O = crea una linea nueva sobre el cursor donde estoy y entra a modo insercion y enfoca el cursor a esa nueva linea.
2. :w [ruta_del_archivo] = para guardar un archivo en otra ruta
3. h j k l = izquiera, abajo, arriba, derecha
4. u = para deshacer
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
Se modifica el archivo en modo adminitrador:
~ sudo [nombre_editor] /etc/environment/
y se agregan estas líneas
no_proxy="127.0.0.1,localhost"
NO_PROXY="127.0.0.1,localhost"
all_proxy=socks://172.21.0.12:3128/
ALL_PROXY=socks://172.21.0.12:3128/
@andru255
andru255 / gist:7144992
Last active July 5, 2016 19:39
Instalacion de Drivers nvidia en crunchbang
Solucion 1
Evidentemente, algo ha fallado. Y ese método de instalación que has visto lo veo un poco bruto. Creo que lo que tienes que hacer es:
1º.- Decirle al sistema que no arranque con el driver de nvidia, para que tras reiniciar puedas volver a acceder al escritorio. Eso debería solucionarse borrando el fichero /etc/X11/xorg.conf desde terminal, introduciendo
sudo rm /etc/X11/xorg.conf
2º.- Ver qué modelo de tarjeta tienes. Si no lo sabes, introduces en terminal
lspci -nn | grep VGA
@jansanchez
jansanchez / gist:7309449
Last active December 27, 2015 10:09
Crear un repositorio GIT y apuntarlo a una ubicacion de red

Crear un repositorio GIT y apuntarlo a una ubicacion de red

###Iniciamos un nuevo repositorio

git init --bare miProyecto.git

###Ingresar al proyecto al que le vamos a generar el bare y tipear lo siguiente: