Skip to content

Instantly share code, notes, and snippets.

View josben's full-sized avatar

Benjamin Perez josben

View GitHub Profile
@josben
josben / .bashrc
Created August 18, 2016 05:20
How to config npm to install with global option (-g) into home dir
# ....
# ...
### First in the terminal ###
# $ NPM_PACKAGES="$HOME/.npm-packages"
# $ mkdir -p "$NPM_PACKAGES"
# $ echo "prefix = $NPM_PACKAGES" >> ~/.npmrc
### End ###
#######################
### In .bashrc file ###
@josben
josben / test_scraping.py
Created March 29, 2016 02:49
Este scraping agarra todos los docentes de www.cs.umss.edu.bo y los pone en una lista
import requests
from bs4 import BeautifulSoup
response = requests.get('http://www.cs.umss.edu.bo/rep_docentes.jsp')
soup = BeautifulSoup(response.text, "lxml")
td_docentes = soup.findAll('td', {'class': 'letra_central', 'width': '65%'})
docentes = []
#
# Default LTSP dhcpd.conf config file.
#
#authoritative;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.20 192.168.2.250;
option domain-name "scesi";
option domain-name-servers 192.168.2.14;