Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
2017-12-21 14:26:32.000 19.000 165 178.248.57.155:0 -> 0.0.0.0:0 6 360 1
2017-12-21 14:26:52.000 0.000 Trnk2 178.248.60.111:0 -> 1.187.199.176:0 1 1452 1
2017-12-21 14:26:47.000 0.000 ARGUS 178.248.57.155:0 -> 242.122.114.126:0 1 60 1
2017-12-21 14:26:32.000 19.000 165 178.248.57.155:0 -> 0.0.0.0:0 6 360 1
2017-12-21 14:26:47.000 3.000 168 178.248.60.12:0 -> 1.187.212.95:0 6 8784 1
2017-12-21 14:26:52.000 0.000 TCP 178.248.56.193:50068 -> 81.0.212.201:443 1 85 1
2017-12-21 14:26:32.000 16.000 ISOIP 178.248.57.155:0 -> 205.95.26.225:0 6 3296 1
2017-12-21 14:26:52.000 0.000 TCP 178.248.62.162:64292 -> 77.75.78.69:443 1 66 1
2017-12-21 14:26:52.000 0.000 255 178.248.56.193:0 -> 1.187.195.191:0 1 60 1
2017-12
nainstalovano
asterisk/stable,stable,now 1:13.14.1~dfsg-2+deb9u2 amd64 [installed]
asterisk-config/stable,stable,now 1:13.14.1~dfsg-2+deb9u2 all [installed,automatic]
asterisk-core-sounds-en/stable,now 1.4.27-1 all [installed,automatic]
asterisk-core-sounds-en-gsm/stable,now 1.4.27-1 all [installed,automatic]
asterisk-modules/stable,stable,now 1:13.14.1~dfsg-2+deb9u2 amd64 [installed,automatic]
--------------------------------------------------------------------------------------
mozno nainstalovat
@analogic
analogic / radacct.sql
Last active February 27, 2018 14:07
FreeRADIUS Accounting per month
CREATE TABLE IF NOT EXISTS `data_month` (
`calledstationid` VARCHAR(50),
`in_octets` BIGINT(20) DEFAULT 0,
`out_octets` BIGINT(20) DEFAULT 0,
`year` INT(4),
`month` INT(2),
`last_update` DATETIME,
PRIMARY KEY (`calledstationid`, `year`, `month`)
) ENGINE MyISAM;
@analogic
analogic / data-raw.sql
Created February 27, 2018 07:59
FreeRadius Accounting
CREATE TABLE IF NOT EXISTS `data_raw` (
`acctsessionid` varchar(32) COLLATE utf8_czech_ci DEFAULT NULL,
`username` varchar(64) COLLATE utf8_czech_ci DEFAULT NULL,
`nasipaddress` varchar(15) COLLATE utf8_czech_ci DEFAULT NULL,
`acctsessiontime` int(11) DEFAULT NULL,
`acctinputoctets` bigint(20) DEFAULT NULL,
`acctoutputoctets` bigint(20) DEFAULT NULL,
`prev_acctsessiontime` int(11) DEFAULT NULL,
`prev_acctinputoctets` bigint(20) DEFAULT NULL,
`prev_acctoutputoctets` bigint(20) DEFAULT NULL,
@analogic
analogic / autolink.dart
Created October 15, 2018 10:28
Flutter method to create text with autodetected links
@analogic
analogic / .drone.yml
Created March 18, 2019 07:58
Moving from cloud.docker.com autobuild+autotest to drone.io (repository must be privileged!§)
kind: pipeline
name: default
steps:
- name: test
image: docker:dind
privileged: true
pull: true
volumes:
- name: dockersock
@analogic
analogic / creditas.php
Created June 4, 2019 07:25
Minimalistic Creditas Bank API client
<?php
class Creditas {
private $id;
private $secret;
public function __construct(string $id, string $secret)
{
$this->id = $id;
"""
Decoder for the Huawei AES256 encryption scheme. Further details are
available at the following URL:
http://blog.emaze.net/2013/12/yet-another-huawei-weak-password.html
Author: Roberto Paleari (@rpaleari)
"""
from Crypto.Cipher import AES
#!/bin/bash
cp -Rp /data/mailserver/log/dmarc/analogic.cz /tmp/dmarc-analogic.cz
cp -Rp /data/mailserver/log/dmarc/ranky.cz /tmp/dmarc-poste.io
cd /tmp/dmarc-analogic.cz
rename 's/humplik\.cz/analogic.cz/g' *
find . -type f -name '*' -exec bash -c 't=$(stat -c %y "$0"); sed -i -e "s/humplik\.cz/analogic.cz/g" "$0"; touch -d "$t" "$0"' {} \;
rm -Rf /data/mailserver-demo/log/dmarc/analogic.cz
mv /tmp/dmarc-analogic.cz /data/mailserver-demo/log/dmarc/analogic.cz
[
{
"country-name": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"top-level-domain": "af",
"fips": "AF",
"iso-numeric": "004",
"geonameid": "1149361",
"e164": "93",