This file contains 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
/* | |
* Simple C# wrapper for libresolv to perform DNS SRV lookups. | |
* Tested with Mono 2.0 on Linux and OSX. | |
* | |
* Copyright (c) 2008, Eric Butler <eric@extremeboredom.net> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* * Redistributions of source code must retain the above copyright |
This file contains 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
#!/bin/bash | |
# List of all .pc files to verify. | |
LIBS="qyoto qttest-sharp qtscript-sharp qtwebkit-sharp qtuitools-sharp" | |
echo "Verifying .pc versions..." | |
ALLOK='true' | |
for lib in $LIBS; do | |
v=`pkg-config --modversion $lib 2>/dev/null` |
This file contains 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
diff -ru openbts-2.4Kinder/apps/sendSimple.cpp openbts-2.4Kinder-modified/apps/sendSimple.cpp | |
--- openbts-2.4Kinder/apps/sendSimple.cpp 2009-06-18 10:04:36.000000000 -0700 | |
+++ openbts-2.4Kinder-modified/apps/sendSimple.cpp 2009-09-30 20:37:03.363140713 -0700 | |
@@ -26,7 +26,7 @@ | |
#include <iostream> | |
#include <Sockets.h> | |
#include <Threads.h> | |
- | |
+#include <cstdio> | |
This file contains 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/ruby | |
# Quick script to get the magnet URI for a .torrent file. | |
# Eric Butler <eric@codebutler.com> | |
# sudo gem install rubytorrent base32 | |
# ruby get_torrent_magnet.rb myfile.torrent | |
require 'rubygems' | |
require 'rubytorrent' |
This file contains 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
#!/bin/bash | |
# install-monobjc.sh - Properly installs Monobjc | |
# Part of MonoDevelop.Monobjc: http://codebutler.github.com/monodevelop-monobjc | |
# Created by Eric Butler <eric@codebutler.com> | |
# This script should be run from within the Monobjc source directory. | |
# Monobjc can be downloaded from http://www.monobjc.net/index.php?page=downloads | |
if [[ $UID != 0 ]]; then |
This file contains 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: Foundation/ModuleManager.cpp | |
=================================================================== | |
--- Foundation/ModuleManager.cpp (revision 2543) | |
+++ Foundation/ModuleManager.cpp (working copy) | |
@@ -111,7 +111,12 @@ | |
try | |
{ | |
LoadModule(path, files); | |
- } catch (std::exception &e) // may not be fatal, depending on which module failed | |
+ |
This file contains 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
diff --git a/mDNSCore/uDNS.c b/mDNSCore/uDNS.c | |
index 6fd316e..7a14c8e 100755 | |
--- a/mDNSCore/uDNS.c | |
+++ b/mDNSCore/uDNS.c | |
@@ -2278,8 +2278,6 @@ mDNSexport void mDNS_SetPrimaryInterfaceInfo(mDNS *m, const mDNSAddr *v4addr, co | |
mDNS_Lock(m); | |
- if (v4addr && !mDNSv4AddressIsLinkLocal(&v4addr->ip.v4)) v6addr = mDNSNULL; | |
- |
This file contains 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/ruby | |
# Example script to "uninstall" OSX .pkg files | |
# Probably very dangerous. | |
# | |
# Eric Butler <eric@codebutler.com> | |
require 'fileutils' | |
PKGS = %w( |
This file contains 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
#!/bin/sh | |
set -e | |
ip4=$1 | |
echo "$ip4" | grep -q '^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$' || \ | |
{ echo 'Syntax: $0 a.b.c.d'; exit 1; } | |
prefix=$(printf '%02x%02x:%02x%02x\n' $(echo $ip4 | sed 's/\./ /g')) |
This file contains 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/ruby | |
# XXX: Don't hardcode these paths! | |
require '/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/number_helper.rb' | |
require '/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.1/lib/active_support/core_ext/numeric/bytes.rb' | |
include ActiveSupport::CoreExtensions::Numeric::Bytes | |
include ActionView::Helpers::NumberHelper | |
BLOCKSIZE = 1024 |
OlderNewer