Skip to content

Instantly share code, notes, and snippets.

@viroos
viroos / ios_tamplate
Created Mar 10, 2013
polidea project template
View ios_tamplate
<?xml version="1.0" encoding="UTF-8"?>
<project>
<actions/>
<description/>
<logRotator>
<daysToKeep>90</daysToKeep>
<numToKeep>30</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>-1</artifactNumToKeep>
</logRotator>
@viroos
viroos / ios_tamplate
Created Mar 10, 2013
Polidea ios project template
@viroos
viroos / gist:1242279
Created Sep 26, 2011
This D-trace script lists all run programs with their arguments - works with OSX
View gist:1242279
#!/usr/sbin/dtrace -C -s
#pragma D option quiet
proc::posix_spawn:exec-success,proc::__mac_execve:exec-success
{
this->isx64=(curproc->p_flag & P_LP64)!=0;
#define SELECT_64_86(x64, x86) (this->isx64 ? (x64) : (x86))
#define GET_POINTER(base, offset) (user_addr_t)SELECT_64_86(*(uint64_t*)((base)+sizeof(uint64_t)*(offset)), *(uint32_t*)((base)+sizeof(uint32_t)*(offset)))