Skip to content

Instantly share code, notes, and snippets.

@3ventic
3ventic / reviewdropdown.user.js
Last active August 29, 2015 14:00
Replace review button with a dropdown menu on SE
// ==UserScript==
// @name Review dropdown
// @namespace stackexchange.com
// @version 1.6
// @description Review link replaced with a dropdown menu allowing you to access 10k tools and see how many posts there are in each review queue, with links to each one.
// @include http*://*.stackexchange.com/*
// @include http*://*stackoverflow.com/*
// @include http*://*superuser.com/*
// @include http*://*serverfault.com/*
// @include http*://*mathoverflow.com/*
@3ventic
3ventic / twitch-irc-v3.md
Last active May 5, 2022 14:39
Twitch IRC v3

Twitch IRC v3 unofficial documentation

Commands

> CAP REQ :twitch.tv/commands
< :tmi.twitch.tv CAP * ACK :twitch.tv/commands

Enables USERSTATE, HOSTTARGET and CLEARCHAT raw commands.

Keybase proof

I hereby claim:

  • I am 3ventic on github.
  • I am 3v (https://keybase.io/3v) on keybase.
  • I have a public key whose fingerprint is 3469 2371 BE5D 3965 E2F3 43D0 CEAB CAD3 C33D BE64

To claim this, I am signing this object:

#!/bin/bash
# Revokes any Twitch OAuth2 token.
# Usage: ./revoke-twitch-token.sh
# The script will prompt for the token to avoid leaking a valid token
# to history or environment in case an error occurs while attempting to revoke.
command -v jq >/dev/null 2>&1 || { echo >&2 "Please install 'jq'."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "Please install 'curl'."; exit 1; }
@3ventic
3ventic / IrcCommand.cs
Created November 4, 2019 19:49
Standalone C# message parser class for Twitch Messaging Interface (TMI)
using System.Collections.Generic;
using System.Text;
/*****************************************************************************
MIT License
Copyright (c) 2019 Werner Vänttinen
Permission is hereby granted, free of charge, to any person obtaining a copy
@3ventic
3ventic / discord-timestamps.html
Created October 22, 2021 23:44
rich Discord timestamp generator
<!DOCTYPE html>
<title>3v.fi - Discord Timestamp Generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html,body{margin:0;padding:0;background:#161620;color:#eee;font-family:sans-serif;}
.container{display:grid;grid-template-columns:1fr max-content;width:50rem;margin:0 auto;border-right:1px solid #666;border-left:1px solid #666;padding:1rem;}
.container>*{margin:0.2rem;}
#current{grid-column:span 2;}
input,select,button{background:#383842;color:#fff;border:1px solid #666;}
#code{font-family:monospace}