Skip to content

Instantly share code, notes, and snippets.

View dgibbs64's full-sized avatar

Daniel Gibbs dgibbs64

View GitHub Profile
#!/bin/bash
# Read the hosts from the file into an array
mapfile -t hosts < hosts.txt
# Loop through each host
for host in "${hosts[@]}"; do
echo -en "Checking DNS for $host... "
if dig +short "$host" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "pass"
#!/bin/bash
# Read the hosts from the file into an array
mapfile -t hosts < hosts.txt
# Loop through each host
for host in "${hosts[@]}"; do
ping -c 1 -w 1 "$host" >/dev/null
if [ $? -eq 0 ]; then
# yaml-language-server: $schema=https://raw.githubusercontent.com/recyclarr/recyclarr/master/schemas/config-schema.json
# A starter config to use with Recyclarr. Most values are set to "reasonable defaults". Update the
# values below as needed for your instance. You will be required to update the API Key and URL for
# each instance you want to use.
#
# Many optional settings have been omitted to keep this template simple. Note that there's no "one
# size fits all" configuration. Please refer to the guide to understand how to build the appropriate
# configuration based on your hardware setup and capabilities.
#
@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 February 14, 2025 05:27
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"