Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Clone OpenSSL repository
# Credits to https://github.com/robertdavidgraham/heartleech
git clone git://git.openssl.org/openssl.git
cd openssl
# Build 64-bit library on Mac OS
./configure darwin64-x86_64-cc
make depend
make
@muellermartin
muellermartin / osxfuse-xcode6-build.log
Created July 3, 2014 15:58
Log of Homebrew running `brew install osxfuse --HEAD --verbose` (with slightly modified Formula for osxfuse to use 'master' branch instead of 'osxfuse-2')
==> Cloning https://github.com/osxfuse/osxfuse.git
git clone --depth 1 https://github.com/osxfuse/osxfuse.git /Library/Caches/Homebrew/osxfuse--git
Cloning into '/Library/Caches/Homebrew/osxfuse--git'...
git submodule update --init
Submodule 'framework' (https://github.com/osxfuse/framework.git) registered for path 'framework'
Submodule 'fuse' (https://github.com/osxfuse/fuse.git) registered for path 'fuse'
Submodule 'kext' (https://github.com/osxfuse/kext.git) registered for path 'kext'
Submodule 'macfuse' (https://github.com/osxfuse/fuse.git) registered for path 'macfuse'
Submodule 'prefpane' (https://github.com/osxfuse/prefpane.git) registered for path 'prefpane'
Cloning into 'framework'...
Downloading/unpacking xlwings
Getting page https://pypi.python.org/simple/xlwings/
URLs to search for versions for xlwings:
* https://pypi.python.org/simple/xlwings/
Analyzing links from page https://pypi.python.org/simple/xlwings/
Found link https://pypi.python.org/packages/source/x/xlwings/xlwings-0.1.0.zip#md5=4aa10c081fb02ea3ca6fadd3e2858133 (from https://pypi.python.org/simple/xlwings/), version: 0.1.0
Found link https://pypi.python.org/packages/source/x/xlwings/xlwings-0.1.1.zip#md5=f0244b373e2d251b20689620d6437c00 (from https://pypi.python.org/simple/xlwings/), version: 0.1.1
Found link https://pypi.python.org/packages/source/x/xlwings/xlwings-0.2.0.tar.gz#md5=9bfb31b3a08431705eec1bc262d27ff5 (from https://pypi.python.org/simple/xlwings/), version: 0.2.0
Found link https://pypi.python.org/packages/source/x/xlwings/xlwings-0.2.1.tar.gz#md5=83fa219ac5d12a31fcea6c02e2d01879 (from https://pypi.python.org/simple/xlwings/), version: 0.2.1
Found link https://pypi.python.org/package
@muellermartin
muellermartin / apple-wwdc-2015-dl.sh
Created June 9, 2015 18:01
Download Apple's WWDC 2015 in 1080p
#!/bin/sh
# The file containing the list of MPEG TS files
filename=8500_vod.m3u8
# The base URL containing all the MPEG TS files
baseURL=http://p.events-delivery.apple.com.edgesuite.net/15pijbnaefvpoijbaefvpihb06/vod2/8500/
# The directory where to store the MPEG TS files
# WARNING: Needs ~10 GB of disk space (and additional 10 GB for the merged file)!
tsDir=ts
@muellermartin
muellermartin / anonredirect.sh
Last active August 29, 2015 14:25
Anonymously open a redirecting URL to mitigate tracking.
#!/bin/sh
# Anonymously open a redirecting URL to mitigate tracking.
# Uses http://labs.wis.nu/ua/ to retrieve a random user agent string.
# Requires a local tor SOCKS5 proxy and Python 3.
anonredirect()
{
origURL=$1
proxyPort=9050
@muellermartin
muellermartin / hdr.sh
Created November 28, 2012 16:28
Exposure fusion (a.k.a. "Fake HDR") workflow for Magic Lantern
#!/bin/sh
# Exposure fusion (a.k.a. "Fake HDR") workflow for Magic Lantern
# 2012-11-28 17:20:30
# Martin Müller <mail@mueller-martin.net>
#
# REQUIREMENTS:
# ffmpeg
# enfuse
# hugin (for align_image_stack)
#
@muellermartin
muellermartin / sysmon.py
Created February 18, 2013 01:45
Python ws4py WebSocket Client
import time
from ws4py.client.threadedclient import WebSocketClient
class SysMon(object):
def __init__(self, host):
self.running = False
self.client = SysMonWebSocketClient(host)
self.client.connect()
def run(self):
@muellermartin
muellermartin / app.py
Created February 18, 2013 01:48
Simple CherryPy application with external configuration files, Mako template and ws4py WebSocket server
# -*- coding: UTF-8 -*-
import cherrypy
import os.path
from mako.template import Template
from mako.lookup import TemplateLookup
from ws4py.server.cherrypyserver import WebSocketPlugin, WebSocketTool
from ws4py.websocket import WebSocket
cherrypy.config.update("global.config")
@muellermartin
muellermartin / scantailor-0.9.11.1-clang.patch
Last active January 4, 2016 04:29
This patch makes Scan Tailor (scantailor-0.9.11.1) work with Clang on Mac OS X 10.9.1 with homebrew. The patch has been accepted by the maintainer and has been included in the main repository. See conversation in mailing list: http://sourceforge.net/p/scantailor/mailman/message/31884956/
diff --git a/ProjectFilesDialog.cpp b/ProjectFilesDialog.cpp
index f632b3c..dfa1c14 100644
--- a/ProjectFilesDialog.cpp
+++ b/ProjectFilesDialog.cpp
@@ -279,7 +279,7 @@ ProjectFilesDialog::inProjectFiles() const
using namespace boost::lambda;
std::vector<ImageFileInfo> files;
- m_ptrInProjectFiles->items(bind(&pushFileInfo<Item>, ref(files), _1));
+ m_ptrInProjectFiles->items(bind(&pushFileInfo<Item>, boost::ref(files), _1));
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d67607..c7d86b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -203,6 +203,10 @@ add_custom_target(uninstall
find_package(PythonLibs 2)
find_package(SWIG)
+if(APPLE)
+ set(PYTHON_LIBRARY "-undefined dynamic_lookup")