Skip to content

Instantly share code, notes, and snippets.

bool CSteamInterfaces::BindInterfaces(IGameConfig *pGameConfig, char *pszError, size_t nMaxLength)
{
if (m_bLoaded || m_ppSteamClient)
return true;
if (!pGameConfig)
{
if (pszError)
g_pSM->Format(pszError, nMaxLength, "NULL IGameConfig param passed");
return false;
@asherkin
asherkin / respawn-time-fix.games.txt
Created August 13, 2012 16:05
Fix for respawn times going out of whack in TF2 when using bots.
"Games"
{
"tf"
{
"Offsets"
{
"CountActivePlayers"
{
"windows" "207"
"linux" "208"
enum Platform
{
Platform_Invalid,
Platform_Windows,
Platform_Linux,
Platform_Mac
}
Platform:GetPlatform()
{
"Games"
{
"#default"
{
"Offsets"
{
"TeleporterThink"
{
"windows" "155"
"linux" "323"
#include <windows.h>
#include "client/windows/handler/exception_handler.h"
using namespace google_breakpad;
ExceptionHandler *g_pExceptionHandler = NULL;
BOOL APIENTRY DllMain(
HINSTANCE hinstDLL,
#pragma semicolon 1
#include <sourcemod>
enum
{
OpCode_1_JZ = 0x74,
OpCode_1_JMP = 0xEB,
}
new Handle:g_hGameConf = INVALID_HANDLE;
<?php
class SplexSourcePawnEngine extends DivinerEngine {
public function buildFileContentHashes() {
$files = array();
$root = $this->getConfiguration()->getProjectRoot();
$finder = new FileFinder($root);
$finder
[Service]
Type=forking
ExecStart=/var/www/phabricator/phabricator/bin/phd start
ExecStop=/var/www/phabricator/phabricator/bin/phd stop
StandardOutput=syslog
SyslogIdentifier=phabricator
User=apache
Group=apache
[Install]
@asherkin
asherkin / index.html
Created July 24, 2014 20:06
Bootstrap + Fontawsome Skeleton
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
#pragma semicolon 1
// spshell crap
forward void main();
native void print(const char[] string);
native void printnums(...);
void int64tohex(char buffer[20], const int high, const int low)
{
static char table[] = "0123456789abcdef";