This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# example: addfw 4.0.1 com.hoge_0.1 | |
if [ $# -ne 2 ]; then | |
echo "ERROR: wrong number of arguments." | |
fi | |
if [ -d $2 ]; then | |
control=${2%/}/DEBIAN/control |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Wrong number of arguments" | |
exit 1 | |
fi | |
if [ -d $1 ]; then | |
dpkg-deb -b ${1%/} | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "PasteboardStackerNotifier.h" | |
@implementation PasteboardStackerNotifier | |
- (id) init { | |
if (self = [super init]) { | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(uiPasteboardDidChange:) | |
name:@"UIPasteboardChangedNotification" | |
object:nil]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key [f5] 'indent-region) | |
(global-set-key [f6] | |
'(lambda () | |
(interactive) | |
(indent-region (point-min) (point-max)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ReederMacPatcherShareTwitter.m | |
// ReederMacPatcher | |
// | |
// Created by moyashi on 11/01/16. | |
// Copyright 2011 __MyCompanyName__. All rights reserved. | |
// | |
#import "ReederMacPatcherShareTwitter.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
℁ | |
-- http://twitpic.com/3xq8rf | |
-- Rubyを呼び出しているサンプルです | |
-- 「システム環境設定>ユニバーサルアクセス>補助装置にアクセスできるようにする」をONにしていないと動かないです | |
on paste(s) | |
set old to the clipboard | |
set the clipboard to (s as unicode text) | |
tell application "System Events" | |
key down command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-*- mode: grep; default-directory: "~/Dropbox/Mac/SIMBL/SafariHeaders/" -*- | |
Grep started at Mon Feb 28 20:39:02 | |
grep -nH -i openurl * | |
AppController.h:58:- (void)openURL:(id)arg1 forcingHTMLMIMEType:(BOOL)arg2; | |
BrowserContentWebView-BrowserContextMenu.h:27:- (void)openURLInNewTab:(id)arg1 tabLocation:(id)arg2; | |
BrowserContentWebView-BrowserContextMenu.h:28:- (void)openURLInNewWindow:(id)arg1; | |
BrowserWebView-FileInternal.h:42:- (BOOL)_openURLExternallyWithRequest:(id)arg1 inFrame:(id)arg2 displayError:(BOOL)arg3; | |
NSWorkspace-BrowserNSWorkspaceExtras.h:12:- (BOOL)openURL:(id)arg1 withApplicationAtPath:(id)arg2; | |
NSWorkspace-BrowserNSWorkspaceExtras.h:15:- (BOOL)openURL:(id)arg1 withApplicationWithBundleIdentifier:(id)arg2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[[[BrowserDocumentController sharedDocumentController] frontmostBrowserDocument] currentBrowserWebView] stringByEvaluatingJavaScriptFromString:@"alert(1)"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# -*- coding: utf-8 -*- | |
# kind of separated refuse | |
# written by moyashi | |
# 2011.03.02 | |
require 'date' | |
# grabbed from http://rubyist.g.hatena.ne.jp/yamaz/20070125 | |
class Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- NSGrayFrame NSThemeFrame _setMouseEnteredGroup:entered: | |
- NSGrayFrame NSThemeFrame _setMouseEnteredGroup:entered: | |
+ NSUIHeartBeat NSUIHeartBeat sharedHeartBeat | |
- NSUIHeartBeat NSUIHeartBeat updateHeartBeatState | |
- BrowserApplication NSApplication isActive | |
- BrowserApplication BrowserApplication keyWindow | |
- NSApplication NSApplication keyWindow | |
+ NSThread NSThread isMainThread | |
- BrowserApplication NSApplication currentEvent | |
- NSEvent NSEvent isDictionaryHotKeyEvent |