Skip to content

Instantly share code, notes, and snippets.

View krepver's full-sized avatar

Aleksei Aleshin krepver

View GitHub Profile
@krepver
krepver / dnsTest.cpp
Created October 4, 2018 12:37
Попытка получить srv запись
#include <winsock2.h> //winsock
#include <windns.h> //DNS api's
#include <stdio.h> //standard i/o
#include <winerror.h>
#include <locale>
#include <clocale>
//Usage of the program
void Usage(char *progname) {
fprintf(stderr,"Usage\n%s -n [HostName|IP Address] -t [Type] -s [DnsServerIp]\n",progname);
#include <iostream>
#include <thread>
#include <chrono>
using namespace std;
int main()
{
setlocale( LC_ALL, "ru_RU.UTF-8");
for (int i = 0; i< 10; ++i) {
FROM postgres:9.4
VOLUME /bk
COPY . /bk/
RUN mv /bk/init.sh /docker-entrypoint-initdb.d && chmod +x /docker-entrypoint-initdb.d/init.sh
// With reference to the android.app.IntentService of the Android framework
// Member variable
private volatile Looper mServiceLooper;
private volatile ServiceHandler mServiceHandler;
// Handler Class
private final class ServiceHandler extends Handler {
public ServiceHandler(Looper looper) {
super(looper);