Skip to content

Instantly share code, notes, and snippets.

View kus's full-sized avatar

Blake Kus kus

  • Google
  • Sydney, Australia
View GitHub Profile
@kus
kus / comp.cfg
Last active October 15, 2020 06:11
CS:GO Private Competitive Game with death cam and GOTV demo
// Kus' CS:GO Private Competitive Game with death cam and GOTV demo config
// Source: https://gist.github.com/kus/d4bf1d28dc832d6fb98a047aedb9fb4c
// Copy to C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg
// To record GOTV demo 'tv_record name' and it will be saved to C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\name.dem
// Which you can watch by opening console anywhere in CS:GO and type 'playdemo name' and hit enter
echo "How to host a CS:GO Private Competitive Game:"
echo " - Make a private casual lobby and invite everyone
echo " - BEFORE you start the game open console and run 'exec comp' to enable GOTV for death cam and recording the game"
@kus
kus / steam-games-hours-played.js
Last active November 1, 2019 02:07
Find out Steam games hour played grouped
// Open https://steamcommunity.com/my/games/?tab=all and make sure you are logged in to Steam.
// Open your browsers console (Ctrl + Shift + J on Chrome or Ctrl + Shift + K on Firefox)
// and paste all of this code (select all) in the text box (bottom) and hit enter
// If you get an error from the script you likely aren't running a modern browser
// you can paste the code here https://babeljs.io/repl and copy the output and run that.
(() => {
const SHOW_TOP_GAMES = 5;
const RE_HOURS = /^[0-9.,]+/;
const RE_CLEAN_HOURS = /[^0-9.]+/g;
let totalHours = 0;
@kus
kus / practice.cfg
Last active January 15, 2019 00:40
CS:GO grenade/recoil practice on a remote server with rcon
// Setup server
rcon sv_cheats 1 // Enable cheats
rcon mp_limitteams 0 // Allow team stacking
rcon mp_autoteambalance 0 // Disable auto team balance
rcon mp_roundtime 60 // Set round time to 60 minutes
rcon mp_roundtime_defuse 60 // Set defuse time to 60 minutes
rcon mp_maxmoney 60000 // Set maximum money to be $60,000
rcon mp_startmoney 60000 // Start with $60,000 money
rcon mp_freezetime 0 // No freezetime
rcon mp_buytime 9999 // Unlimited buytime
@kus
kus / CS:GO Crosshair
Created December 6, 2015 10:29
CS:GO Crosshair
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 "1"
cl_crosshairalpha "200"
cl_crosshaircolor "1"
cl_crosshaircolor_b "50"
cl_crosshaircolor_g "250"