Skip to content

Instantly share code, notes, and snippets.

View AdamG100's full-sized avatar
🎯
Focusing

Adam Gliori AdamG100

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Written by: cPFence Team / https://cpfence.app/
#
# Description:
# This script automates OpenLiteSpeed configuration optimization.
# It updates server settings, tuning, errorlog configurations, and ensures no duplicate sections.
# Use with caution and test in a non-production environment first.
#
# License: Copyright (C) 2023 - 2024 Linkers Gate LLC.
@AdamG100
AdamG100 / bedrock.py
Last active September 17, 2025 13:23
This script is used in TCAdmin it is designed to fetch all bedrock stable and preview builds from the mcjarfiles API
import re
import json
import gzip
import clr
clr.AddReference('TCAdmin.GameHosting.SDK')
from TCAdmin.GameHosting.SDK.Objects import GameUpdate, GameScript, ServiceEvent
try:
# Python 3 style imports
[ValheimPlus]
; Change false to true to enable this section. https://valheim.plus/documentation/list#ValheimPlus
enabled = true
; Display the Valheim Plus logo in the main menu
mainMenuLogo = true
; Display the advertisement of our server hosting partner on the server browser menu
serverBrowserAdvertisement = false
@AdamG100
AdamG100 / register-form.tpl
Created November 8, 2022 19:13
TMVAULT REGISTER FORM
{if file_exists("templates/$template/includes/login/overwrites/register-form.tpl")}
{include file="{$template}/includes/login/overwrites/register-form.tpl"}
{else}
{if in_array('state', $optionalFields)}
<script>
var statesTab = 10;
var stateNotRequired = true;
</script>
{/if}
<script type="text/javascript" src="{$BASE_PATH_JS}/StatesDropdown.js"></script>
@AdamG100
AdamG100 / DNS Prefetch domains
Created July 21, 2020 10:15 — forked from lukecav/DNS Prefetch domains
WP Rocket - Advanced Options Prefetch DNS requests
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com