This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c3199506fd03e77b61cd6fdfbd8184e1effb28ba Mon Sep 17 00:00:00 2001 | |
From: Ilya Konstantinov <[email protected]> | |
Date: Sun, 5 Apr 2015 05:39:14 +0300 | |
Subject: [PATCH] applemedia: setjmp/longjmp | |
Migrate the pipeline into the AVFoundation dispatch queue thread | |
to enable operation without context switching and unneeded yielding. | |
--- | |
sys/applemedia/avfvideosrc.m | 101 ++++++++++++++++++++++++++++--------------- | |
1 file changed, 66 insertions(+), 35 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void my_log_handler(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) | |
{ | |
NSLog(@"%@", [NSString stringWithUTF8String:message]); | |
} | |
... | |
g_log_set_default_handler( my_log_handler, NULL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use: | |
# 1) Save to $HOME | |
# 2) echo 'command script import ~/gst.py' >> ~/.lldbinit | |
# 3) From within lldb: | |
# | |
# To open pipeline graph in Graphviz: | |
# | |
# gst_dot foobar | |
# | |
# foobar: any expression of type GstObject* -- e.g. GstElement*, GstPad* or GstBin* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adds IDA symbols as WinDbg synthetic symbols | |
// | |
// Original code by 'blabb'. | |
// | |
// See: | |
// http://www.woodmann.com/forum/entry.php?262-addsym-windbg-extension-%28extension-to-load-names-from-ida-to-windbg%29 | |
// http://reverseengineering.stackexchange.com/questions/3850/importing-list-of-functions-and-addresses-into-windbg | |
#include <engextcpp.hpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Execute with: | |
# | |
# git filter-branch -f --msg-filter 'perl /path/to/git_tfs_add_date.pl' HEAD | |
# | |
use POSIX; | |
open INPUT, "<-"; | |
$ENV{'GIT_COMMITTER_DATE'} =~ /^@(.*) \+(\d\d)(\d\d)/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: putty.iss | |
=================================================================== | |
--- putty.iss (revision 9586) | |
+++ putty.iss (working copy) | |
@@ -77,6 +77,9 @@ | |
Name: desktopicon\user; Description: "For the current user only"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked | |
Name: quicklaunchicon; Description: "Create a &Quick Launch icon for PuTTY (current user only)"; GroupDescription: "Additional icons:"; Flags: unchecked | |
Name: associate; Description: "&Associate .PPK files (PuTTY Private Key) with Pageant and PuTTYgen"; GroupDescription: "Other tasks:" | |
+Name: path; Description: "Add PuTTY to the system &path"; GroupDescription: "Other tasks:" | |
+Name: path\common; Description: "For all users"; GroupDescription: "Other tasks:"; Flags: exclusive unchecked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Patches ELF (EABI) ARM attribute Tag_ABI_PCS_wchar_t. | |
* | |
* This utility's chief purpose is to remove the flag indicating sizeof(wchar_t) | |
* from ARM EABI binaries -- or more precisely, setting it to 0 (= undefined). | |
* | |
* It is useful to mark libraries which don't use wchar_t at all as wchar_t-width-agnostic. | |
* This way, they can be linked to both sizeof(wchar_t)=2 and sizeof(wchar_t)=4 programs | |
* without any warnings. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set iAdRootDSE = GetObject("LDAP://RootDSE") | |
namingContext = iAdRootDSE.Get("defaultNamingContext") | |
If WScript.Arguments.Count = 1 Then | |
namingContext = WScript.Arguments.Item(0) | |
Else | |
Wscript.Echo "Usage: ActiveDirectoryToVcf.vbs [Naming Context]" | |
Wscript.Echo "Default path is " & namingContext | |
End If |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.nio.charset.Charset; | |
import java.util.*; | |
/** | |
* Parses of /proc/mounts. | |
*/ | |
public class MountInfo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- libusb-1.0.9/libusb/core.c Fri Apr 20 09:44:27 2012 | |
+++ libusb-1.0.9/libusb/core.c Tue Aug 14 17:29:08 2012 | |
@@ -31,6 +31,10 @@ | |
#include <sys/time.h> | |
#endif | |
+#ifdef __ANDROID__ | |
+#include <android/log.h> | |
+#endif | |
+ |
NewerOlder