Skip to content

Instantly share code, notes, and snippets.

@sryze
sryze / VisualStudio2008.vssettings
Created January 15, 2014 06:15
Visual Studio 2008 settings
<UserSettings>
<ApplicationIdentity version="9.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>
@sryze
sryze / project.csproj.user
Created March 7, 2014 13:30
Set an external program for a Class Library project in Visual Studio Express (copy this to project.csproj.user)
<PropertyGroup>
<StartAction>Program</StartAction>
<StartArguments></StartArguments>
<StartPage>
</StartPage>
<StartProgram>path\to\program.exe</StartProgram>
<StartURL>
</StartURL>
<StartWorkingDirectory>
</StartWorkingDirectory>
@sryze
sryze / visual_studio_dark_scheme_xe4.reg
Last active August 29, 2015 13:57
Visual Studio 2013 dark color scheme for C++ Builder XE4
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Embarcadero\BDS\11.0\Editor\Highlight]
[HKEY_CURRENT_USER\Software\Embarcadero\BDS\11.0\Editor\Highlight\Assembler]
"Bold"="False"
"Italic"="False"
"Underline"="False"
"Default Foreground"="False"
"Default Background"="False"
@sryze
sryze / explorer-open-cmd.reg
Last active August 29, 2015 13:57
Open Command Prompt via context menu in Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmd_shell]
@="Open command prompt here"
"Icon"=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\cmd_shell\command]
@="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_shell]
@sryze
sryze / explorer-open-cygwin.reg
Last active August 29, 2015 13:57
Open Cygwin shell via context menu in Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_shell]
"Icon"=hex(2):43,00,3a,00,5c,00,63,00,79,00,67,00,77,00,69,00,6e,00,5c,00,43,\
00,79,00,67,00,77,00,69,00,6e,00,2e,00,69,00,63,00,6f,00,00,00
@="Open &Cygwin terminal here"
[HKEY_CLASSES_ROOT\Directory\shell\cygwin_shell\command]
@="C:\\cygwin\\bin\\mintty.exe -i /Cygwin-Terminal.ico C:\\cygwin\\bin\\bash.exe -l -c \"cd \\\"$0\\\" ; exec bash\" %V"
@sryze
sryze / explorer-open-gitshell.reg
Last active August 29, 2015 13:57
Open Git shell via context menu in Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
@="Open &Git shell here"
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
00,46,00,69,00,6c,00,65,00,73,00,5c,00,47,00,69,00,74,00,5c,00,65,00,74,00,\
63,00,5c,00,67,00,69,00,74,00,2e,00,69,00,63,00,6f,00,00,00
[HKEY_CLASSES_ROOT\Directory\shell\git_shell\command]
@="wscript \"C:\\Program Files\\Git\\Git Bash.vbs\" \"%V\""
@sryze
sryze / explorer-open-powershell.reg
Last active August 29, 2015 13:57
Open PowerShell via context menu in Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\powershell]
@="Open PowerShell here"
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
[HKEY_CLASSES_ROOT\Directory\shell\powershell\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
[HKEY_CLASSES_ROOT\Directory\background\shell\powershell]
@sryze
sryze / visual-studio-find-results-fix.reg
Created March 29, 2014 11:23
Fix Find Results not showing results in Visual Studio 2012/2013
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{73B7DC00-F498-4ABD-AB79-D07AFD52F395}]
@="PSFactoryBuffer"
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
@="C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\TextMgrP.dll"
"ThreadingModel"="Both"
@sryze
sryze / rt3562sta-linux-3.x.patch
Created May 4, 2014 02:44
Ralink RT3060 driver patch for Linux 3.x
diff -ru --exclude '*.o' --exclude '*.cmd' --exclude '*.ko' a/include/os/rt_linux.h b/include/os/rt_linux.h
--- a/include/os/rt_linux.h 2010-07-09 16:30:08.000000000 +0700
+++ b/include/os/rt_linux.h 2014-05-03 22:39:59.846805867 +0700
@@ -271,8 +271,8 @@
typedef struct _RTMP_OS_FS_INFO_
{
- int fsuid;
- int fsgid;
+ kuid_t fsuid;
@sryze
sryze / .bashrc
Last active August 29, 2015 14:05
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace