Skip to content

Instantly share code, notes, and snippets.

View Decicus's full-sized avatar
💻

Alex Thomassen Decicus

💻
View GitHub Profile
{
"actions": [{
"prefix": "Cheer",
"scales": ["1", "1.5", "2", "3", "4"],
"tiers": [{
"min_bits": 1,
"id": "1",
"color": "#979797",
"images": {
"dark": {
@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("/");)

[
{
"keys": ["ctrl+q"],
"command": "toggle_comment",
"args": {
"block": "false"
}
},
{
"keys": ["alt+1"],
@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 / PHPTimezones.txt
Created September 19, 2017 05:47
List as specified by DateTimeZone::listIdentifiers().
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre
@Decicus
Decicus / font_awesome.rb
Last active March 9, 2018 15:19 — forked from 23maverick23/font_awesome.rb
Jekyll: Font Awesome icons Liquid tag
##
# The MIT License (MIT)
#
# Copyright (c) 2014 Ryan Morrissey
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is

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 / README.md
Last active April 26, 2024 10:26
A userscript for displaying the actual date & time (relative to local time) of when a Twitch clip was created.

Twitch clip datetime userscript

A userscript for displaying the actual date & time (relative to local time) of when a Twitch clip (and video) was created.

FYI: It only works on URLs that start with https://clips.twitch.tv/.
This script does not work with URLs that are on the Twitch "channel pages" (https://www.twitch.tv/CHANNEL_NAME_HERE/clip/...).
This has been added as of v0.5.0.

"Under the hood" the script uses Date.toLocaleString() to format the date. The format of the date & time may differ from the screenshots below.

@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.