Skip to content

Instantly share code, notes, and snippets.

View kus's full-sized avatar

Kus kus

  • Google
  • Sydney, Australia
View GitHub Profile
@kus
kus / steam-cs-key-history.js
Last active April 10, 2024 17:29
Find out how much you have spent on Counter-Strike keys
// Open https://store.steampowered.com/account/history and make sure you are logged in to Steam.
// Scroll to the bottom and load all history.
// 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 HISTORY_URL = 'https://store.steampowered.com/account/history';
// English and Cyrillic alphabet
const CURRENCY_REGEXP = /([A-Za-z\u0400-\u04FF]+)?([^0-9]{1})?([0-9.]+)([A-Za-z€¥\$£\u0400-\u04FF\.]+)?/;
@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 / autoexec.cfg
Last active August 1, 2025 05:31
Kus' CS2 autoexec.cfg with buy script, launch options, rates, grenade crosshair switcher etc
// Place in C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\autoexec.cfg
// To get your existing binds type "host_writeconfig" in console and find your config at C:\Program Files (x86)\Steam\userdata\<steamID3>\730\remote\cs2_user_keys.vcfg and cs2_user_convars.vcfg
// Launch options
// -noforcemaccel -noforcemparms -noforcemspd -novid -tickrate 128 -high -nojoy +exec autoexec
// Loadout
// CT
// Pistol: USP-S, CZ75, Five-Seven, Deagle, R8
// Mid-tier: MP9, XM, P90, Mag-7, Negev
@kus
kus / Aggregate-GPU-stats-on-Steam-Hardware-Survey.md
Last active January 9, 2024 01:22
Aggregate GPU stats on Steam Hardware Survey that meet minimum performance

Aggregate GPU stats on Steam Hardware Survey that meet a certain performance metric

There are two scripts, gpu-benchmark.js and steam.js both are written as self-invoking functions so you simply copy it from here and paste it in the console of the website and hit enter.

You only need to run gpu-benchmark.js if you want to get a fresh list of GPU's. The script has the NVIDIA 40 seriesm in it.

If you want to update the GPU's:

@kus
kus / rainbow.cfg
Created July 24, 2024 14:33
CS2 Rainbow HUD + Crosshair config
// Place in C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg\autoexec.cfg
// To get your existing binds type "host_writeconfig" in console and find your config at C:\Program Files (x86)\Steam\userdata\<steamID3>\730\remote\cs2_user_keys.vcfg
// Rainbow HUD and Crosshair
// by Kus https://steamcommunity.com/id/kus/
// Type "rainbow" in console for help
// For the keys you want to make the rainbow cycle, add "; rainbow_cycle" to the end of the binds
// i.e. for the W key: bind "w" "+forward; rainbow_cycle"