Skip to content

Instantly share code, notes, and snippets.

View alexanderfloh's full-sized avatar

Alexander Floh alexanderfloh

View GitHub Profile
@alexanderfloh
alexanderfloh / walk stack and down-cast objects
Created September 10, 2013 04:52
walk stack and down-cast objects
.for (r $t0=28;@$t0<FF;r $t0=@$t0+1) { .frame @$t0; .catch { as /x messageArg @@c++(parent.px->mLinkedSpyObjectDef.px->mAttributes._Myhead->_Parent->_Myval.second.px); .block{ dt -n winFormsHookDll_4_x86!Communicator::CMessageArgumentImpl<long,Communicator::detail::CMessageArgumentImplBase<long> > messageArg }; ad messageArg; } }
@alexanderfloh
alexanderfloh / dotnetautoload
Created September 10, 2013 04:53
.NET autoloading based on modules in the process
!for_each_module .if(($sicmp( "@#ModuleName" , "mscorwks") = 0) ) {.loadby sos mscorwks} .elsif ($sicmp( "@#ModuleName" , "clr") = 0) {.loadby sos clr}
@alexanderfloh
alexanderfloh / symbol path
Created September 10, 2013 08:02
symbol path for windbg
cache*s:\temp\symbolcache;srv*http://lnz-jenny/symbolstore;srv*http://lnz-jenny/symbolstore-release;srv*http://msdl.microsoft.com/download/symbols;srv*http://chromium-browser-symsrv.commondatastorage.googleapis.com;srv*http://symbols.mozilla.org/firefox;srv*http://symbols.mozilla.org/xulrunner
Logging started at Tue Sep 10 10:27:55 2013
STWDIAGSRV:Process Attach c:\Program Files\Silk\SilkTest\ng\gui\stw.exe PID=d60 TID=37c
TPUtils:104031:TPMiniDumper Mode=[0]
STWDIAGSRV:Process Attach c:\Program Files\Silk\SilkTest\ng\gui\stw.exe PID=c64 TID=f94
TPUtils:104031:TPMiniDumper Mode=[0]
STWDIAGSRV:Process Attach C:\Program Files\Silk\SilkTest\ng\gui\SilkTest.exe PID=da0 TID=eb4
TPUtils:104031:TPMiniDumper Mode=[0]
TPUtils:104031:[PropertiesFileParser::ParseFile] Attempting to parse file %OPEN_AGENT_HOME%\versioninfo.properties
Silk Test Workbench:104031:Version: 15.0.0.6681
@alexanderfloh
alexanderfloh / ide-svn-commands
Last active August 29, 2015 13:56
SVN Log command line for Visual Studio and Eclipse external tools
Location:
C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe
Arguments (Eclipse):
/command:log /path:"${selected_resource_loc}"
/command:blame /path:"${selected_resource_loc}"
/command:diff /path:"${selected_resource_loc}"
package agentlaunching;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.borland.silktest.jtf.Desktop;
public class PowerLauncher {
@alexanderfloh
alexanderfloh / multi-proc-dmp
Created April 8, 2014 06:57
dump multiple processes
BaseState ba = new BaseState("C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", "-NoExit -Command cd c:\\temp;Get-Process iexplore | Select-Object Id | ForEach-Object { .\\procdump.exe -ma $_.Id }", "//Window");
d.executeBaseState(ba);
@alexanderfloh
alexanderfloh / styles.less
Created April 29, 2014 14:24
changed less for green bar
article {
padding-left: 10px;
margin: 75px 0 75px 5%;
border-left: 5px solid @tag-archive;
# Uses http://www.ltr-data.se/opencode.html/#ImDisk virtual disk driver for windows 7 or less
# Tries to use chocolatey to install imdisk
# Sample use case:
# Import-Module ".\mount.iso.psm1"
# Invoke-IsoExe "C:\test.iso" "setup.exe" "/passive"
function Mount-Iso([string] $isoPath)
{
if ( -not (Test-Path $isoPath)) { throw "$isoPath does not exist" }
@alexanderfloh
alexanderfloh / boxstarter
Last active September 2, 2015 15:32
boxstarter
# todos:
# add working eclipse
# vs2010 sp1 may not work
# actipro-syntax-editor - headless install doesnt work (license stuff)
if ((gwmi win32_computersystem).partofdomain -eq $true) {
write-host -fore green "I am domain joined!"
} else {
Write-ChocolateyFailure "machine needs to be domain joined."
throw "machine needs to be domain joined."