Skip to content

Instantly share code, notes, and snippets.

View ZacharyTalis's full-sized avatar
☢️

Zachary Talis ZacharyTalis

☢️
View GitHub Profile
@ZacharyTalis
ZacharyTalis / MOVED.md
Last active December 7, 2022 22:10
[MOVED] TF2 VScript Code Snippets for VSCode
@ZacharyTalis
ZacharyTalis / steam-game-updater.py
Created December 6, 2021 15:24
Python/SteamCMD Game Updater
import json
import os
with open("<json path>") as file:
secrets = json.load(file)
appsInstalled = (
os.popen(f"steamcmd +login {secrets['login']['username']} +apps_installed +quit")
.read()
.split("\n")

November 1st, 2020:

Initial networking prototype is functional! Here's a work-in-progress video, with an explanation in the description below.

User coordinates printed to console via first Lua script ➡ VConsole2 runs with logging enabled (HL:A launch option -condebug) ➡ Java program scrapes coords from log, and writes a second Lua script containing these coords ➡ Second Lua script moves the red ball to coords.

The Java program sends those coordinates to itself over a network. This networking setup draws from a configuration file that designates server and client TCP/UDP ports, as well as client IP, client timeout (in ms), and HL:A log path.

@ZacharyTalis
ZacharyTalis / peertube
Last active April 3, 2021 19:10
PeerTube channel redirect - nginx configuration
# /u/User123 -> /video-channels/User123/videos (using 302)
# /user/User123 -> same as above
# supports optional trailing slash
# returns pace rip 404 page if something more than /u/user-name, like /u/user-name/hazardous/text
rewrite ^/(?:u|user)/([^/]+)/?$ /video-channels/$1/videos redirect;