Skip to content

Instantly share code, notes, and snippets.

View dgibbs64's full-sized avatar

Daniel Gibbs dgibbs64

View GitHub Profile
@dgibbs64
dgibbs64 / QUAKE4_ULTRA.md
Created November 27, 2023 19:56
Quake 4 PC Ultra Settings Low Texture Fix

Quake 4 PC Ultra Settings Low Texture Fix

When loading Quake 4 in Ultra settings there is a bug where all the textures will be low quality. To fix this issue we need to create a config file to place in the Quake 4 game directory

  1. Browse to QUake 4 game directory Steam > Right-click on Quake 4 > Properties... > Installed Files > Browse...
  2. Go to the q4base directory.
  3. Create a new file called autoexec.cfg
  4. Copy the below config into the file and save.
seta image_downSizeLimit "2048"
@dgibbs64
dgibbs64 / css_cvarslist.txt
Created November 12, 2023 00:59
CSS cvarslist
cvar list
--------------
_resetgamestats : cmd : : Erases current game stats and writes out a blank stats file
_restart : cmd : : Shutdown and restart the engine.
achievement_debug : 0 : , "sv", "cheat", "rep" : Turn on achievement debug msgs.
addip : cmd : : Add an IP address to the ban list.
ai_auto_contact_solver : 1 : , "sv" :
ai_block_damage : 0 : , "sv" :
ai_debug_assault : 0 : , "sv" :
ai_debug_avoidancebounds : 0 : , "sv" :
@dgibbs64
dgibbs64 / cs2_cvarslist.txt
Last active January 29, 2024 01:13
CS2 cvarslist
cvar list
--------------
_record : cmd : norecord, release : Record a demo incrementally.
adsp_debug : 0 : a :
ai_debug_dyninteractions : 0 : sv, cheat : Debug the NPC dynamic interaction system.
ai_debug_los : 0 : sv, cheat : NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.
ai_debug_off_nav : false : sv, cheat :
ai_debug_shoot_positions
@dgibbs64
dgibbs64 / playbook.yaml
Created March 25, 2022 11:37
Ansible Simple Conditional Demo
- name: Conditional test
hosts: localhost
connection: local
gather_facts: no
vars:
variable: true
tasks:
- name: true test
debug:
#!/bin/bash
arch=$(uname -m)
kernel=$(uname -r)
if [ -n "$(command -v lsb_release)" ]; then
distroname=$(lsb_release -s -d)
elif [ -f "/etc/os-release" ]; then
distroname=$(grep PRETTY_NAME /etc/os-release | sed 's/PRETTY_NAME=//g' | tr -d '="')
elif [ -f "/etc/debian_version" ]; then
distroname="Debian $(cat /etc/debian_version)"
#!/bin/bash
# Just Cause 2
# Server Management Script
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
if [ -f ".dev-debug" ]; then
exec 5>dev-debug.log
BASH_XTRACEFD="5"
set -x
fi
@dgibbs64
dgibbs64 / check_glibc_requirements.sh
Created August 9, 2016 20:27
check_glibc_requirement.sh
#!/bin/bash
# check_glibc_requirements.sh function
# Author: Daniel Gibbs
# Website: https://danielgibbs.co.uk
# Description: Automatically detects the version of GLIBC that is required.
# Can check a file or directory recursively
# Usage check_glibc_requirements.sh [dir]
echo "================================="
echo "GLIBC Requirements Checker"
@dgibbs64
dgibbs64 / GmailAutoTrash.gscript
Last active January 28, 2018 06:05
GmailAutoTrash.gscript
// Gmail/Inbox Email Trash Script
// Using Google Script
// Clears out all emails older than X days
// Labels
function multipleLabels() {
var myLabels = {
'"Updates"': "7d",
'"Forums"': "7d",
'"Promotions"': "7d",
@dgibbs64
dgibbs64 / steamcmdhelp
Created May 9, 2015 11:23
SteamCMD Help
./steamcmd.sh +help +help login +help scripts +help commandline +help convars +help app_build +help app_update
Redirecting stderr to '/home/cssserver/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Usage: steamcmd ["+COMMAND [ARG]..."]...
or: steamcmd +runscript SCRIPTFILE
@dgibbs64
dgibbs64 / SteamCMDCommmandsandCionvars
Created May 9, 2015 09:51
SteamCMD Commands and Convars
Convars:
app_info_http_min = "0" :
app_info_http_num_sockets = "8" :
AsyncFileIODisableWrite = "0" :
AsyncFileIOExpectOutstandingIO = "16" :
AsyncFileIOForceGenericIO = "0" :
AsyncFileIOMaxPending = "128" :
AsyncFileIOReadHandleCache = "32" :
AsyncFileIOWriteHandleCache = "128" :
batterypercent = "0" :