pear upgrade PEAR
pecl install xhprof-0.9.2
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/env zsh | |
# helper to work with rom paths easier. | |
# - scans for roms in current working directory. | |
# - first argument can be a path. | |
# - if it's not, pass all arguments to lmame. | |
local rompath=`pwd` | |
# first parameter can be ambigous. assume directory if it exists. | |
if [[ -d ${1:a} ]]; then |
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
$ # plz forgive this dumb method of visualization. | |
$ cp /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict . | |
$ plutil -convert xml1 StandardKeyBinding.dict | |
$ plutil -p StandardKeyBinding.dict | unicode-vis | cat -v | tr '\t' '+' | |
{ | |
"^C" => "insertNewline:" | |
"^H" => "deleteBackward:" | |
"^Y" => "insertBacktab:" //shift+tab | |
"^[" => "cancelOperation:" | |
"^?" => "deleteBackward:" |
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
{ | |
"65536": [ | |
"alphashift" | |
], | |
"131072": [ | |
"shift" | |
], | |
"196608": [ | |
"alphashift", | |
"shift" |
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/zsh | |
# Metroid Prime 2 | |
ignore_dir="$dump/- ignore" | |
linked_dir="$dump/- linked" | |
review_dir="$dump/- review" | |
mkdir -p $ignore_dir $linked_dir $review_dir $load | |
ln -sf $linked_dir $load |
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/zsh | |
sec=${argv[( $argv[(i)--timeout|-t] + 1 )]:-10} | |
out=${argv[( $argv[(i)--output|-o] + 1 )]:-~/Desktop/Texture\ Loads/`date "+%m.%d,%H.%M.%S"`} | |
com=$argv[( $argv[(i)--compare|-c] + 1 )] | |
pre=$argv[( $argv[(i)--preview|-p] )] | |
if [[ $argv[(I)(--help|-h)] -gt 0 ]]; then | |
echo "\ | |
--timeout|-t [n] |
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/env zsh | |
set -e | |
local pkgdef _pkgdef | |
zparseopts -D -E - {-formula,-formulae,-cask}=_pkgdef | |
# conditional output based on the homebrew package definition being worked on. | |
# example: `c.pkgdef output-for-formula output-for-cask` | |
# if `--formula` is passed to this script, `output-for-formula` will be output. |
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
# GIT heart FZF | |
# ------------- | |
is_in_git_repo() { | |
git rev-parse HEAD > /dev/null 2>&1 | |
} | |
fzf-down() { | |
fzf --height 50% --min-height 20 --border --bind ctrl-/:toggle-preview "$@" | |
} |
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/env swift | |
// | |
// PrintBootCampESDInfo.swift | |
// | |
// Created by nuomi1 on 8/5/18. | |
// Copyright © 2018年 nuomi1. All rights reserved. | |
// | |
import Foundation |
NewerOlder