Skip to content

Instantly share code, notes, and snippets.

View Decicus's full-sized avatar
💻

Alex Thomassen Decicus

💻
View GitHub Profile
@Decicus
Decicus / emotes.md
Last active June 7, 2021 12:00
Twitch - How many subscribers required for each amount of emote slots

Subscriber Emoticon Tiers

Custom Subscriber emoticons are part of the Subscription benefits under the Twitch Partnership program. You can find out more about requirements for Twitch Partnership eligibility here. If you are already a Partner, here is a guide on emoticon tiers and the number of Subscriber points required to unlock them:

Emote Slots Subscriber points
1 0
2 0
3 10
4 20
5 35
@Decicus
Decicus / Subpoints_ProgressBar.html
Last active December 9, 2019 11:11
Very basic progress bar / goal example with Twitch subpoints - Licensed under MIT License
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/cosmo/bootstrap.min.css" rel="stylesheet" integrity="sha384-qdQEsAI45WFCO5QwXBelBe1rR9Nwiss4rGEqiszC+9olH1ScrLrMQr1KmDR964uZ" crossorigin="anonymous">
<style type="text/css">
body {
margin-top: 40px;
}
@Decicus
Decicus / HowToIsh.md
Last active December 4, 2019 17:24
Plays.tv - Download JSON data & cURL Script for Uploads

PlaysTV - Export metadata JSON and cURL script

This script (unfortunately) requires you to have cURL installed (somehow) and then also being able to use it via the terminal.

Once you've downloaded the script ("Download cURL Script"), I recommend moving the script into an empty directory as all the files will be downloaded in the same directory (generally speaking)

How to install script

@Decicus
Decicus / _meta.md
Last active October 5, 2019 20:41
Grand Theft Auto: San Andreas - skip that saves OVER 3 HOURS in Any%
@Decicus
Decicus / SteamCurrencyCodes.json
Created June 10, 2016 19:18
List of Steam currency codes with their corresponding names - Parsed from https://steamdb.info/
{
"ae": "UAE Dirham",
"az": "CIS - U.S. Dollar",
"br": "Brazilian Real",
"ca": "Canadian Dollar",
"ch": "Swiss Franc",
"cl": "Chilean Peso",
"cn": "Chinese Yuan",
"co": "Colombian Peso",
"eu": "Euro",
@Decicus
Decicus / Install.md
Last active July 1, 2019 15:24
Hides the "Subscribe to our newsletter" div that makes the "My drafts" page look wonky on LET.

How to install

  1. Install a userstyles extension for your browser, such as Stylus
  2. Click this link (alternatively click the Raw button top-right of the .css file below) and Stylus should prompt you to install the userstyle.

Mounting INFRA content on a Garry's Mod server

  1. Log in using SteamCMD with your credentials (you need to own INFRA on your account)
    • Start steamcmd via command line.
    • Type: login YOUR_USERNAME_HERE
    • Type in password and 2FA code.
  2. Set install directory using force_install_dir
    • Example on Linux: force_install_dir /home/alex/my_gmod_server/infrafiles
    • Example on Windows: force_install_dir C:/my_gmod_server/infrafiles
  3. Make sure to set the correct platform type for SteamCMD: @sSteamCmdForcePlatformType windows
@Decicus
Decicus / convars.json
Last active January 4, 2019 15:44
TTT Server Convars (ttt.badking.net)
{
"ttt_preptime_seconds": {
"default": "30",
"description": "The length of the preparation phase that occurs after players spawn in and\nbefore traitors are selected and a new round begins. Specified in seconds."
},
"ttt_firstpreptime": {
"default": "60",
"description": "The length of the preparation phase for only the first round after a map loads. It is useful to make this higher than ttt_preptime_seconds so that players do not have to sit out a round just because they loaded slightly too slowly."
},
"ttt_posttime_seconds": {
@Decicus
Decicus / Roll.md
Last active October 9, 2018 19:04
Nightbot evals and stuff

Usage

!roll will default to 🎲 USERNAME rolled NUMBER 🎲 where USERNAME will be the username/nickname of the user and NUMBER is a random number between 1-20.

!roll Hello world, this is a test. will turn into 🎲 Hello world, this is a test. rolled NUMBER 🎲. Where NUMBER is a random number between 1-20.

Command

!commands add !roll $(eval const q = decodeURIComponent(`$(querystring)`); let input = q !== '' ? q : `$(user)`;`🎲 ${input} rolled ${Math.floor(Math.random() * (20 - 1 + 1)) + 1} 🎲`)

@Decicus
Decicus / setmulti_with_kadgar.md
Last active July 12, 2018 01:52
Miscellaneous Nightbot commands using variables

Usage

!setmulti <streams> where <streams> is just the channel names for the ones you're streaming with, separated by a space between every channel.

Command

!commands add -a=!commands !setmulti edit !multi http://kadgar.net/live/$(channel)/$(eval const streams = '$(query)'.split(" ");streams.join("/");)