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 / gist:6305e68e632eef288343
Created March 14, 2015 13:31
Install emacs from source code in linux/debian
Install the dependencies
~ sudo apt-get install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev
Clone the mirror repo
~ git clone --depth 1 https://github.com/emacs-mirror/emacs.git
Locate to the emacs folder
~ cd emacs
Execute the autogen
@andru255
andru255 / tricks-miscelanea
Last active March 22, 2023 07:31
trucos encontrados de vim en la web y en el camino - miscelanea
shift + 3(del teclado no numérico) = busca la palabra donde está enfocado el cursor
:edit! = para refrescar un archivo actual para verificar si tiene cambios de otro.
¿ zz = para guardar y salir directamente ?
//// pestañas
:tabe = crea una nueva pestaña vacía
:tab sp {file} = crea un clon del archivo en una nueva pestaña
:tab split = crea un clon del archivo en una nueva pestaña
@andru255
andru255 / gist:b2fef7ca0d32c950b0b4
Created April 30, 2015 20:16
Comando para ver si tengo permisos de un repositorio en especial
//Lista los repositorios y los permisos que tengo
ssh git@git.example.com info
@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 / gist:6895967
Last active April 27, 2022 17:48
tips del video: "VIM sobre Linux, comandos avanzados y plugins #linuxIO"
1. s = sustituir el texto en donde estás ubicado
1.1 S = Elimina desde el cursor donde estas hasta el final de la linea, e incluso se pone en modo inserción y tabulado
/// tip chevere
Si quiero hacer multiples acciones basta con estar en modo
visual y tipear:
Ejemplo 1
@andru255
andru255 / gist:6136136
Created August 1, 2013 23:05
Hacer pull sin hacer commit ni add, una buena jugada
.. luego de haber hecho tus cambios sin aplicar add ni commit y querés aplicar pull se hace lo siguiente:
el git stash almacena una rama temporal donde toma tus cambios
$ git stash
aplicamos el pull correspondiente..
$ git pull origin [mi-rama]
y luego retornamos los cambios de la rama temporal
$ git stash apply stash@{0}
@andru255
andru255 / gist:7295850
Last active December 1, 2021 00:39
Install phantomJS and SlimerJS into linux debian 64 bits
PhantomJS (has the engine webkit)
download from the page http://phantomjs.org/download.html
and then in terminal
$ cd /usr/local/share/
$ sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
$ sudo tar jxvf phantomjs-1.9.8-linux-x86_64.tar.bz2
$ sudo ln -s /usr/local/share/phantomjs-1.9.8-linux-x86_64/ /usr/local/share/phantomjs
$ sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
@andru255
andru255 / gist:87883eb800bf772fe940b9249600f75b
Created September 17, 2021 14:13
Reset a file from a hash
~ git checkout <commit hash> file
// source: https://stackoverflow.com/questions/215718/how-can-i-reset-or-revert-a-file-to-a-specific-revision
@andru255
andru255 / fancy-tabs-demo.html
Created October 28, 2020 15:19 — forked from ebidel/fancy-tabs-demo.html
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
<script>
function execPolyfill() {
(function(){
// CustomElementsV1.min.js v1 polyfill from https://github.com/webcomponents/webcomponentsjs/tree/v1/src/CustomElements/v1.
/*
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
@andru255
andru255 / gist:e0135a00c1fe92e1cf0b
Created December 29, 2014 14:37
config local of .vimrc.local
"set guifont=PowerlineSymbols:h15
set guifont=Liberation_Mono_for_Powerline:h10
let g:Powerline_symbols = 'fancy'
let g:airline_powerline_fonts = 1
set encoding=utf-8
"set term=rxvt-unicode-256color
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
"set term=xterm-256color
set term=xterm