Skip to content

Instantly share code, notes, and snippets.

View nicolasmendoza's full-sized avatar
🎯
Focusing

Nicolás nicolasmendoza

🎯
Focusing
  • 10:33 (UTC -05:00)
View GitHub Profile
@nicolasmendoza
nicolasmendoza / remove_old_kernels.md
Created September 19, 2018 00:57 — forked from harshalbhakta/remove_old_kernels.md
Ubuntu Software Updater: Not enough free disk space

The upgrade needs a total of 81.5 M free space on disk '/boot'. Please free at least an additional 17.4 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.

http://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot

Run below command as suggested in the error message.

$ sudo apt-get clean

First check your current kernel version.

@nicolasmendoza
nicolasmendoza / gist:dad85e9267f3b68a1a5efce910921ba2
Created July 17, 2017 13:28
git ignore file locally without update .gitignore
git update-index --assume-unchanged [<file>...]
@nicolasmendoza
nicolasmendoza / .pythonstartup
Created June 25, 2017 01:57
export PYTHONSTARTUP=~/.pythonstartup
# python startup file
import readline
import rlcompleter
import atexit
import os
# tab completion
readline.parse_and_bind('tab: complete')
# history file
histfile = os.path.join(os.environ['HOME'], '.pythonhistory')
try:
require 'nokogiri'
require 'open-uri'
require 'json'
# Public: Subte/subway service frBuenos Aires city. (experiment..:P)
#
# Examples
# get_subte_status()
# # => [ { "name": "Línea B", "service": "Normal"}]
/etc/ssh/sshd_config
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 100
/etc/ssh/sshd_config
TCPKeepAlive no
ClientAliveInterval 30
ClientAliveCountMax 100
@nicolasmendoza
nicolasmendoza / gist:2d04fa20b66fa05ee8fb25874ffe744d
Created April 8, 2017 06:16
Installing PGADMIN 4 - ubuntu
sudo apt-get install virtualenv python-pip libpq-dev python-dev
cd
virtualenv pgadmin4
cd pgadmin4
source bin/activate
wget https://ftp.postgresql.org/pub/pgadmin3/pgadmin4/v1.3/pip/pgadmin4-1.3-py2.py3-none-any.whl
pip install pgadmin4-1.3-py2.py3-none-any.whl
@nicolasmendoza
nicolasmendoza / A.serverWithoutKeystone.js
Last active January 9, 2017 18:32
Cómo servir multiples sitios/apps (&subdomains) en el mismo puerto usando Expressjs, o cómo servir un "leviatán" app (todo acoplado para sentir la adrenalina en producción) sin Nginx.
var path = require('path'),
virtualhost = require('express-vhost'),
express = require('express'),
server = express();
var app1 = require('./app1/index').app;
/*
::app1/index.js (ejemplo)
var express = require('express');
@nicolasmendoza
nicolasmendoza / server.js
Created January 9, 2017 18:10
Servir multiples sitios/apps con expressJS en el mismo Puerto. Sin Nginx.
var path = require('path'),
virtualhost = require('express-vhost'),
express = require('express'),
server = express();
var app1 = require('./app1/index').app;
/*
::app1/index.js (ejemplo)
var express = require('express');
git archive -o sprint24.zip {hash_commit}