Skip to content

Instantly share code, notes, and snippets.

View altmas5's full-sized avatar
🏊

Jorge Vallecillo altmas5

🏊
View GitHub Profile
@altmas5
altmas5 / access-error_log
Created January 26, 2018 18:16
Grandstream GXP1450 Firmware upgrade HTTP Logs
==> /var/log/apache2/error_log <==
[Fri Jan 26 11:52:19 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/gxp.txt
[Fri Jan 26 11:57:48 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring1.bin
[Fri Jan 26 11:57:48 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring2.bin
[Fri Jan 26 11:57:49 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring3.bin
[Fri Jan 26 11:59:09 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/language.txt
[Fri Jan 26 11:59:47 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring1.bin
[Fri Jan 26 11:59:48 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring2.bin
[Fri Jan 26 11:59:49 2018] [error] [client 192.168.1.225] File does not exist: /srv/www/htdocs/gxp/ring3.bin
@altmas5
altmas5 / whois e5.sk
Created January 25, 2018 17:30
WHOIS query to e5.sk
whois e5.sk
% For more information on Whois status codes, please visit https://icann.org/epp
%
% This WHOIS service is provided by SK-NIC and only contains
% information pertaining to Internet domain names registered by our
% our customers. By using this service you are agreeing (1) not to use any
% information presented here for any purpose other than determining
% ownership of domain names, (2) not to store or reproduce this data in
% any way without SK-NIC's approval, (3) not to use any high-volume, automated, electronic processes
% to obtain data from this service. Abuse of this service is monitored and
@altmas5
altmas5 / deleteOldEmails.sh
Created January 24, 2018 17:05
Borrar correos antiguos en cuentas de correo - zimbra
#!/bin/bash
#Puede recibir como parametros la fecha y el folder del buzon.
#De no recibirlos usa valores por defecto
accounts=`zmprov -l gaa| grep -v 'spam\|ham\|virus\|galsync\|admin'`;
if [ -z "$1" ]
then
date='06/06/2017';
else
date=$1; #dd/mm/yyyy
@altmas5
altmas5 / zimbra.log
Created January 17, 2018 19:04
zimbra failed to start automatically after a unexpected shutdown
Jan 17 08:30:01 smtp postfix/postqueue[8586]: fatal: Queue report unavailable - mail system is down
Jan 17 08:30:01 smtp zimbramon[8547]: 8547:info: 2018-01-17 08:30:01, QUEUE: 0 0
Jan 17 08:30:02 smtp zmmailboxdmgr[8945]: stale pid 3406 found in /opt/zimbra/log/zmmailboxd_manager.pid: No such process
Jan 17 08:30:02 smtp zmmailboxdmgr[8945]: assuming no other instance is running
Jan 17 08:30:02 smtp zmmailboxdmgr[8945]: file /opt/zimbra/log/zmmailboxd.pid does not exist
Jan 17 08:30:02 smtp zmmailboxdmgr[8945]: assuming no other instance is running
Jan 17 08:30:02 smtp zmmailboxdmgr[8945]: no manager process is running
Jan 17 08:30:03 smtp zmmailboxdmgr[9021]: stale pid 3406 found in /opt/zimbra/log/zmmailboxd_manager.pid: No such process
Jan 17 08:30:03 smtp zmmailboxdmgr[9021]: assuming no other instance is running
Jan 17 08:30:03 smtp zmmailboxdmgr[9021]: file /opt/zimbra/log/zmmailboxd.pid does not exist
@altmas5
altmas5 / wine.log
Created January 15, 2018 15:30
wine crash running Presonus Studio One 3 Artist
.wine/drive_c/Program Files/PreSonus/Studio One 3/Studio One.exe
jvallecillo@me:~> wine "C:\Program Files\PreSonus\Studio One 3\Studio One.exe"
err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\ccltext.dll") not found
err:module:import_dll Library ccltext.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\cclsystem.dll") not found
err:module:import_dll Library cclsystem.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\cclgui.dll") not found
err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\ccltext.dll") not found
err:module:import_dll Library ccltext.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\cclgui.dll") not found
err:module:import_dll Library cclgui.dll (which is needed by L"C:\\Program Files\\PreSonus\\Studio One 3\\Studio One.exe") not found
err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\\Program Files\\PreS
@altmas5
altmas5 / graylog2-wipe.sh
Created December 28, 2017 18:16 — forked from huksley/graylog2-wipe.sh
Clean all data in graylog2 without deleting settings, with full restart
#!/bin/sh
systemctl stop elasticsearch.service
systemctl stop graylog-server.service
rm -rf /var/lib/elasticsearch/nodes/0/indices/*
# IF YOU HAVE AUTH USE THIS LINE - mongo graylog2 --eval "db.auth('graylog2', 'PASSWORD'); db.message_counts.remove();"
mongo graylog2 --eval "db.message_counts.remove();"
systemctl start elasticsearch.service
systemctl start graylog-server.service
#!/bin/sh
# Script para visualizar redirecciones en Zimbra
for account in `zmprov -l gaa`; do
forwardingaddress=`zmprov ga $account |grep 'zimbraPrefMailForwardingAddress' |sed 's/zimbraPrefMailForwardingAddress: //'`
if [ "$forwardingaddress" != "" ]; then
echo "$account is forwarding to $forwardingaddress"
else
forwardingaddress=""
fi
done
@altmas5
altmas5 / VDS Acces Error
Created August 19, 2017 04:15
Netacad test error
VDS Access Error
An error occurred while attempting to access VDS resources.
MISCONF Errors writing to the AOF file: Read-only file system; nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Errors writing to the AOF file: Read-only file system
@altmas5
altmas5 / strace.log
Created April 20, 2017 23:32
segfault on packet tracer 7.0 - openSUSE tumbleweed
strace packettracer
execve("/usr/local/bin/packettracer", ["packettracer"], [/* 96 vars */]) = 0
brk(NULL) = 0x13d8000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7faedd377000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/lib64/bash/4.3/tls/x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/bash/4.3/tls/x86_64", 0x7ffd89918ec0) = -1 ENOENT (No such file or directory)
open("/lib64/bash/4.3/tls/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib64/bash/4.3/tls", 0x7ffd89918ec0) = -1 ENOENT (No such file or directory)
open("/lib64/bash/4.3/x86_64/libreadline.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
@altmas5
altmas5 / tc-bcn.sh
Last active April 3, 2017 17:13
Obtener el tipo de cambio del banco central desde bash
#/bin/bash
> data.xml
dia=$(date +%d)
mes=$(date +%m)
anio=$(date +%Y)
hoy=$dia"/"$mes"/"$anio;
echo '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://servicios.bcn.gob.ni/">' >> data.xml