Skip to content

Instantly share code, notes, and snippets.

View Amar1729's full-sized avatar

Amar Paul Amar1729

View GitHub Profile
@Amar1729
Amar1729 / main.py
Created January 26, 2021 02:56
use telethon to send a bunch of messages (replies to polls) to a telegram chat
#! /usr/bin/env python3
import datetime
import json
from telethon.sync import TelegramClient
from telethon.tl.types import InputPeerChat, MessageMediaPoll
# expects a settings.py in the same directory with these vars defined
from settings import API_ID, API_HASH, CHAT_ID
@Amar1729
Amar1729 / libguestfs-gnulib.patch
Last active December 19, 2022 02:38 — forked from zchee/libguestfs-gnulib.patch
PATCH: libguestfs gnulib
diff --git a/configure b/configure
index 65f1145..068f21f 100755
--- a/configure
+++ b/configure
@@ -24432,9 +24432,9 @@ if ${gl_cv_func_getcwd_abort_bug+:} false; then :
$as_echo_n "(cached) " >&6
else
# Remove any remnants of a previous test.
- rm -rf confdir-14B---
+ # rm -rf confdir-14B---