Skip to content

Instantly share code, notes, and snippets.

View mrhalix's full-sized avatar
💭
Call me on telegram

SM. Amin Aleahmad mrhalix

💭
Call me on telegram
View GitHub Profile
@mrhalix
mrhalix / tgtweetbot.py
Created June 12, 2018 07:04
a bot which tweets what it receives. JUST change the "PUT HERE" parts with your own information and run the code!
#!/usr/bin/python
# -*- coding: utf-8 -*-
import requests, telebot, json, sys
reload(sys)
sys.setdefaultencoding('utf8')
"""
#########################
JUST change the "PUT HERE" parts with your own information and run the code!
@mrhalix
mrhalix / hotgramproxy.py
Created June 9, 2018 22:14
HotGram Proxy Leecher for telegram + Send proxy to telegram channel
import telebot, requests, json, base64
# ------ CONFIG
API_TOKEN = "GOFUCKYOURSELF=)))))"
CHANNEL_ID = "@MrHalix"
def get_proxy():
response = requests.get("http://lh58.hotgram.ir/v1/proxy?slt=77799000&appId=3")
return json.loads(response.text)
@mrhalix
mrhalix / utmToLatLng.py
Created July 15, 2017 19:10 — forked from javierwilson/utmToLatLng.py
Converts UTM to Latitude, Longitude
#!/usr/bin/python
# taken from http://stackoverflow.com/a/344083/1170404
# usage: cat filemame.txt | ./utmToLatLng.py
import math
import fileinput
# zone = 16 (Nicaragua)
def utmToLatLng(easting, northing, northernHemisphere=True, zone=16):