Skip to content

Instantly share code, notes, and snippets.

View nolili's full-sized avatar
:octocat:

NORITAKA KAMIYA nolili

:octocat:
View GitHub Profile
@nolili
nolili / gist:3174909
Created July 25, 2012 07:25 — forked from yusuke/gist:3174898
main.m
#import <Foundation/Foundation.h>
#import <stdio.h>
@interface RGB : NSObject
{
unsigned char red, green, blue;
}
- (id)initWithRed:(int)r green:(int)g blue:(int)b;
- (id)blendColor:(RGB *)color;
- (void)print;
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g'

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

Install OS X 10.10 Yosemite in VirtualBox

(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)

Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.

(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)

@nolili
nolili / .lldbinit
Last active September 17, 2015 04:38 — forked from jparishy/.lldbinit
Print JSON from LLDB
...
command script import ~/.lldb/print_json.py
# Then restart Xcode
@nolili
nolili / migpo.rb
Created May 6, 2016 04:00 — forked from laiso/migpo.rb
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'nokogiri'
path = ARGV.shift
doc = Nokogiri::XML(File.open(path))
doc.xpath("/database/object").each do |object|
o = object.clone