Skip to content

Instantly share code, notes, and snippets.

View SubhrajitPrusty's full-sized avatar
💭
procrastinating

Subhrajit Prusty SubhrajitPrusty

💭
procrastinating
View GitHub Profile
// ==UserScript==
// @name Youtube Shorts autoscroll
// @version v0.0.1
// @grant none
// @author Subhrajit Prusty
// @description Just auto scroll through youtube shorts
// @include https://www.youtube.com/shorts/*
// ==/UserScript==
(function () {
@SubhrajitPrusty
SubhrajitPrusty / discord-kodi-rp.py
Created July 31, 2022 19:46
Set now-playing details from Kodi as Discord status
import os
import time
import requests
from dotenv import load_dotenv
from pypresence import Presence
load_dotenv()
client_id = os.getenv('DISCORD_BOT_ID')
RPC = Presence(client_id, pipe=0)
@SubhrajitPrusty
SubhrajitPrusty / purge.py
Last active May 31, 2023 03:14
Simple discord bot to kick everyone and delete all channels
import discord
from discord.ext.commands import has_permissions, MissingPermissions
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.command()
@has_permissions(kick_members=True)
@SubhrajitPrusty
SubhrajitPrusty / vanguard.ahk
Created July 15, 2021 21:53
Destiny2-Auto-Vanguard-token-turn-in
; F4 to start, F5 to pause in between
; runs 100 times, ie 100 engrams
; clear postmaster, or turn on farming mode on DIM
; Adjust coordinates according to your resolution - this is for 1920x1080p
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
@SubhrajitPrusty
SubhrajitPrusty / .env
Last active November 27, 2019 06:18
GITEA + DRONE SETUP
DB_NAME=gitea
DB_USER=gitea
DB_PASSWD=giteapass
MYSQL_ROOT_PASSWORD=password
MYSQL_USER=gitea
MYSQL_DATABASE=gitea
MYSQL_PASSWORD=giteapass
@SubhrajitPrusty
SubhrajitPrusty / codex_logo.png
Last active April 22, 2019 15:29
Create a wordcloud from Codex telegram group chat
codex_logo.png
@SubhrajitPrusty
SubhrajitPrusty / palettegen.py
Last active November 23, 2018 11:33
Generate and show a palette from the current image, video or camera
from PIL import Image, ImageDraw
import cv2
import numpy as np
import os
import sys
if len(sys.argv) < 2:
print("Needs file path ")
sys.exit(1)
@SubhrajitPrusty
SubhrajitPrusty / wallgen-effect.py
Last active November 14, 2018 19:05
Make a video of polygonization of a picture from less polygons to more
#! /usr/bin/python3
from wallgen import *
import os
from PIL import Image
import numpy as np
import cv2
import sys
if len(sys.argv) < 1:
@SubhrajitPrusty
SubhrajitPrusty / gradient-vid.py
Last active November 11, 2018 08:34
Make a gradient creation video
#! /usr/bin/python3
from wallgen import *
import os
from PIL import Image
import numpy as np
import cv2
import sys
ERASE_LINE = '\x1b[2K'
@SubhrajitPrusty
SubhrajitPrusty / wallgen-vid.py
Last active September 14, 2019 20:53
Make a poly video using wallgen
from wallgen import *
import os
from PIL import Image
import numpy as np
import cv2
import sys
if len(sys.argv) < 1:
print("Needs file path ")
sys.exit(1)