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 / autoexec.cfg
Last active March 23, 2023 01:33
Kus CS:GO Config
// Place in C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg
// To get your existing binds find your config at C:\Program Files (x86)\Steam\userdata\<steamID3>\730\local\cfg\config.cfg
// Launch options
// https://steamcommunity.com/sharedfiles/filedetails/?id=379782151
// -noforcemaccel -noforcemparms -noforcemspd -novid -tickrate 128 -high -nojoy +exec autoexec
// Windows sensitivity: 6/11, enhance pointer precision: off
con_enable "1" // Enable console
@kus
kus / convert-video.sh
Last active March 16, 2022 20:50
Convert any video (i.e.: AVI, MOV, MP4) to MP4 or WEBM with FFmpeg. Has option to export MP4 with YUV planar color space so it works with QuickTime and Safari.
#!/bin/bash
# Version 1.0 2016-06-03 https://gist.github.com/kus/318f21b840df0b7a6377563ce717c184
# MIT license
# Prerequisites:
# Homebrew: http://brew.sh/
# Install FFmpeg via Homebrew: brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvpx --with-theora --with-libogg --with-libvorbis --with-opus --with-x265
# Make the script executable: sudo chmod u+x convert-video.sh
# Run: ./convert-video.sh
@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"
@kus
kus / fixIOSAudioContext.js
Last active March 27, 2024 11:21
Fix iOS AudioContext on Safari not playing any audio. It needs to be "warmed up" from a user interaction, then you can play audio with it as normal throughout the rest of the life cycle of the page.
// Fix iOS Audio Context by Blake Kus https://gist.github.com/kus/3f01d60569eeadefe3a1
// MIT license
(function() {
window.AudioContext = window.AudioContext || window.webkitAudioContext;
if (window.AudioContext) {
window.audioContext = new window.AudioContext();
}
var fixAudioContext = function (e) {
if (window.audioContext) {
// Create empty buffer