This file contains hidden or 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
RESULT=$(curl --request GET --silent --url 'http://toronto.kdmid.ru/ru.aspx?it=%2FNews_and_announcements.aspx&lst=ru' | grep -C 1 -E "Эдмонтон|Калгари") | |
if [ ! -z "$RESULT" -a "$RESULT" != " " ]; then | |
curl -s \ --form-string "token=<TOKEN_ID>" \ --form-string "user=<USER_ID>" \ --form-string "message=$RESULT" \ https://api.pushover.net/1/messages.json | |
fi |
This file contains hidden or 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/env python | |
import urllib2 | |
import ssl | |
import json | |
import os | |
SRV_CONTEXT = ssl.SSLContext(ssl.PROTOCOL_TLSv1) | |
# Configurable parameters | |
SRV_URL = "https://<URL>:<PORT>" | |
SRV_USR = "1" |
This file contains hidden or 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
FROM centos/systemd | |
MAINTAINER Oleg Snegirev <[email protected]> | |
# Install packages | |
RUN yum -y install openssh-server sudo nano epel-release openssl certmonger; systemctl enable sshd.service | |
# Enable root and pos accounts | |
RUN echo 'root:33103255235331325230' | chpasswd | |
RUN adduser pos && \ |
This file contains hidden or 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
package com.aleksnegirov.mt.gui; | |
import com.aleksnegirov.mt.R; | |
import com.aleksnegirov.mt.R.drawable; | |
import com.aleksnegirov.mt.R.id; | |
import com.aleksnegirov.mt.R.layout; | |
import android.content.Context; | |
import android.view.View; | |
import android.view.ViewGroup; |