Skip to content

Instantly share code, notes, and snippets.

@syci
syci / check_bl.sh
Created February 22, 2018 18:30
Comprobar dominio para listas negras
#!/bin/sh
#
# title : blcheck
# description : Test any domain against more then 200 black lists.
# author : Intellex
# contributors : Darko Poljak
# date : 20160117
# version : 0.5.0
# usage : blcheck [options] <domain_or_ip>
#===============================================================================
@syci
syci / xenmigrate.py
Created February 19, 2018 21:30
Migración de Xen Server a Xen Source
#!/usr/bin/env python
"""
xenmigrate.py
Xen Migrate
Migrate XenServer to Open Source Xen
(c)2011 Jolokia Networks and Mark Pace -- jolokianetworks.com
pace@jolokianetworks.com
AGPL License
USE THIS SOFTWARE AT YOUR OWN RISK!
PLEASE REPORT BUGS SO THEY CAN GET FIXED!
@syci
syci / xen-virsh-example.xml
Created February 19, 2018 21:28
Ejemplo xml para Windows XEN Guest Virsh
<domain type='xen'>
<name>eucalyptus-windows</name>
<os>
<type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader>
<boot dev='cdrom'/>
</os>
<features>
<acpi/>
<apic/>
@syci
syci / check_bl.sh
Created February 19, 2018 21:25
Check Server BlackList SMTP
#!/bin/sh
#
# title : blcheck
# description : Test any domain against more then 200 black lists.
# author : Intellex
# contributors : Darko Poljak
# date : 20160117
# version : 0.5.0
# usage : blcheck [options] <domain_or_ip>
#===============================================================================
@syci
syci / odoo.conf
Created February 19, 2018 21:24
Apache2 Odoo Config
<VirtualHost *:443>
ServerAdmin webmaster@example.com
ServerName odoo.example.com
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/ssl/wildcard.example.com/public.crt
SSLCertificateKeyFile /etc/ssl/wildcard.example.com/private.pem
@syci
syci / .gitignore
Created February 19, 2018 21:23
Python GitIgnore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@syci
syci / update_charts.sql
Created February 19, 2018 21:17
Update Account Chart Odoo SQL
update account_account set code=substring(code from 1 for 4) || '00'|| substring(code from 5 for 2) where char_length(code) = 6;
# Ponemos las cuentas en Odoo a 8 dígitos si no lo están
# Lo pasa a 8, si quiere ponerlos a 9 concatena '000' en lugar de '00'
@syci
syci / paypal2ofx.py
Created February 19, 2018 21:15
Convert a paypal CSV export to an OFX file
import csv
import sys
from collections import namedtuple
rows = csv.reader(sys.stdin)
fields = [field.strip().lower().replace(' ', '_').replace('/', '_')
for field in rows.next() if field.strip() != '']
PaypalRecord = namedtuple('PaypalRecord', fields)
@syci
syci / wkhtmltopdf@Debian8.sh
Created September 16, 2017 12:08 — forked from fedir/wkhtmltopdf@Debian8.sh
Install wkhtmltopdf on Debian 8
apt-get update
aptitude install xfonts-base xfonts-75dpi fontconfig xvfb
mkdir ~/src/wkhtmltopdf -p
cd ~/src/wkhtmltopdf
wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/local/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
chmod a+rx /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf
/usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf
@syci
syci / virt-backup.pl
Created September 7, 2015 21:36
Script Perl para Backups de Máquinas Virtuales con libvirt
#!/usr/bin/perl -w
# AUTHOR
# Daniel Berteaud <daniel@firewall-services.com>
#
# COPYRIGHT
# Copyright (C) 2009-2014 Daniel Berteaud
#
# 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