This walkthrough installs Sphinx and configures it to output HTML and PDF from .md
. If you install it on a VM, allocate over 25GB storage and multiple processors. You'll need Ubuntu 16.04 LTS, an internet connection, and sudo
rights.
- depth
2
#!/bin/bash | |
# UpToGit 0.1 | |
# Actualiza facilmente tu repositorio Git | |
# (CC) 2011 Alfonso Saavedra "Son Link" | |
# http://sonlinkblog.blogspot.com | |
# Bajo licencia GNU/GPL | |
# Modo de uso: copia o mueve este script a /usr/bin o /usr/local/bin y desde el directorio donde se encuentre la copia de un repo git, ejecútalo de esta manera: | |
# uptogit <ficheros> |
# -*- coding: utf-8 -*- | |
import json | |
import sys | |
from ConfigParser import (ConfigParser, MissingSectionHeaderError, | |
ParsingError, DEFAULTSECT) | |
class StrictConfigParser(ConfigParser): | |
def _read(self, fp, fpname): |
# 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 |
#!/usr/bin/python | |
from gi.repository import Gtk, GObject | |
from datetime import datetime | |
class MainWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="app") | |
self.box = Gtk.Box(spacing=6) | |
self.add(self.box) |
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
%rebase layout title='Register New Slack log Box Backup configuration', parent_url=app.get_url('index') | |
<h2>Create New Slack Box backup</h2> | |
<script> | |
function submitForm(){ | |
document.getElementById('authform').submit(); | |
}; | |
</script> | |
<!-- python block (bottle + wtforms) will not be appear in html--> |
# -*- coding: utf-8 -*- | |
# Clono un repositorio online a mi disco duro local. | |
# Genero una carpeta en la que almacenaré, en diferentes subcarpetas, todas las ramas que vaya a necesitar clonar | |
# Posteriormente comprimo toda la clonación en un archivo .zip con la fecha actual del sistema. | |
# Si ya existiese dicho archivo lo sobrescribiré. | |
# Posteriormente borro las carpetas creadas para dejar solo el .zip | |
import git # Requiere librería GitPython | |
import time |
# -*- coding: utf-8 -*- | |
import requests | |
import re # Usado para eliminar las etiquetas HTML de las response | |
class googleMapsAPI: | |
""" Clase para trabajar con la API de Google Maps """ | |
# Propiedades | |
_clave = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # Escribe aquí to clave (puedes generarlas desde https://console.developers.google.com/apis/credentials) |
# -*- coding: utf-8 -*- | |
from openpyxl import load_workbook # Requiere instalar openpyxl | |
import os.path | |
rutaXLSX = "fichero.xlsx" | |
if os.path.isfile(rutaXLSX): | |
libro = load_workbook(rutaXLSX) # Abro el excel para extraer los campos |