Skip to content

Instantly share code, notes, and snippets.

View overheadhunter's full-sized avatar
🇺🇦

Sebastian Stenzel overheadhunter

🇺🇦
View GitHub Profile
@overheadhunter
overheadhunter / clang-omp-xcode.md
Last active August 29, 2015 14:18
Using clang-omp with Xcode
  1. Install clang-omp using homebrew: brew install clang-omp
  2. Create a new Xcode project.
  3. Under Build Settings
    • add a new user-defined setting CC with the value /usr/local/bin/clang-omp
    • Add -fopenmp to Other C Flags
    • Add /usr/local/include to Header Search Paths
    • Set Enable Modules (C and Objective-C) to No
  4. Under Build Phases
    • Add /usr/local/lib/libiomp5.dylib to Link Binary With Libraries
@overheadhunter
overheadhunter / owncloudInSubdirectory.conf
Created October 21, 2014 07:05
For ownCloud installations on example.com/owncloud instead of a own subdomain.
location /owncloud/ {
error_page 403 = /owncloud/core/templates/403.php;
error_page 404 = /owncloud/core/templates/404.php;
client_max_body_size 0;
proxy_buffering off;
rewrite ^/owncloud/caldav(.*)$ /owncloud/remote.php/caldav$1 redirect;
rewrite ^/owncloud/carddav(.*)$ /owncloud/remote.php/carddav$1 redirect;
rewrite ^/owncloud/webdav(.*)$ /owncloud/remote.php/webdav$1 redirect;
@overheadhunter
overheadhunter / osxUtilities
Created October 5, 2014 17:10
Useful stuff for OS X for techies (will grow over time)
# System tweaks
## Quicklook
* Markdown preview: http://inkmarkapp.com/markdown-quick-look-plugin-mac-os-x/
@overheadhunter
overheadhunter / cheatingBad.js
Created October 17, 2013 19:23
for all the script kiddies out there, who can't wait for the $1,632,501,000,000 needed
var sayMyName = function(batches) {
var sale = do_sell(batches);
if(sale) {
message('Heisenberg!!!');
pd.stats.hand_sold_widgets += sale;
fix_make_sell();
return sale;
}
}