Skip to content

Instantly share code, notes, and snippets.

View MasterGroosha's full-sized avatar

Aleksandr MasterGroosha

View GitHub Profile
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
ShowHelp()
{
Gui, New, 2 ; Creates a new unnamed and unnumbered GUI.
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%
#Include AHKHID.ahk
;Set up the constants
AHKHID_UseConstants()
@MasterGroosha
MasterGroosha / wface.c
Created August 9, 2017 18:20
Pebble watchface condensed
#include <pebble.h>
static Window *s_main_window;
static TextLayer *s_time_layer;
static TextLayer *s_date_layer;
static GFont s_time_font;
static GFont s_date_font;
static char date_text[32];
@MasterGroosha
MasterGroosha / TelegramConfigWatcher.py
Last active October 14, 2017 17:40
Watch Telegram server config change.
# -*- coding: utf-8 -*-
import re
import ujson
import telebot
from telethon import TelegramClient
from telethon.tl.functions.help import GetConfigRequest
from vedis import Vedis
bot = telebot.TeleBot("token") # Your Telegram bot token
@MasterGroosha
MasterGroosha / config.py
Created October 31, 2018 22:41
Simple Telegram Desktop version checker. Notifications are sent to Telegram channel of your choice.
# -*- coding: utf-8 -*-
# Bot token, obtain from @BotFather
token = "1234567890:AAabcdefghzzzzzzzzz"
# Vedis database file name (created automatically)
db_name = "data.vdb"
# ID of target channel
channel = -1001234567890
swagger: '2.0'
info:
description: Pistache test
version: 0.0.1
title: Pistache-Test
host: '127.0.0.1:8081'
tags:
- name: echo
description: Check service status
- name: calc

Keybase proof

I hereby claim:

  • I am MasterGroosha on github.
  • I am groosha (https://keybase.io/groosha) on keybase.
  • I have a public key whose fingerprint is 4209 7F5C 23F1 D8E3 C60F 3644 8948 02DE 0BEB 3789

To claim this, I am signing this object:

@MasterGroosha
MasterGroosha / return_filters_scrollbar.user.js
Created May 14, 2019 10:46
Returns missing filters scrollbar to pixelfed.social on Google Chrome
// ==UserScript==
// @name Return filters scrollbar to pixelfed.social
// @namespace https://pixelfed.social/
// @version 1.0
// @description Return filters scrollbar to pixelfed.social
// @author MasterGroosha
// @match https://pixelfed.social/
// @grant GM_addStyle
// ==/UserScript==
package main
import (
"bytes"
"compress/zlib"
"encoding/binary"
"fmt"
//"io"
"io/ioutil"
//"os"
# -*- coding: utf-8 -*-
row1 = ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9"]
row2 = ["b1", "b2", "b3", "b4", "b5"]
row3 = ["c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "c10", "c11", "c12", "c13", "c14"]
rows = [row1, row2, row3]
max_size = -1
number = 0