Skip to content

Instantly share code, notes, and snippets.

@sryze
sryze / config.cfg
Last active March 27, 2024 10:34
Half-Life 2 key bindings
bind "w" "phys_swap"
bind "q" "use weapon_smg1"
bind "a" "use weapon_shotgun"
bind "z" "use weapon_357"
bind "x" "use weapon_crossbow"
bind "c" "use weapon_AR2"
bind "v" "use weapon_frag"
bind "MOUSE4" "weapon_pistol"
bind "MOUSE5" "use weapon_crowbar"
bind "b" "impulse 50"
@sryze
sryze / run_hl2.sh
Created July 11, 2013 12:17
Running Half-Life 2 on Linux (copy to ~/.local/share/Steam/SteamApps/common/Half-Life 2/)
#!/bin/sh
~/.local/share/Steam/ubuntu12_32/steam-runtime/run.sh ./hl2.sh
@sryze
sryze / .vimrc
Last active December 20, 2015 12:39
My Vim settings
syntax on
filetype plugin on
filetype indent on
set nocompatible
set nobackup
set nowrap
set autochdir
set cursorline
set number
#if __cplusplus < 201103L
#error Your C++ compiler sucks!
#endif
int main() {}
@sryze
sryze / visualstudio.xml
Last active December 26, 2015 14:59
Visual Studio style for Qt Creator 2.8
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Visual Studio">
<style name="Text" foreground="#000000" background="#ffffff"/>
<style name="Link" foreground="#0000ff"/>
<style name="Selection" foreground="#ffffff" background="#2b6ac5"/>
<style name="LineNumber" foreground="#2b91af" background="#ffffff"/>
<style name="SearchResult" foreground="#000000" background="#ffef0b"/>
<style name="SearchScope" foreground="#000000" background="#ffe8d5"/>
<style name="Parentheses" foreground="#000000" bold="true"/>
<style name="CurrentLine" foreground="#000000" background="#e3e3e3"/>
{
"rulers": [80, 100, 120],
"auto_match_enabled": false,
"font_face": "Consolas",
"font_size": 12.0,
"line_numbers": true,
"word_wrap": false,
"wrap_width": 0,
"hot_exit": false,
"remember_open_files": false,
@call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
ml64 /Fl hello.asm /link /subsystem:windows /defaultlib:kernel32.lib /defaultlib:user32.lib /entry:Start
@sryze
sryze / VisualStudio2010.vssettings
Created January 15, 2014 06:12
Visual Studio 2010 settings
<UserSettings>
<ApplicationIdentity version="10.0"/>
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment">
<ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package">
<PropertyValue name="ShowMiscFilesProject">false</PropertyValue>
<PropertyValue name="AutoloadExternalChanges">false</PropertyValue>
<PropertyValue name="CheckForConsistentLineEndings">false</PropertyValue>
<PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue>
<PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue>
@sryze
sryze / VisualStudio2013.vssettings
Last active January 3, 2016 07:49
Visual Studio 2013 settings
<UserSettings><ApplicationIdentity version="12.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"><PropertyValue name="ShowMiscFilesProject">false</PropertyValue><PropertyValue name="AutoloadExternalChanges">false</PropertyValue><PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue><PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue><PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue><PropertyValue name="ReuseSavedActiveDocWindow">false</PropertyValue><PropertyValue name="DetectFileChangesOutsideIDE">true</PropertyValue><PropertyValue name="DontShowGlobalUndoChangeLossDialog">true</PropertyValue><PropertyValue name="AllowEditingReadOnlyFiles">true</PropertyValue><PropertyValue name="DocumentDockPreference">1</PropertyValue><PropertyValue name="MiscFilesProjectSavesLastNItems">0</PropertyValue
@sryze
sryze / VisualStudio2012.vssettings
Created January 15, 2014 06:15
Visual Studio 2012 settings
<UserSettings><ApplicationIdentity version="11.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"><PropertyValue name="ShowMiscFilesProject">false</PropertyValue><PropertyValue name="AutoloadExternalChanges">false</PropertyValue><PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue><PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue><PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue><PropertyValue name="ReuseSavedActiveDocWindow">false</PropertyValue><PropertyValue name="DetectFileChangesOutsideIDE">true</PropertyValue><PropertyValue name="DontShowGlobalUndoChangeLossDialog">true</PropertyValue><PropertyValue name="AllowEditingReadOnlyFiles">true</PropertyValue><PropertyValue name="DocumentDockPreference">1</PropertyValue><PropertyValue name="MiscFilesProjectSavesLastNItems">0</PropertyValue