Skip to content

Instantly share code, notes, and snippets.

@juliobm
juliobm / config
Last active November 13, 2015 11:21
i3wm
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@juliobm
juliobm / ZVZLEEPORT
Last active January 8, 2016 09:07
rutinas MUMPS servicio socket para saber existencias reales
ZVZLEEPORT ;
INI ;
; prueba lectura puerto
; lanza rutina ZVZLEEPORT3
; que es la que tratará lo leido
;
S S="#"
S $ZT="TRAP"
; solo lo ejecutamos en el shadow
I '$D(^["%SYS"]ZDISFAR("SHADOW")) Q
@juliobm
juliobm / ping_vitales.pyw
Created May 5, 2015 14:55
Detectar y avisar de equipos caídos en la red mediante ping
#-------------------------------------------------------------------------------
# Name: ping_nodos_vitales
# Purpose: ping a los puntos de acceso de radiofrecuencia
# y al router netlan
# y a los concentradores
# cada 5 min de forma aleatoria
# solounocadavez = random.randrange(151,153)
#
# Author: julio
@juliobm
juliobm / dhcp_nuevos.pyw
Created May 5, 2015 12:14
Detectar y avisar de nuevas concesiones IP en nuestra red windows DHCP
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import poplib, smtplib, datetime, os
import locale, unicodedata
from email.Parser import Parser
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
@juliobm
juliobm / procesos_grupo.pyw
Created May 5, 2015 10:51
Detectar y avisar de procesos nuevos en los puestos de nuestra red
import os,shutil,re,sys
import poplib,os,sys,subprocess,time,datetime
import urllib
from envia_email import mandaemail
#
equipo=os.getenv('COMPUTERNAME')
servidores='server1,server2,server3,server4,server5'
grupo='/node:'+servidores
namelista=r'procesos_grupo_'+servidores.replace(',','_')+'_lista.txt'
@juliobm
juliobm / random_picture_imac.py
Last active August 29, 2015 14:14
Select a random picture file
#-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: JULIO
#
# Created: 24/08/2014
# Copyright: (c) JULIO 2014
# Licence: <your licence>
#-------------------------------------------------------------------------------