Skip to content

Instantly share code, notes, and snippets.

View pranscript's full-sized avatar
💭
Bang On!

Pranjal pranscript

💭
Bang On!
View GitHub Profile
@pranscript
pranscript / followersUserID.py
Last active June 2, 2022 02:28
Extract the list of all Twitter follower's User IDs of a specific user account
import tweepy
import time
import json
def get_twitter_api():
#Fill API Keys
consumer_key = "xxxxxxxxxxxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
access_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
access_token_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
@pranscript
pranscript / browsingHistory.md
Last active December 20, 2020 22:42
Find Unique Websites visited through Chrome Browser on Windows

Prerequisite

  1. https://www.sqlite.org/download.html // Precompiled binaries with .exe file
  2. Get your history file from chrome folder // C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\History
  3. Put the contents in same folder.
  4. Add this path to environment variables.

Command

  1. sqlite3 // enters sqlite3
@pranscript
pranscript / rclone_usage.md
Last active December 30, 2020 02:32
rclone usage to copy data to and from google drive without using Service Accounts (SA).

Example Command

rclone copy "remoteSourceName:/Folder1/Folder2 with a space/Folder 3" "remoteDestinationName:/Folder2 with a space/Folder 3/" --drive-server-side-across-configs -v -P --drive-stop-on-upload-limit=true --fast-list

rclone size "remoteName:/specficFolder"

  1. RemoteSourceName/RemoteDestinationName - The name of remote you set during rclone config
  2. You can try without --fast-list parameter.
  3. -v=verbose, -P=Progress
@pranscript
pranscript / gclone_usage.md
Last active December 30, 2020 02:32
gclone usage to copy data from google drive using Service Accounts (SA)

Prerequisite

  1. Assuming SA accounts are already added to each drive. All these steps will be available in AutoRClone tutorials on internet.

  2. During gclone config, remember to put values for "service account file" and "service account path folder".

     For file - C:\gcloneFolder\accounts\XXXXXXXXXXXXXXXXXXXXXXXXXXX.json
    
     For path - C:\gcloneFolder\accounts\
    

Example Command

@pranscript
pranscript / gitAuto.bat
Last active August 9, 2020 00:21
Github's commands (add, commit, push) all in one. Only for simple usecase. Make sure $PATH variables are set.
set /p commitMessage=Enter Your Commit Message!!
echo %commitMessage%
make git m="%commitMessage%"
pause