Skip to content

Instantly share code, notes, and snippets.

View shivampip's full-sized avatar
🏡
In Quarantine

Shivam Agrawal shivampip

🏡
In Quarantine
View GitHub Profile
@shivampip
shivampip / hard_drive_recovery.md
Created March 29, 2019 18:44
[Hard drive data recovery in Ubuntu] #datarecovery #recovery #harddirve #harddisk
  • Open Terminal
  • sudo apt-get install testdisk
  • sudo testdisk /dev/sdb
  • Select drive
  • Select Intel/PC partition
  • Select Analyse
  • Quick Search
  • Select drive
  • Press 'P' to list files
  • Copy with 'c' and paste with 'c' at destination folder
@shivampip
shivampip / draw.py
Created October 6, 2018 07:04
[Dragon Curve] #dragoncurve #dragon #curve #python #turtle
import turtle as t
import math
n= 21 # Number of folds
step= 1 # Step length
l= 2**n - 1
a= [0]*l
def fold(m, start, end, dir):
@shivampip
shivampip / wikibot.py
Last active March 7, 2022 04:22
[Telegram Wikipedia Bot] #telegram #wikipedia #bot #python
from telegram.ext import Updater
from telegram.ext import MessageHandler, Filters
import wikipedia as wiki
# put your toen here
BOT_TOKEN= "641238067:AAEB___d1oM4llx6********************"
updater= Updater(BOT_TOKEN) #Bot Token is given by BotFather on Telegram while creating bot.
def get_wiki(word):
@shivampip
shivampip / README.md
Last active September 7, 2018 12:48
[Ununtu 18.04 Wifi Weak] #ubuntu #wifi #18.04