View gist:d3827a3ce3a904522b3a8dc6d7fde76e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/9500848/how-do-i-read-this-complex-declaration-in-c/9501054#9501054 | |
https://cdecl.org/?q=void+%28*signal%28int%2C+void%28*%29%28int%29+%29%29%28int%29 |
View smpp_dlr_ecodes.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | MT number is unknown in the MT network’s HLR | |
---|---|---|
2 | MT number is unknown in the MT network’s HLR | |
5 | MT number is unknown in the MT network’s MSC | |
9 | MT number is classed as an illegal subscriber in the MT network’s MSC | |
11 | MT HLR sends back a “Teleservice not provisioned” error in responseto the SRI | |
12 | MT handset is listed as an Illegal device on the MSC. | |
13 | Customer is barred according to the MT HLR from receiving SMS | |
15 | MT customer is part of a CUG that is not allowed to receive SMS | |
21 | SMS not supported in the MT network. | |
22 | SMS not supported in the MT MSC |
View backup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/usr/bin:/usr/sbin | |
# Установка переменных | |
SITE_DIRECTORY="/var/www/mysite.ru" # Путь к директории сайта | |
BACKUP_DIRECTORY="/opt/git/site" # Путь к директории для сохранения бэкапов | |
EMAIL_RECIPIENT="mysite@mysite.ru" # Адрес получателя электронной почты | |
MAX_DIFF_SIZE=$((10 * 1024)) # 10 Кб в байтах | |
# Создание временной директории для выполнения операций |
View subnets.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# dnf install perl-Net | |
# wget ftp://ftp.ripe.net/ripe/dbase/split/ripe.db.inetnum.gz | |
# wget https://ftp.apnic.net/apnic/whois/apnic.db.inetnum.gz | |
# zcat ripe.db.inetnum.gz | ./subnets.pl RU BY | |
# zcat apnic.db.inetnum.gz | ./subnets.pl MN | |
use Net::CIDR qw(range2cidr); | |
use Symbol; | |
use strict; |
View install-hpe-sdr.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: node1 | |
become: yes | |
roles: | |
- role: ansible-role-hpe-common | |
- role: ansible-role-hpe-spp | |
hpe_spp_packages: | |
- amsd | |
- hponcfg | |
- ssacli |
View gist:752a02b404f4918fe69c39f9e2a2672f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://12factor.net/ru/ | |
https://www.redhat.com/architect/12-factor-app | |
https://kubernetes.io/ | |
https://kubespray.io/ | |
https://kube101.jeffgeerling.com/ | |
https://www.youtube.com/watch?v=Mw_rEH2pElw&list=PL8D2P0ruohOBSA_CDqJLflJ8FLJNe26K- |
View gist:f365f90453ffe7937da4021a3d9567b3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.netmeister.org/blog/tlds.html | |
https://www.netmeister.org/misc/zonestats.pl | |
https://czds.icann.org/home |
View gist:a32240d9ad0b216fa0671cec9a3d0c4b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://api.open-notify.org/iss-now.json | jq '.' |
View gist:bd11e788f552fa7de6a11c73afef1ca1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smsc2_rout() -> smscconn_usable() | |
http://doxygen.kannel.org/d3/d05/smscconn_8c.html#aeaca8fdaf047fab86a82ed5890c4ecc3 | |
Смотрим список живых каналов. | |
1. Канал не подходит, если (ret=-1): | |
- есть allowed-smsc-id, а в сообщении smsc-id не определён или он не был найден | |
- есть denied-smsc-id, и он полностью совпадает с smsc-id из сообщения | |
- есть allowed-smsc-id-regex, но в сообщении нет smsc-id или он не совпадает с тем что в сообщении | |
- есть denied-smsc-id-regex и он совпадает с smsc-id из сообщения |
View gist:80db096112857f36ae96087511078f5b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -q https://registry.hub.docker.com/v1/repositories/gitlab/gitlab-ce/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | egrep '^12.' |
NewerOlder