Skip to content

Instantly share code, notes, and snippets.

🏠

Alex Thomassen Decicus

🏠
Block or report user

Report or block Decicus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Decicus
Decicus / Subpoints_ProgressBar.html
Last active Dec 9, 2019
Very basic progress bar / goal example with Twitch subpoints - Licensed under MIT License
View Subpoints_ProgressBar.html
<!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 Dec 4, 2019
Plays.tv - Download JSON data & cURL Script for Uploads
View HowToIsh.md

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 Oct 5, 2019
Grand Theft Auto: San Andreas - skip that saves OVER 3 HOURS in Any%
@Decicus
Decicus / Install.md
Last active Jul 1, 2019
Hides the "Subscribe to our newsletter" div that makes the "My drafts" page look wonky on LET.
View Install.md

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.
@Decicus
Decicus / README.md
Last active Mar 3, 2020
A userscript for displaying the actual date & time (relative to local time) of when a Twitch clip was created.
View README.md

Twitch clip datetime userscript

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

Requirements:

  • Something like the Tampermonkey extension installed for your browser.

Installation:

  1. Install a userscript extension (such as Tampermonkey).
  2. Click on this link when Tampermonkey is installed, and it will prompt you to install the userscript.
@Decicus
Decicus / convars.json
Last active Jan 4, 2019
TTT Server Convars (ttt.badking.net)
View convars.json
{
"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": {
View GMod_MountingINFRA.md

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 / font_awesome.rb
Last active Mar 9, 2018 — forked from 23maverick23/font_awesome.rb
Jekyll: Font Awesome icons Liquid tag
View font_awesome.rb
##
# 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
@Decicus
Decicus / PHPTimezones.txt
Created Sep 19, 2017
List as specified by DateTimeZone::listIdentifiers().
View PHPTimezones.txt
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
Africa/Blantyre
@Decicus
Decicus / Roll.md
Last active Oct 9, 2018
Nightbot evals and stuff
View Roll.md

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} 🎲`)

You can’t perform that action at this time.