Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Viewers AutoReload
// @version 0.1
// @author crashmax
// @match https://www.twitch.tv/moderator/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitch.tv
// @grant none
// ==/UserScript==
setInterval(() => {
@Satont
Satont / patreon_discord.py
Created November 14, 2021 02:08 — forked from Luc1412/patreon_discord.py
Get Patreon data based on discord user id
# Campaign ID can be fetched trough the API (List all Campaigns: GET https://www.patreon.com/api/oauth2/v2/campaigns)
# access_token can be created on https://www.patreon.com/portal/registration/register-clients
# For more data, add fields to either fields[member] or fields[user]. All fields are listed on https://docs.patreon.com/#apiv2-resources
async def fetch_patreons(self, campaign_id, access_token):
patreons = {}
url = f'https://www.patreon.com/api/oauth2/v2/campaigns/{campaign_id}/members'
params = {
'include': 'user',
'fields[member]':
@Satont
Satont / sp
Last active January 16, 2022 09:52 — forked from duncan-bayne/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/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.
#