Skip to content

Instantly share code, notes, and snippets.

View athphane's full-sized avatar
😡
(╯°□°)╯︵ ┻━┻

Athfan Khaleel athphane

😡
(╯°□°)╯︵ ┻━┻
View GitHub Profile
@athphane
athphane / carbon-now-pyrogram.py
Last active May 13, 2020 15:02
Get a pretty image of your code using carbon-now-cli in telegram.
"""
Turn your code into beautiful images using carbon-now-cli.
You will need npm installed on your machine to install carbon-now-cli..
Windows: npm install -g carbon-now-cli
Linux: sudo npm install -g carbon-now-cli --unsafe-perm=true --allow-root
MacOS: I assume almost the same as linux ¯\_(ツ)_/¯
"""
import os
from time import sleep

Namaadhu Vaguthu API Docs

GET /islands

format (string):
default: xml
supports: json, xml

lang (string):
default: null

@athphane
athphane / qbittorent-telegram-script.py
Last active February 23, 2018 07:16
Python script to send message through telegram about qBitTorrent download completion.
import os , sys, string, time, random
from datetime import datetime
from os import linesep
from decimal import *
# Telepot library from pip
import telepot
#Random Sys.Argv replacements for testing purposes.
#This comes in handy more than I thought it would.
names = ['ubuntu-16.04.1-desktop-amd64.iso', 'Storks (2016) [1080p] [YTS.AG]', 'Mom.S04E08.HDTV.x264-LOL[eztv].mkv', '20160915_madsonic-6.1.8700-setup-x86.zip', 'Peace Is The Mission']