Skip to content

Instantly share code, notes, and snippets.

View nikell28's full-sized avatar
💭
import system.brain

Никель Виктор nikell28

💭
import system.brain
View GitHub Profile
@MasterGroosha
MasterGroosha / bot.py
Created November 25, 2020 11:09
aiogram custom filter example
import logging
from aiogram import Bot, Dispatcher, executor, types
from aiogram.dispatcher.filters import Filter
logging.basicConfig(level=logging.INFO)
bot = Bot(token="")
dp = Dispatcher(bot)
admins = set()
@anton-petrov
anton-petrov / recaptcha.py
Created September 24, 2017 19:11
Solve reCAPTCHA with Selenium + Python
import re, csv
from time import sleep, time
from random import uniform, randint
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
@pobsuwan
pobsuwan / rabbitmq-cluster.md
Last active November 14, 2024 22:45
How to config rabbitmq server cluster [3 nodes]

How to config rabbitmq server cluster [3 nodes]

Edit /etc/hosts

vi /etc/hosts
192.168.10.157  rabbitmq-1
192.168.10.159  rabbitmq-2
192.168.10.161  rabbitmq-3
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active November 8, 2024 00:56
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@ExpandOcean
ExpandOcean / kivy_cv.py
Created January 7, 2015 06:48
kivy and opencv work together demo
# coding:utf-8
from kivy.app import App
from kivy.uix.image import Image
from kivy.clock import Clock
from kivy.graphics.texture import Texture
import cv2
class KivyCamera(Image):
def __init__(self, capture, fps, **kwargs):