Skip to content

Instantly share code, notes, and snippets.

View SubhrajitPrusty's full-sized avatar
💭
procrastinating

Subhrajit Prusty SubhrajitPrusty

💭
procrastinating
View GitHub Profile
@SubhrajitPrusty
SubhrajitPrusty / record_screen.sh
Last active March 10, 2021 14:32
Record screen using ffmpeg
# record for 30 seconds
# LINUX
ffmpeg -f x11grab -t 30 -i :0 -y record.mp4
# WINDOWS
ffmpeg -f gdigrab -t 30 -i desktop -y record.mp4
@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 / 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)
// ==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 / 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)