Skip to content

Instantly share code, notes, and snippets.

View dealforest's full-sized avatar

Toshihiro Morimoto dealforest

View GitHub Profile
--- mark.c.orig 2009-06-25 02:03:01.000000000 +0900
+++ mark.c 2009-06-25 02:03:50.000000000 +0900
@@ -59,6 +59,8 @@
static void MarkRedisplayLine __P((int, int, int, int));
static int MarkRewrite __P((int, int, int, struct mchar *, int));
+void pbcopy(const char *strings);
+
extern struct layer *flayer;
extern struct display *display, *displays;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.bulknews.GitHubGrowler</string>
<key>ProgramArguments</key>
<array>
<string>絶対パス /github-growler/github-growler.pl</string>
<string>ここに UserID </string>
@dealforest
dealforest / gist:edde2632c644c3dc9d04
Last active August 29, 2015 14:25
only Swfit 1.2
let request = GitHub.Endpoint.SearchRepositories(query: "APIKit", sort: .Stars)
GitHub.sendRequest(request)
.success { println($0) }
.failure { println($0) }
extension GitHub {
func sendRequest<T: APIKit.Request>(request: T) -> Task<Float, T.Response, NSError> {
return Task { progress, fulfill, reject, configure in
/*
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
@dealforest
dealforest / O0
Last active August 29, 2015 14:10
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix
Pass Arguments: -targetlibinfo -datalayout -verify -verify-di
Target Library Information
Data Layout
ModulePass Manager
FunctionPass Manager
Module Verifier
Debug Info Verifier
Bitcode Writer
@dealforest
dealforest / gist:c50667424376c09383a9
Last active August 29, 2015 14:08
check Xcode version
# http://stackoverflow.com/questions/4023830/bash-how-compare-two-strings-in-version-format/4025065#4025065
# 0: =, 1: >, 2: <
vercomp () {
if [[ $1 == $2 ]]
then
return 0
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty fields in ver1 with zeros
Incident Identifier: 4443D885-3C0C-4582-86BA-C2FC85F9FAC5
CrashReporter Key: 08e4571debddd2c404663681d874fc364222a762
Hardware Model: iPhone5,2
Process: JPKB [255]
Path: /private/var/mobile/Containers/Bundle/Application/E5B12325-F84A-4BF9-9DF0-24BEE46A7DCB/JapaneseKeyboardKit.app/PlugIns/JPKB.appex/JPKB
Identifier: com.kishikawakatsumi.JapaneseKeyboardKit.JPKB
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
# GDB
(gdb) info malloc-history <address>
(gdb) shell malloc_history <pid> <address>
# LLDB
(lldb) command script import lldb.macosx.heap
(lldb) malloc_info --stack-history <address>