Skip to content

Instantly share code, notes, and snippets.

@and7ey
and7ey / VK Group Dashing Widget.md
Last active March 5, 2016 19:38
VK Group Dashing Widget

#VK Group Dashing Widget

Dashing Widget for displaying VK group members count.

##Usage

To use this widget, copy the vk_group.rb file in your /jobs folder, then copy vk_group.yml into your /config folder and setup the group_id there (the VK API method used doesn't require api_token, so just group_id is needed).

Add gem 'rest-client' to your Gemfile and run bundle. If you would like to store and display previous group members count value, add gem 'redis' also (don't forget to install the Redis itself).

@and7ey
and7ey / Google App Engine.sublime-build
Created May 25, 2020 10:24
Google Cloud (gcloud) App Engine Build System for Sublime Text
// http://www.sublimetext.com/docs/3/build_systems.html
// https://cloud.google.com/sdk/gcloud/reference/app
{
"file_patterns": ["*.py", "*.yaml"],
"keyfiles": ["app.yaml"],
"quiet": true,
"variants":
[
{
"name": "Run local server",
<!doctype html>
<html>
<body>
<h1>My First DIY Remote</h1>
<p>This works for my Samsung Television!!</p>
<button onclick="transmit('0000 006C 0000 0022 00AD 00AD 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 06FB')">
</button>
<button onclick="transmit('0000 0068 0000 000D 0060 0018 0030 0018 0018 0018 0030 0018 0018 0018 0030 0018 0018 0018 0018 0018 0030 0018 0018 0018 0018 0018 0018 0018 0018 0408')">
Power Off
</button>
<!doctype html>
<html>
<body>
<h1>My First DIY Remote</h1>
<p>This works for my Samsung Television!!</p>
<button onclick="transmit('0000 006D 0022 0002 0156 00AB 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 067C 0156 0055 0015 0E4E')">
Power Toggle
</button>
<button onclick="transmit('0000 006D 0022 0002 0156 00AB 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 067D 0156 0055 0015 0E4E')">
XBox Button

SP107E API

Characteristic: 0000ffe1-0000-1000-8000-00805f9b34fb

Informative

CHECK_DEVICE

Get device information and calculate checksum.

"""
The script allows to modify internet availability schedule for particular device connected to Keenetic router.
Script to be used with Pyscript HACS custom integration (https://github.com/custom-components/pyscript).
The following configuration is required (at configuration.yaml):
pyscript:
allow_all_imports: true
apps:
keenetic:
@and7ey
and7ey / kinopoisk_sync.py
Created March 17, 2024 16:43
Скрипт на python для синхронизации списка Буду смотреть Кинопоиска между аккаунтами и добавления торрентов на TorrServer
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
import os
import json
import sys
import requests
@and7ey
and7ey / configuration.yaml
Last active March 24, 2024 18:20
Home Assistant - FireLamp_JeeUI 2.7.0 (Gyverlamp)
mqtt:
# https://www.home-assistant.io/integrations/light.mqtt/
light:
- name: "firelamp"
unique_id: "firelamp_1234567890"
state_topic: "firelamp/embui/pub/on"
command_topic: "firelamp/embui/set/on"
payload_on: "1"
payload_off: "0"
brightness_command_topic: "firelamp/embui/set/g_bright"
// http://www.sublimetext.com/docs/3/build_systems.html
// https://cloud.google.com/sdk/gcloud/reference/app
{
//"file_patterns": ["*.py", "*.yaml"],
"keyfiles": ["app.yaml"],
"quiet": true,
"variants":
[
{
"name": "Run local server",
@and7ey
and7ey / GoogleAppEngineDevServerLog.sublime-syntax
Created May 16, 2024 14:09
Google App Engine Server Log Syntax Highlighting
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: GAE Dev Server Log
file_extensions: [log]
scope: source.example-c
contexts:
main:
# Strings begin and end with quotes, and use backslashes as an escape
# character