Skip to content

Instantly share code, notes, and snippets.

@olierxleben
olierxleben / gist:1902514
Created February 24, 2012 18:14
Command fixing problem with mac homebrew during make processes (for example installing macvim). Fixes problems when: Fresh install of os x lion -> updated to 10.7.3 -> installed Xcode 4.3 (now just Mac/iOS libs & tools) -> installed Xcode CLTs
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
@olierxleben
olierxleben / MacAddressbookToXML.ru
Created May 29, 2012 14:16
Control_Tower/Macruby web-service for wrapping Mac`s Addressbook and gives back as XML (XML so far for Cisco IP-Phones)
# Addressbook-Server bridges tha gap between your local Addressbook and Web-Services
#
#
# uses control_tower Rack-based-Server
# setup:
# download macruby
# install control_tower: sudo macgem install control_tower (script uses version 1.0 so far)
#
#
# XML-Schema is used on Cisco-IP-Telephones
@olierxleben
olierxleben / fish tree function
Created April 26, 2014 05:56
tree printing terminal command for fish shell
function tree
find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
end
@olierxleben
olierxleben / WKWebview local file
Created March 15, 2015 16:53
Code demonstrated how to load local files into WKWebView - Result works in Simulator, not on device (Tested with 8.2, iPhone 6)
// Code wor
import UIKit
import WebKit
class ViewController: UIViewController, WKScriptMessageHandler {
var webView = WKWebView()
var contentController = WKUserContentController()
override func viewDidLoad() {
@olierxleben
olierxleben / fixing-ionic-cli-upload-win.md
Created May 16, 2017 20:04
Fixing proxy with authentication in ionic command line (on Windows)

this fix worked on windows 7 and ionic cli version 2.2.2

  1. navigate to your ionic cli node_modules: npm/node_modules/ionic/node_modules and delete form-data

  2. clone fixing repo

    git clone https://github.com/SamuelKlein/form-data.git

  3. chang into form-data folder and run

npm install