Skip to content

Instantly share code, notes, and snippets.

View Au1st3in's full-sized avatar
💭
I may be slow to respond.

Austin Rocha Au1st3in

💭
I may be slow to respond.
View GitHub Profile
@Au1st3in
Au1st3in / gmod_cleanup.bat
Last active June 16, 2016 04:04
Cleanup Infected LUA from Garry's Mod Client or Server
@echo off
cls
color 0f
title Garry's Mod LUA Infection Cleanup
if not exist garrysmod (
echo --------------------------------------------------
echo Wrong directory has been dectected
echo Move this .bat file to your Garry's Mod directory
@Au1st3in
Au1st3in / DayZ.bat
Last active August 29, 2015 14:00
Switch Between DayZ Experimental and Stable Builds
::User Set Variables
::Steam Install Directory (Steam.exe)
@set SteamDIR=C:\Program Files (x86)\Steam
::Steam Library Directory (~\common\DayZ) [Drive must have NTFS format]
@set SteamLIB=C:\Program Files (x86)\Steam
::DayZ Stable Folder Name in ~\SteamApps\common\
@set Stable=DayZ_stable
::DayZ Experimental Folder Name in ~\SteamApps\common\
@set Experimental=DayZ_experimental
@Au1st3in
Au1st3in / DayZMod.bat
Last active August 29, 2015 14:00
Arma 2: DayZ Mod Launcher
::User Set Variables
::Arma 2 OA Directory Name
@set ARMA2OA=Arma 2 Operation Arrowhead
::Arma 2 Directory Name
@set ARMA2=Arma 2
::Steam Overlay (True/False)
@set Steam=True
::Arma 2 OA Launch Parameters
@set launchOptions=-high -skipIntro -nosplash
@Au1st3in
Au1st3in / ARMA3.bat
Last active August 29, 2015 14:00
Arma 3 Launcher
::User Set Variables
::Arma 3 Directory Name
@set ARMA3=Arma 3
::Arma 3 Launch Parameters
@set launchOptions=-high -noPause -noSplash
::Arma 3 Mods (@EXAMPLE1;@EXAMPLE2)
@set mods=
@Au1st3in
Au1st3in / autoexec.cfg
Created February 27, 2016 20:33
CSGO Auto Execute Config
// Cross-hair
cl_crosshair_drawoutline "0"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "2"
cl_crosshairalpha "200"
cl_crosshaircolor "5"
cl_crosshaircolor_r "255"
@Au1st3in
Au1st3in / dayz_autorun.ahk
Last active September 1, 2023 17:03
DayZ AutoRun AutoHotKey Script with NumLock Toggle
#NoEnv
SendMode Input
#IfWinActive, DayZ
SetNumlockState, off
~NumLock::
if (GetKeyState("NumLock", "T")) {
Send, {lshift Down}
Send, {w Down}
@Au1st3in
Au1st3in / dayz_autorun.py
Last active June 9, 2017 00:06
DayZ AutoRun Python Script with NumLock Toggle
import ctypes, time, win32api, win32gui
user32, SendInput = ctypes.WinDLL('user32', use_last_error=True), ctypes.windll.user32.SendInput
# community.bistudio.com/wiki/DIK_KeyCodes
DIK_W = 0x11
DIK_LSHIFT = 0x2A
# msdn.microsoft.com/en-us/library/dd375731
VK_NUMLOCK = 0x90
@Au1st3in
Au1st3in / air-for-steam.py
Last active August 4, 2017 06:54
Air for Steam Skin Updater
import io, os, re, requests, shutil, sys, wget, zipfile
def copydir(source, dest, indent=0):
for root, dirs, files in os.walk(source):
if not os.path.isdir(root):
os.makedirs(root)
for each_file in files:
rel_path = root.replace(source, '').lstrip(os.sep)
dest_path = os.path.join(dest, rel_path, each_file)
shutil.copyfile(os.path.join(root, each_file), dest_path)