Skip to content

Instantly share code, notes, and snippets.

View Decicus's full-sized avatar
💻

Alex Thomassen Decicus

💻
View GitHub Profile
@Decicus
Decicus / README.md
Last active March 25, 2024 03:18
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.

{
"actions": [{
"prefix": "Cheer",
"scales": ["1", "1.5", "2", "3", "4"],
"tiers": [{
"min_bits": 1,
"id": "1",
"color": "#979797",
"images": {
"dark": {
@Decicus
Decicus / GetServerList.md
Last active November 26, 2023 00:05
Steam - GetServerList (DayZ)

GetServerList

  • API endpoint: https://api.steampowered.com/IGameServersService/GetServerList/v1/?filter=\gamedir\dayz\name_match\*Experimental*&limit=5000&key=
  • The filter parameter can be any of these: https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol#Filter
  • The limit parameter is maximum amount of servers to return. I haven't tested anything higher than 10000 (ten thousand).
    • It seems this accepts pretty much any number, but the highest amount of servers I've gotten listed is 20,000 (twenty thousand).
  • The key parameter is your Steam API key, which I'm sure you already have, but if not: https://steamcommunity.com/dev
@Decicus
Decicus / PostenSporing.user.js
Last active October 27, 2023 23:05
A script for inserting a not-so-pretty QR code into Posten tracking page
// ==UserScript==
// @name Posten/Bring Sporing - QR Kode
// @namespace github.com/Decicus
// @version 1.5.2
// @match https://sporing.posten.no/sporing/*
// @match https://sporing.bring.no/sporing/*
// @match https://beta.sporing.posten.no/sporing/*
// @match https://beta.sporing.bring.no/sporing/*
// @grant none
// @downloadURL https://gist.githubusercontent.com/Decicus/0bfe36921a5dd92e679c4eb8ba67264d/raw/PostenSporing.user.js
version: '3'
services:
vpn:
container_name: wireguard
image: jordanpotter/wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
// ==UserScript==
// @name LowEndSpirit.com - "Mark All Viewed" Confirmation
// @namespace github.com/Decicus
// @match https://lowendspirit.com/*
// @grant none
// @version 1.0.1
// @author Decicus
// @description Confirm whether you wanna mark all LES discussions as viewed.
// ==/UserScript==
@Decicus
Decicus / NightbotSubscriptions.md
Last active June 8, 2022 22:59
Nightbot subscriptions - List of known channels that Nightbot has a subscription to on Twitch

Nightbot subscriptions (Twitch)

This is a list of users Nightbot should be subscribed to on Twitch. Keep in mind this list is (probably) incomplete, but can also become invalid at any time.

Adding a new channel subscription:

Keep in mind if you wish to have a specific channel subscribed to Nightbot, the channel owner has to email Twitch support to request this. This is currently only possible for Twitch partners and not affiliates.

  • For Twitch partners - Read this article for more information.

Suggestions

@Decicus
Decicus / software.md
Last active April 14, 2022 13:27
List of software I often install on new setups

List of software

This is a list of "usually installed" software that I always (or almost always) have installed on any personal computer I use.

It's generally meant to be an overview for myself, but maybe someone else will find some use for this. Please do not take this as a "must-have" list. I just like to have some place to keep track of this.

This is primarily a Windows-only list. While the majority of these programs have a Linux version, it's intended for Windows installations.

Icons

Some software have been 'marked' with an emoji to signify something.

@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