Skip to content

Instantly share code, notes, and snippets.

so0k so0k

Block or report user

Report or block so0k

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@so0k
so0k / gist:7446931
Last active Feb 7, 2019
srcds boost
View gist:7446931
#!/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:
View gist:7493968
/* 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 Nov 16, 2013
brush.phrases.txt
View gist:7493985
"Phrases"
{
"Menu1"
{
"en" "Select A Teammate"
}
"Menu2"
{
"en" "Select Another Teammate!!"
}
@so0k
so0k / gist:7505931
Created Nov 16, 2013
BotProfile.db
View gist:7505931
//----------------------------------------------------------------------------
// 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 Dec 31, 2013
brush.sp (CSGO only - temporary)
View gist:8191031
/* 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
brush with queue
View gist:8201314
#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 Oct 8, 2015
shell script to setup a shared folder with host system & pull some useful tools
View boot2docker-setup.sh
#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 Aug 29, 2015
mount g drive - depends Set-localdocker.bat
View mountG.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
View Add-Hosts.ps1
Param(
[Parameter(Mandatory=$true)]
[string]$hostName,
[Parameter(Mandatory=$true)]
[string]$hostIp
)
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
View Update-Hosts.ps1
Param(
[Parameter(Mandatory=$true)]
[string]$hostName,
[Parameter(Mandatory=$true)]
[string]$hostIp
)
function IsAdministrator
{
$Identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
You can’t perform that action at this time.