Skip to content

Instantly share code, notes, and snippets.

View dgibbs64's full-sized avatar

Daniel Gibbs dgibbs64

View GitHub Profile
@dgibbs64
dgibbs64 / ssh-auto-login
Last active June 4, 2024 11:47
SSH Login Without Password Setup Script
#!/bin/bash
# SSH Remote Host Auto Login Script
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 100914
clear
echo "================================="
echo "SSH Auto Login"
echo "================================="
echo ""
@dgibbs64
dgibbs64 / crcheck.sh
Created December 10, 2014 11:19
Carriage Return Checker
#!/bin/bash
# Carriage Return Checker
# Author: Daniel Gibbs
# Website: http://danielgibbs.co.uk
# Version: 101214
# Description: Checks if a carriage return is present in a variable
# Place Variable here
var=
echo ""
@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" :
@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 / 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 / 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"
#!/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
#!/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)"
@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:
@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