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 / README.md
Last active September 7, 2018 12:48
[Ununtu 18.04 Wifi Weak] #ubuntu #wifi #18.04
@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 / Contribute.md
Last active October 11, 2019 07:52
Contribute to Open Source
  • Fork the repo by clicking Fork button
  • Clone the forked repo to local machine
git clone https://www.github.com/shivampip/tenpy
  • Create the branch
git checkout -b my_new_branch
@shivampip
shivampip / telegram.py
Created October 11, 2019 13:35
Telegram Connnector for Rasa Modified
import logging
import json
from copy import deepcopy
from sanic import Blueprint, response
from sanic.request import Request
from telegram import (
Bot,
InlineKeyboardButton,
Update,
InlineKeyboardMarkup,
import logging
import json
from copy import deepcopy
from sanic import Blueprint, response
from sanic.request import Request
from telegram import (
Bot,
InlineKeyboardButton,
Update,
InlineKeyboardMarkup,
import logging
import uuid
from sanic import Blueprint, response
from sanic.request import Request
from socketio import AsyncServer
from typing import Optional, Text, Any, List, Dict, Iterable
from rasa.core.channels.channel import InputChannel
from rasa.core.channels.channel import UserMessage, OutputChannel
import asyncio
import inspect
import json
import logging
import uuid
from asyncio import Queue, CancelledError
from sanic import Sanic, Blueprint, response
from sanic.request import Request
from typing import Text, List, Dict, Any, Optional, Callable, Iterable, Awaitable
@shivampip
shivampip / pipenv_cheat_sheet.md
Last active November 11, 2019 18:26 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@shivampip
shivampip / fabric_demo.md
Last active November 13, 2019 06:59
Python SSH Client (Fabric built on top of Paramiko & Invoke)

Fabric is a high level Python (2.7, 3.4+) library designed to execute shell commands remotely over SSH, yielding useful Python objects in return

Installation

pip install fabric

Connect to VPS and Execute commands

from fabric import Connection
@shivampip
shivampip / vps_management.md
Last active November 20, 2019 02:56
VPS Management

Install VPS Monitoring Tool

curl https://raw.githubusercontent.com/ajenti/ajenti/master/scripts/install.sh | sudo bash -s -
  • Once installed, access with
:8000