Key: [-head-] {+with patch+}
==================================================
bash -c 'time -p linguist .' 2>&1
real [-142.18-]{+229.29+}
| index: a/acinclude.m4 b/acinclude.m4 | |
| --- a/acinclude.m4 | |
| +++ b/acinclude.m4 | |
| @@ -3273,0 +3274,38 @@ | |
| + | |
| + | |
| +# Test generated assembly for markers of unusual "objects" that cause test to fail. | |
| + | |
| +# Compilers sometimes generate "strange objects" - things that are not machine code, | |
| +# but instead, some type of intermediately processed data (i.e., LTO/IPO/WPA/IR). |
| #!/usr/bin/env sh # "brew which" -- derefernce paths for homebrew symlinks. | |
| # "brew exec" -- exec these instead of printing/returning. | |
| # G. Nixon 2014. Public domain or license of your choice; no warranty, etc. | |
| iam=$(echo "$(basename "$0")" | cut -c6-10); cellar="$(brew --prefix)" | |
| bin=$cellar/bin | |
| optbin=$cellar/opt/bin |
| #!/usr/bin/env ksh # solarized "iterm-24bit" proof-of-concept script. | |
| #!/usr/bin/env sh # If you don't have ksh. But beware: bash nearly dies on this. | |
| command echo "WARNING: This script requires 24bit color and GOOD UTF-8 support." | |
| command echo "If in doubt, ctl-C NOW. Did your terminal die? You were warned!" | |
| echo; for i in $(seq 5 1); do command echo $i...; sleep 1; done | |
| # The Values | |
| # ---------- |
| -- Adapted from these sources: | |
| -- http://peterdowns.com/posts/open-iterm-finder-service.html | |
| -- https://gist.github.com/cowboy/905546 | |
| -- | |
| -- Modified to work with files as well, cd-ing to their container folder | |
| on run {input, parameters} | |
| tell application "Finder" | |
| set my_file to first item of input | |
| set filetype to (kind of (info for my_file)) | |
| -- Treats OS X applications as files. To treat them as folders, integrate this SO answer: |
| require 'formula' | |
| class Icu4c < Formula | |
| homepage 'http://site.icu-project.org/' | |
| if %x(sw_vers -productVersion|cut -c 4-5|sed 's/\\.//').chomp.to_i >= 9 and | |
| # This is a demo, so it only works with 10.9, due to the difference in | |
| # header files between major OS version. |
| Here is a string that cannot be decoded in line mode: �. |
| #!/bin/sh # dash bash ksh # !zsh (issues). G. Nixon, 12/2013. Public domain. | |
| ## 'linkread' or 'fullpath' or (you choose) is a little tool to recursively | |
| ## dereference symbolic links (ala 'readlink') until the originating file | |
| ## is found. This is effectively the same function provided in stdlib.h as | |
| ## 'realpath' and on the command line in GNU 'readlink -f'. | |
| ## Neither of these tools, however, are particularly accessible on the many | |
| ## systems that do not have the GNU implementation of readlink, nor ship | |
| ## with a system compiler (not to mention the requisite knowledge of C). |
| #!/bin/sh # dash bash ksh # !zsh (issues). G. Nixon, 12/2013. Public domain. | |
| ## 'linkread' or 'fullpath' or (you choose) is a little tool to recursively | |
| ## dereference symbolic links (ala 'readlink') until the originating file | |
| ## is found. This is effectively the same function provided in stdlib.h as | |
| ## 'realpath' and on the command line in GNU 'readlink -f'. | |
| ## Neither of these tools, however, are particularly accessible on the many | |
| ## systems that do not have the GNU implementation of readlink, nor ship | |
| ## with a system compiler (not to mention the requisite knowledge of C). |