Skip to content

Instantly share code, notes, and snippets.

View jasvazquez's full-sized avatar

Informático de Guardia jasvazquez

View GitHub Profile
@jasvazquez
jasvazquez / andalinux-banner.txt
Created May 30, 2021 16:50
Pequeño banner a mostrar en algunos scripts en Bash.
_ _ _
__ _ _ __ __| | __ _| (_)_ __ _ ___ __
/ _` | '_ \ / _` |/ _` | | | '_ \| | | \ \/ /
| (_| | | | | (_| | (_| | | | | | | |_| |> <
\__,_|_| |_|\__,_|\__,_|_|_|_| |_|\__,_/_/\_\
Wordpress : https://andalinux.wordpress.com
Github : https://github.com/jasvazquez
Twitter : @andalinux
@jasvazquez
jasvazquez / tamperMonkey-metralleta
Created April 24, 2021 16:48
Script de tamperMonkey que permite pegar directamente los datos de un hoja de cálculo en Séneca V2
// ==UserScript==
// @name Activar metralleta Séneca
// @namespace https://andalinux.wordpress.com
// @version 0.1
// @description Activador de la metralleta al evaluar en Séneca
// @include /https:\/\/www\.juntadeandalucia\.es\/educacion\/senecav2\/seneca\/menus\/.*/
// @copyright 2020+, Informático de Guardia
// @require http://code.jquery.com/jquery-latest.js
// @grant unsafeWindow
#!/bin/bash
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Instalamos virtualenvwrapper...
# ---
sudo apt update
sudo apt install -y virtualenvwrapper
sudo apt install -y --allow-downgrades git zlib1g-dev libbz2-dev libreadline-dev python-openssl libssl1.0.0=1.0.2g-1ubuntu4 libsqlite3-dev libffi-dev libssl-dev
@jasvazquez
jasvazquez / guadalinex-pyenv
Last active March 14, 2021 10:30
Script para instalar nuestro entorno de trabajo Python en clase
# Instalamos virtualenvwrapper...
# ---
su usuario
sudo apt update
sudo apt install -y virtualenvwrapper
exit
# Configuramos virtualenvwrapper
# ---
// Parámetros del script
// ---
const ACCESS_TOKEN ="3kjfkj34fhdk3k35858fkfkfi";
// Repositorio al que añadir colaboradores y su propietario (usuario de Github que lo ha creado)
const REPO='Documentacion';
const OWNER='tuUsuarioGitHub';
@jasvazquez
jasvazquez / Smart Notebook
Created December 6, 2019 12:01
Lista de paquetes para instalar Smart Notebook en Guadalinex Next/Slim
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-common/smart-common_10.3.3138.1-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-hwr/smart-hwr_12.10.968.0-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-languagesetup/smart-languagesetup_2.2.2294.4-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-product-drivers/smart-product-drivers_12.10.982.0-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-gallerysetup/smart-gallerysetup_1.3.6561.1-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-activation/smart-activation_1.2.45.0-1_i386.deb
http://centros.edu.guadalinex.org/Edu/fenixscpdi/pool/main/s/smart-notebook/smart-notebook_11.0.10595.0-1_i386.deb
@jasvazquez
jasvazquez / rsync.sh
Created July 5, 2019 16:50
Script para clonar RPi
#!/bin/bash
###############################################################################################################################################################
### rsync.sh
### @author : Siewert Lameijer
### @since : 27-12-2016
### @updated: 27-12-2016
### Script to rsync your Pi in case something screw your system.
### Just switch your current sd-card with the rsynced sd-card and your ready to go...
document.addEventListener('paste', function (e) {
var data;
e.preventDefault();
// IE
if (window.clipboardData) {
data = window.clipboardData.getData('Text');