Skip to content

Instantly share code, notes, and snippets.

Konstantin Shapkin kestel

Block or report user

Report or block kestel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kestel /
Last active Aug 20, 2019
Rename files from format Safari Books Online Video Downloader to more human friendly
#!/usr/bin/env python3
"""Rename files from format Safari Books Online Video Downloader
to more friendly"""
import os
import re
time_re = re.compile('(\d+m \d+s|\d+s).mp4')
number_re = re.compile('((\d{3})\s-\s).+.mp4')
chapter_re = re.compile('\d{3}-(\d+\s\d+).+.mp4')
kestel / esp8266_i2c_lcd.ino
Last active Feb 12, 2017
Simple example for esp8266 with LCD 2004 screen by i2c
View esp8266_i2c_lcd.ino
// Library
// Original from
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0};
View _01.temp_sensor_01.ino
// Code based on
// esp8266 + dht22 + mqtt
#include "DHT.h"
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
View dht22_deepsleep.ino
*** Sample using esp-01, D16 is connected to RST
*** If DHT22 is powered by a gpio( VCC of DHT22 is connected to a gpio) and OUTPUT of DHT22 is connected to D2, boot will fail.
*** Power off ----> D2 is in LOW( == DHT22 is in LOW) ==> SDIO boot mode.
Temperature and humidity values are each read out the results of the last measurement.
For real-time data that need continuous read twice, we recommend repeatedly to read sensors,
and each read sensor interval is greater than 2 seconds to obtain accuratethe data.
kestel / influxdb.conf
Created Dec 29, 2016 — forked from adithyabenny/influxdb.conf
Nginx config for InfluxDB HA
View influxdb.conf
http {
client_max_body_size 20M;
upstream influxdb {
server server1:8086;
server server2:8086;
upstream relay {
server server1:9096;
server server2:9096;
kestel / tumblr-photo-ripper.rb
Created May 19, 2016 — forked from jamiew/tumblr-photo-ripper.rb
Download all the images from a Tumblr blog
View tumblr-photo-ripper.rb
# Usage:
# [sudo] gem install mechanize
# ruby tumblr-photo-ripper.rb
require 'rubygems'
require 'mechanize'
# Your Tumblr subdomain, e.g. "jamiew" for ""
site = "doctorwho"
kestel /
Created Sep 30, 2015 — forked from DenisFromHR/
RaspberryPi I2C LCD Python stuff
# -*- coding: utf-8 -*-
Compiled, mashed and generally mutilated 2014-2015 by Denis Pleic
# Modified Python I2C library for Raspberry Pi
# as found on
# Joined existing '' and '' into a single library
# added bits and pieces from various sources
# By DenisFromHR (Denis Pleic)
You can’t perform that action at this time.