Skip to content

Instantly share code, notes, and snippets.

View dmmat's full-sized avatar
😡

Dmytro Matsiuk dmmat

😡
  • Medics IT
  • Ukraine
View GitHub Profile
@dmmat
dmmat / bank_mfo.json
Created October 21, 2019 14:40
UA MFO
[{"300001": "Національний банк України"}, {"322313": "АТ \"Укрексімбанк\""}, {"300012": "ПАТ \"Промінвестбанк\""}, {"300023": "АТ \"УКРСОЦБАНК\""}, {"300465": "АТ \"ОЩАДБАНК\""}, {"300056": "ПАТ \"ЛЕГБАНК\""}, {"300142": "ПАТ \"УКРІНБАНК\""}, {"300175": "ПУАТ \"ФІДОБАНК\""}, {"320735": "ПАТ \"Інтеграл-банк\""}, {"300272": "ПАТ \"ЕНЕРГОБАНК\""}, {"300335": "АТ \"Райффайзен Банк Аваль\""}, {"300249": "АТ \"БРОКБІЗНЕСБАНК\""}, {"321767": "АТ \"ВТБ БАНК\""}, {"320940": "АТ \"АЛЬТБАНК\""}, {"305299": "АТ КБ \"ПриватБанк\""}, {"305062": "АКБ \"НОВИЙ\""}, {"353100": "Полікомбанк"}, {"334594": "ПАТ \"ПРОФІН БАНК\""}, {"334828": "ПАТ \"АКБ \"КАПІТАЛ\""}, {"321712": "АТ \"РОДОВІД БАНК\""}, {"322294": "АТ \"КБ \"ЕКСПОБАНК\""}, {"334840": "ПрАТ \"БАНК ФАМІЛЬНИЙ\""}, {"380537": "ПАТ \"ВіЕйБі Банк\""}, {"325268": "АТ АКБ \"Львів\""}, {"325990": "АТ \"ОКСІ БАНК\""}, {"307770": "АТ \"А - БАНК\""}, {"328209": "Акціонерний банк\"Південний\""}, {"328180": "АБ \"ПОРТО-ФРАНКО\""}, {"328210": "ПАТ \"КБ \"Інвестбанк\""}, {"331489":
#!/usr/bin/python3
from subprocess import call
import sys
import re
import http.client
from urllib.parse import urlparse
import json
@dmmat
dmmat / icpc2.json
Created July 14, 2018 13:58
icpc2 en-uk json
[
{
"code": "-30",
"shortTitleUa": "Повне медичне обстеження",
"preferred": "Medical examination/health evaluation complete",
"shortTitle": "Medical examin/health eval complete",
"inclusionUa": "повне обстеження однієї сиссистеми органів або цілого організму; повний медичний огляд; медогляд немовлят; медогляд школярів / молоді",
"inclusion": "complete examination of one body system or the whole body; complete check-up; well-baby exam; school health care exam for children/youth",
"exclusionUa": "",
"exclusion": "",
@dmmat
dmmat / ppa-remove
Created December 15, 2016 15:09
Automated Removal of 404 Not found PPA's through script
#!/bin/bash
sudo rm /tmp/update.txt; tput setaf 6; echo "Initializing.. Please Wait"
sudo apt-get update >> /tmp/update.txt 2>&1; awk '( /E:/ && /launchpad/ && /404/ ) { print substr($5,26) }' /tmp/update.txt > /tmp/awk.txt; awk -F '/' '{ print $1"/"$2 }' /tmp/awk.txt > /tmp/awk1.txt; sort -u /tmp/awk1.txt > /tmp/awk2.txt
tput sgr0
if [ -s /tmp/awk2.txt ]
then
tput setaf 1
printf "PPA's going to be removed\n%s\n" "$(cat /tmp/awk2.txt)"
tput sgr0
while read -r line; do echo "sudo add-apt-repository -r ppa:$line"; done < /tmp/awk2.txt > out