Skip to content

Instantly share code, notes, and snippets.

View sldenazis's full-sized avatar
🧟

Santiago LD sldenazis

🧟
  • Buenos Aires
View GitHub Profile
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import time
import telepot
import re
def handle(msg):
content_type, chat_type, chat_id = telepot.glance(msg)
@sldenazis
sldenazis / telnet.vim
Created November 10, 2014 18:10
Vim syntax highlighting para telnet de bajo presupuesto
" Filename: telnet.vim
" Language: Telnet command syntax
" Maintainer: sldenazis <[email protected]>
" Revision: 0.1
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
@sldenazis
sldenazis / redis
Last active January 1, 2016 05:39
Simple redis init script for red hat 6.5.
#!/bin/bash
# Author: Santiago López Denazis
# License: GPL v.3+
# Description: Simple Redis init.d script conceived to work on RH 6.5
source /etc/rc.d/init.d/functions
[ -f /etc/sysconfig/redis ] && {
source /etc/sysconfig/redis
@sldenazis
sldenazis / logstash
Last active December 31, 2015 16:39 — forked from nodesocket/logstash
#! /bin/sh
#
# /etc/rc.d/init.d/logstash
#
# Starts Logstash as a daemon
#
# chkconfig: 2345 20 80
# description: Starts Logstash as a daemon
### BEGIN INIT INFO