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 / .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 / 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 / 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 / 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 () {