Skip to content

Instantly share code, notes, and snippets.

View exos's full-sized avatar

Oscar Javier Gentilezza Arenas exos

View GitHub Profile
@exos
exos / pmdclock-agent.service
Created January 14, 2017 05:47
Unit file fot pmdclock agent
[Unit]
Description=Agent for pmdclock
[Service]
TimeoutStartSec=5
Restart=always
ExecStart=/usr/bin/pmdclock agent -f
[Install]
WantedBy=multi-user.target
@exos
exos / rules.v4
Created March 22, 2017 21:13
Reglas iptables para SSH anti brute force
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
## Vamos a definir dos names:
# TMPBLOCKED: Van a ser clientes temporalmente bloqueados
# BLOCKED: Van a ser cliente bloqueados a largo plazo
-N TMPBLOCKED
-N BLOCKED

Keybase proof

I hereby claim:

  • I am exos on github.
  • I am exos (https://keybase.io/exos) on keybase.
  • I have a public key whose fingerprint is 32F3 C448 6D4C F20B 6D84 7E75 576B E106 8798 902F

To claim this, I am signing this object:

@exos
exos / ircgrampp@.service
Created May 31, 2017 11:42
Systemd unit file for ircgrampp
[Unit]
Description=Telegram <-> IRC bridge for %i
After=network.target
[Service]
TimeoutStartSec=5
Restart=always
Environment=SYSTEMD_LOG_LEVEL=debug
Environment=DEBUG=session,-node-telegram-bot-api
ExecStart=/usr/bin/ircgrampp start --only %i
@exos
exos / libro.sh
Created November 15, 2017 21:13
Script para cortar pdf's en formato de libro
#!/usr/bin/env bash
DIVISOR=16
CORES=$(cat /proc/cpuinfo| grep processor | wc -l)
NOW=$(date +%s)
export TMP_PATH="${NOW}"
mkdir $TMP_PATH