Skip to content

Instantly share code, notes, and snippets.

View SubhrajitPrusty's full-sized avatar
💭
procrastinating

Subhrajit Prusty SubhrajitPrusty

💭
procrastinating
View GitHub Profile
@liponex
liponex / yt-shorts-autoplay.js
Last active April 12, 2023 12:52 — forked from SubhrajitPrusty/yt-shorts-autoplay.js
Script that automatically scroll YouTube Shorts
// ==UserScript==
// @name YouTube Shorts autoscroll
// @version v0.0.2
// @grant none
// @author Subhrajit Prusty, liponex
// @description Just auto scroll through youtube shorts
// @match https://www.youtube.com/*
// ==/UserScript==
(function () {
// ==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)
@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.
@njoerd114
njoerd114 / README.MD
Last active March 4, 2024 11:20
Sankey Diagram with Google Spreadsheets

Sankey Diagrams within Google Spreadsheets

This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.

Installation

  • Open a spreadsheet
  • Click "Tools" -> "Scripts"
@quasoft
quasoft / gst_playbin_sink_example.py
Created October 8, 2016 19:10
Using GStreamer with playbin and custom sink as radio player
#!/usr/bin/env python3
import gi
import threading
gi.require_version('Gst', '1.0')
gi.require_version('GstBase', '1.0')
gi.require_version('Gtk', '3.0')
from gi.repository import GObject, Gst
# Initialize threads
GObject.threads_init()
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
# Forked from the original to do the opposite: Switch ssh repo urls to https
# Original here: https://gist.github.com/m14t/3056747
# Thanks to @m14t
#origin or upstream
REMOTE=${1-origin}
REPO_URL=`git remote -v | grep -m1 "^$REMOTE" | sed -Ene's#.*(git@github.com:[^[:space:]]*).*#\1#p'`
@rxaviers
rxaviers / gist:7360908
Last active May 1, 2024 19:56
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@aras-p
aras-p / preprocessor_fun.h
Last active April 28, 2024 15:25
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,