Skip to content

Instantly share code, notes, and snippets.

View hitesh83's full-sized avatar

Hitesh hitesh83

  • Pune, India
View GitHub Profile
@hitesh83
hitesh83 / FTP.sh
Created April 1, 2018 08:54
FTP mirror local to remote FTP
Finally got the answer!!! Create shell script ftpmirror.sh
#!/bin/bash
path = /local-dir-path
lftp -e "mirror -R $path /$path" -u username,password ftp-server-ip
Path = local directory which we want to copy into ftp server
username = ftp server user name
password = ftp server password
ftp-server-ip = IP address of ftp server
If lftp package is not installed the installed it using yum.
@hitesh83
hitesh83 / telegram_bot.py
Last active May 26, 2017 06:05
Telegram Bot
import time
import random
import datetime
import subprocess
import picamera
import cat
import telepot
from telepot.loop import MessageLoop
def handle(msg):
@hypnoJerk
hypnoJerk / README.md
Last active July 3, 2023 16:51
from_twitter_to_telegram

Twitter >> Telegram

Auto post tweets from Twitter, to a Telegram bot

This script simply takes a twitter user name, and fetches the latest tweets from their timeline. Then reposts those tweets to a telegram bot(or channel via a bot)

####Requirements: You need Twython installed. Twython is a twitter-python API

####Notes: