Skip to content

Instantly share code, notes, and snippets.

View kernelp4nic's full-sized avatar

Sebastián Moreno kernelp4nic

  • Prisma Campaigns
  • Montevideo-Uruguay
View GitHub Profile
[
// ALT+CLICK -> Go to definition
{
"button": "button1",
"count": 1,
"modifiers": ["alt"],
"press_command": "drag_select",
"command": "goto_definition"
},
[
// Move tabs
//
// {"position": "-1"}, {"position": "+1"}
{"keys": ["alt+1"], "command": "move_tab", "args": {"position": "0"}},
{"keys": ["alt+2"], "command": "move_tab", "args": {"position": "1"}},
{"keys": ["alt+3"], "command": "move_tab", "args": {"position": "2"}},
{"keys": ["alt+4"], "command": "move_tab", "args": {"position": "3"}},
{"keys": ["alt+5"], "command": "move_tab", "args": {"position": "4"}},
{"keys": ["alt+6"], "command": "move_tab", "args": {"position": "5"}},
@kernelp4nic
kernelp4nic / sources.list
Created February 6, 2012 17:01 — forked from fedesilva/sources.list
el sources.list con non-free y contrib configurados
# cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze-updates, previously known as 'volatile'
@kernelp4nic
kernelp4nic / ssh-copy-id
Created March 28, 2012 20:06
ssh-copy-id
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
#
# http://www.devthought.com/2009/09/19/get-ssh-copy-id-in-mac-os-x/
#
@kernelp4nic
kernelp4nic / core.clj
Created December 28, 2015 12:40 — forked from zoldar/core.clj
Exploration of compojure and cemerick/friend with an angle towards integration of cemerick/friend with librarian-clojure.
(ns friendtest.core
(:use midje.sweet
ring.mock.request
compojure.core
friendtest.core
[ring.middleware.session store memory]
[ring.middleware.session.memory :only (memory-store)]
[ring.middleware.session :only (wrap-session)]
[cemerick.friend.util :only (gets)])
(:require [compojure [handler :as handler]]
@kernelp4nic
kernelp4nic / nginx.conf
Created December 28, 2015 14:17 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/kernelp4nic/Software/idea-IC-145.1617.8/bin/idea.png
Name[en_US]=IntelliJ
@kernelp4nic
kernelp4nic / install.sh
Created July 20, 2016 22:34
Install PostGIS and PGrouting on Debian Wheezy from source
#!/bin/bash
#install postgis
apt-get install libxml++2.6-dev libgeos-3.3.3 libgeos-dev libgdal-dev gdal-bin libproj-dev binutils
wget http://postgis.refractions.net/download/postgis-2.0.0.tar.gz
tar xfvz postgis-2.0.0.tar.gz
cd postgis-2.0.0
./configure
make
@kernelp4nic
kernelp4nic / .vimrc
Last active July 26, 2016 18:02
minimal vimrc for servers
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after
set nocompatible
set showmode
set backspace=2
syntax on
set hlsearch "highlight searched things
set incsearch "incremental search
set laststatus=2 "show status line
set ignorecase "ignore case