Skip to content

Instantly share code, notes, and snippets.

View altmas5's full-sized avatar
🏊

Jorge Vallecillo altmas5

🏊
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@altmas5
altmas5 / SCTG.ca-bundle
Created May 30, 2020 17:00
Sectigo new ca-bundle
-----BEGIN CERTIFICATE-----
MIIGEzCCA/ugAwIBAgIQfVtRJrR2uhHbdBYLvFMNpzANBgkqhkiG9w0BAQwFADCB
iDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCk5ldyBKZXJzZXkxFDASBgNVBAcTC0pl
cnNleSBDaXR5MR4wHAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxLjAsBgNV
BAMTJVVTRVJUcnVzdCBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTgx
MTAyMDAwMDAwWhcNMzAxMjMxMjM1OTU5WjCBjzELMAkGA1UEBhMCR0IxGzAZBgNV
BAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEYMBYGA1UE
ChMPU2VjdGlnbyBMaW1pdGVkMTcwNQYDVQQDEy5TZWN0aWdvIFJTQSBEb21haW4g
VmFsaWRhdGlvbiBTZWN1cmUgU2VydmVyIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC
AQ8AMIIBCgKCAQEA1nMz1tc8INAA0hdFuNY+B6I/x0HuMjDJsGz99J/LEpgPLT+N
@altmas5
altmas5 / UserParameter.conf
Last active February 13, 2020 00:37
Queue stats (Members, Members in use, Members in call) for zabbix items
UserParameter=queue.stats[*],/var/lib/zabbix/externalscripts/queue_stats.sh "$1" "$2"
@altmas5
altmas5 / keep-webmin-virtualmin-up.sh
Created April 29, 2019 14:51
Keep usermin and webmin (virtualmin) up
#!/bin/bash
# checking if webmin or usermin are not running
# In case they are not running, start them
declare -a units=("webmin" "usermin");
for u in ${units[@]}
do
procs=`ps -Af | grep $u | grep -v 'grep\|keep-webmin-virtualmin-up.sh'`;
if [ -z "$procs" ]
@altmas5
altmas5 / countries.txt
Created January 26, 2019 02:11
Spammer hit count by country
$ for ip in `cat ips.txt`; do geoiplookup $ip| head -n 1| awk '{print $4" "$5" "$6" "$7'} >> countries.txt; done;
$ cat countries.txt | sort | uniq -c | sort -nr
334 MX, Mexico
183 AR, Argentina
178 IN, India
126 ZA, South Africa
102 CL, Chile
98 PK, Pakistan
91 CO, Colombia
75 CN, China
@altmas5
altmas5 / fail2ban-client status
Created January 26, 2019 02:07
banned IP list from postfix-sasl fail2ban jail
$ sudo fail2ban-client status postfix-sasl
Status for the jail: postfix-sasl
|- Filter
| |- Currently failed: 0
| |- Total failed: 1552
| `- File list: /var/log/zimbra.log
`- Actions
|- Currently banned: 1306
|- Total banned: 1558
`- Banned IP list: 210.89.85.2 200.6.186.182 196.214.141.11 24.139.99.206 87.42.170.59 122.180.145.16 94.25.162.14 116.72.237.86 196.27.114.134 45.220.4.165 27.57.142.68 122.146.178.34 201.234.199.18 201.164.65.10 82.117.210.166 81.40.206.62 109.109.102.126 115.31.163.242 201.145.41.165 203.122.35.162 103.26.226.34 41.212.221.179 218.17.42.202 39.50.1.115 200.75.11.26 5.44.39.91 88.250.54.185 14.161.253.176 202.79.34.152 41.189.77.2 118.131.33.5 197.232.51.161 93.123.103.130 83.16.77.245 113.20.96.250 123.160.246.190 103.43.4.118 103.192.168.110 86.124.90.178 111.223.170.59 223.189.186.78 115.135.162.25 213.172.135.204 118.69.52.61 112.196.39.246 103.217.178.111 88.116.67.94 200.45.171.42 117.254.210.130 105.27.99.174 105.224.176.65 202.114.144.229 39.59.68.191 58.71.201
@altmas5
altmas5 / tableau server installation
Last active May 21, 2018 21:34
Installation of tableau-server-2018-1-1_amd64.deb on Ubuntu 16.04
sudo gdebi -n tableau-server-2018-1-1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
Get:1 http://ni.archive.ubuntu.com/ubuntu xenial/main amd64 fonts-dejavu-core all 2.35-1 [1039 kB]
Get:2 http://ni.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fontconfig-config all 2.11.94-0ubuntu1.1 [49.9 kB]
Get:3 http://ni.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libfontconfig1 amd64 2.11.94-0ubuntu1.1 [131 kB]
Get:4 http://ni.archive.ubuntu.com/ubuntu xenial-updates/main amd64 fontconfig amd64 2.11.94-0ubuntu1.1 [178 kB]
Get:5 http://ni.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libglapi-mesa amd64 17.2.8-0ubuntu0~16.04.1 [22.8 kB]
@altmas5
altmas5 / generate-asterisk-passwdfile.sh
Last active April 10, 2018 23:55
Generate the Asterisk passwdfile accepted by the Authenticate function
#!/bin/bash
if [ -z "$1" ]
then
echo "Debe recibir el número de códigos a generar como parametro";
exit;
fi
n=$1
#!/bin/bash
###################################################################
# check_postfix_mailqueue is developped with GPL Licence 2.0
#
# GPL License: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
#
# First version developped by : Bjoern Bongermino
#
###################################################################
# This program is free software; you can redistribute it and/or
@altmas5
altmas5 / gns3server fails
Created March 8, 2018 21:45
ImportError: cannot import name 'unquote'
GNS3 GUI version 1.5.3
Copyright (c) 2007-2018 GNS3 Technologies Inc.
2018-03-08 15:40:21 INFO logger.py:107 Log level: INFO
2018-03-08 15:40:21 ERROR __init__.py:144 vmware command not found
2018-03-08 15:40:21 INFO servers.py:103 New local server connection http://127.0.0.1:3080 registered
2018-03-08 15:40:22 INFO __init__.py:181 VPCS module reset
2018-03-08 15:40:22 INFO __init__.py:322 Dynamips module reset
2018-03-08 15:40:22 INFO __init__.py:262 IOU module reset
2018-03-08 15:40:22 INFO __init__.py:256 QEMU module reset
2018-03-08 15:40:22 INFO __init__.py:302 VirtualBox module reset