Skip to content

Instantly share code, notes, and snippets.

View mut3's full-sized avatar

Will Barnwell mut3

View GitHub Profile
@mut3
mut3 / valid_json.sh
Created April 2, 2019 17:49
Check *.json for valid json, return failures
#!/bin/bash
for i in *.json; do if ! jq . $i &>/dev/null; then echo "fail: ${i}"; fi; done
@mut3
mut3 / autoexec.cfg
Last active December 11, 2018 08:09
CS:GO config
// launch options should be -novid +mat_queue_mode 2 -high
//bhop mode switcher thing - optional, can remove
bind mouse3 "bhopon" // toggle scroll wheel bhop
alias bhopon "bind MWHEELDOWN +jump;bind MWHEELUP +jump;bind z sm_restart;bind mouse3 bhopoff"
alias bhopoff "bind MWHEELDOWN invnext;bind MWHEELUP invprev;bind z radio1;bind mouse3 bhopon"
//Auto Weapon Switch
cl_autowepswitch "0" // we dont want to pick up & switch to a rifle up if we're in the middle of firing our pistol
//Bobbing and Movement Shifting - remove all the dumb view bob
@mut3
mut3 / Fun with *nix
Last active November 5, 2016 21:42
Infrastructue as code? try folder structure as code! discovered with the help of @WhoBrokeTheBuild
#!/bin/bash
poc_command="echo Hello, World!"
mkdir -p "$poc_command"
cd "$poc_command"
$(basename "$(pwd)")
mkdir /temp
echo "Hello World" > /temp/foo
@mut3
mut3 / docker_health_check function
Last active August 29, 2015 14:27 — forked from ekristen/check_docker_container.sh
Bash Script to Check Status of Docker Containers in array
function status()
{
# FORKED FROM +++++++++++
# https://gist.github.com/ekristen/11254304
# Author: Erik Kristensen
# Email: [email protected]
# License: MIT
# +++++++++++++++++++++++
# Heavily edited by