Skip to content

Instantly share code, notes, and snippets.

View oldpiano's full-sized avatar

oldpiano oldpiano

View GitHub Profile
@oldpiano
oldpiano / restart_bluetooth.sh
Created February 10, 2017 01:16 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
alias ls='ls -AhFG'
alias ll='ls -AhlFG'
alias grep='grep -C 2 -n '
@oldpiano
oldpiano / ChangeDefaultFontSafari.sh
Created June 9, 2013 23:14
Change Default Font of Safari 6
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily Georgia
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 16
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily Menlo
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize 14
#!/bin/bash
############################################
# Modified from emilis bash prompt script
# from https://github.com/emilis/emilis-config/blob/master/.bash_ps1
#
# Modified for Mac OS X by
# @corndogcomputer
###########################################
# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):
HISTTIMEFORMAT='%F %T '
export HISTTIMEFORMAT
. ~/.bash_prompt
. ~/.alias
export THEOS=/opt/theos
export iOSOpenDevPath=/opt/iOSOpenDev
export iOSOpenDevDevice=
export PATH=$THEOS/bin:$iOSOpenDevPath/bin:$PATH
@oldpiano
oldpiano / smi.html
Created April 25, 2013 00:41
기미갤 한글자막 검색
<html>
<head>
<title>미드 한글자막</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<link rel="stylesheet" href="../jquery.mobile.css" />
<link rel="stylesheet" href="../jquery.mobile.f.css" />
<style type="text/css">
.content.pc { float: left; width: 30%; margin-right: 15px }
.ui-li-desc { font-size: 8pt; font-weight: normal }
@oldpiano
oldpiano / UIPopoverController+overrides.mm
Last active December 16, 2015 15:29
UIPopoverController in iPhone
@interface UIPopoverController (overrides)
+ (BOOL)_popoversDisabled;
@end
@implementation UIPopoverController (overrides)
+ (BOOL)_popoversDisabled {
return NO;
}
@oldpiano
oldpiano / .inputrc
Last active December 16, 2015 15:29
터미널 TAB키 완성 / History 검색
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
# history search
"\e[A": history-search-backward
"\e[B": history-search-forward
@oldpiano
oldpiano / install_theos.sh
Created April 25, 2013 00:23
Xcode 4.4+ 에서 Theos 설치하기 (iOS6)
# clone theos.git
cd ~
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd ~/theos/
mv include include.bak
git clone git://github.com/rpetrich/iphoneheaders.git include
for FILE in include.bak/*.h; do mv $FILE include/; done
rmdir include.bak/
@oldpiano
oldpiano / iPhoneOSPackageTypes.xcspec
Created April 25, 2013 00:15
Xcode에서 dylib 빌드 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications/
// Mach-O dynamic library
{
Type = PackageType;
Identifier = com.apple.package-type.mach-o-dylib;
Name = "Mach-O Dynamic Library";
Description = "Mach-O dynamic library";
DefaultBuildSettings = {
EXECUTABLE_PREFIX = "";
EXECUTABLE_SUFFIX = "";
EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)";