Skip to content

Instantly share code, notes, and snippets.

@so0k
so0k / gist:7446931
Last active March 16, 2023 09:42
srcds boost
#!/bin/sh
### srcds_boost.sh, r3 - http://forums.srcds.com/viewtopic/17440
# add isolcpus to grub & disable irqbalance service
# ref: https://access.redhat.com/site/solutions/15482
### ensure sda IO scheduler is CFQ if available
### don't set ionice if not, test with (assuming srcds is on sda)
# grep cfq /sys/block/sda/queue/scheduler
### expected output:
@so0k
so0k / gist:7493968
Created November 16, 2013 00:07
brush.sp
/* B-Rush
*
* DESCRIPTION
* A great plugin where there are 5 Terrorists vs 3 CTs. The Ts must only plant at the "B" bomb site.
* Server admins can configure if players are allowed to buy/use FlashBangs, Smoke Grenades, HE Grenades,
* or AWPS. The number of AWPS allowed is configurable as well.
*
* If the CTs kill all of the Ts, the game continues to the next round, no modifications.
*
* If the Ts kill all of the CTs (or they somehow successfully bomb the B site), then the CTs become Ts
@so0k
so0k / gist:7493985
Created November 16, 2013 00:09
brush.phrases.txt
"Phrases"
{
"Menu1"
{
"en" "Select A Teammate"
}
"Menu2"
{
"en" "Select Another Teammate!!"
}
@so0k
so0k / gist:7505931
Created November 16, 2013 22:02
BotProfile.db
//----------------------------------------------------------------------------
// BotProfile.db
// Author: Michael S. Booth, Turtle Rock Studios (www.turtlerockstudios.com)
// Elite bot edits by WaLLy3K 9/09/13 - additional customization by iGame.vn
//
// This database defines bot "personalities".
// Feel free to edit it and define your own bots.
//
@so0k
so0k / gist:8191031
Created December 31, 2013 01:34
brush.sp (CSGO only - temporary)
/* B-Rush
*
* DESCRIPTION
* A great plugin where there are 5 Terrorists vs 3 CTs. The Ts must only plant at the "B" bomb site.
* Server admins can configure if players are allowed to buy/use FlashBangs, Smoke Grenades, HE Grenades,
* or AWPS. The number of AWPS allowed is configurable as well.
*
* If the CTs kill all of the Ts, the game continues to the next round, no modifications.
*
* If the Ts kill all of the CTs (or they somehow successfully bomb the B site), then the CTs become Ts
@so0k
so0k / gist:8201314
Last active May 31, 2016 15:43
brush with queue
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>
#include <adminmenu>
#define _DEBUG 0 // Set to 1 for debug spew
@so0k
so0k / boot2docker-setup.sh
Last active October 8, 2015 04:39
shell script to setup a shared folder with host system & pull some useful tools
#create data directory to contain any data we want persisted
sudo mkdir /var/lib/boot2docker/data && sudo chown docker:staff /var/lib/boot2docker/data
#pull busybox and set it up as a data volume container
docker run -v /var/lib/boot2docker/data:/data --name data-share busybox true
#pull svendowideit/samba and run it with the data-share container
#docker run --rm -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba data-share
#make sure the samba share runs next time boot2docker starts
@so0k
so0k / mountG.bat
Last active August 29, 2015 14:05
mount g drive - depends Set-localdocker.bat
@ECHO OFF
Set-localdocker.bat
IF EXIST G: (
ECHO Removing existing G: mapping...
net use G: /d
)
ECHO Mapping G: to "\\localdocker\data" ...
NET USE G: \\localdocker\data
Param(
[Parameter(Mandatory=$true)]
[string]$hostName,
[Parameter(Mandatory=$true)]
[string]$hostIp
)
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
Param(
[Parameter(Mandatory=$true)]
[string]$hostName,
[Parameter(Mandatory=$true)]
[string]$hostIp
)
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()