- Parsing with derivatives
- Parser generators
- ANTLR 4
- The old guard of flex (lex) + bison (yacc), JavaCC + CUP
- Data binding generators (the perils of code generation)
- protoc
- Prisma
- Faster regex engines
This file contains hidden or 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 ruby | |
require 'openssl' | |
require 'uri' | |
require 'net/http' | |
url = URI.parse 'https://rubygems.org/' | |
http = Net::HTTP.new url.host, url.port | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_PEER | |
http.read_timeout = 20 |
This file contains hidden or 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
yum grouplist | sed -n '1,/^Installed Groups:/d;/^Available Groups:/q;s/^ *//g;p' |
This file contains hidden or 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
vol_name="`basename \\"$1\\"`" | |
iso="$vol_name.iso" | |
counter=1 | |
while [ -e "$iso" ]; do | |
counter=$[counter+1] | |
iso="$vol_name $counter.iso" | |
done | |
hdiutil makehybrid -iso -joliet -o "$iso" "$@" |
This file contains hidden or 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
on run {input, parameters} | |
tell application "Finder" | |
set thePath to first item of input | |
set {dispName, nameExt, isHidden} to the {displayed name, name extension, extension hidden} of thePath | |
if isHidden or nameExt is equal to "" then | |
dispName | |
else |
This file contains hidden or 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 ruby | |
# | |
# Usage: 256swatch [-b [foreground [test pattern]]] | |
# | |
# option description default | |
# ----------------------------------------------------------- | |
# | |
# -b print background swatches instead normal | |
# | |
# foreground force foreground (decimal) normal |
This file contains hidden or 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 | |
find ~/.rvm -type d -print0 | xargs -0L1 chmod 0755 | |
find ~/.rvm -type f -print0 | xargs -0L1 chmod 0644 | |
find ~/.rvm -type f -print0 | xargs -0L1 file | grep ' exec' | cut -d: -f1 | tee /dev/stderr | xargs -L1 chmod 0755 |
This file contains hidden or 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
# Usage: MRI put at the top of custom_require.rb | |
# | |
# ~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb | |
# This is crappy/untested proof-of-concept code, do not use it in production. It will fail. | |
# Unlikely to be threadsafe either. | |
# Don't run this on anything you care about. | |
# No warranties, express or implied. GPL v3 license. | |
if ENV['RBDEBUG_REQUIRE'] && !ENV['RBDEBUG_HIDE'] |
This file contains hidden or 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
patched /Volumes/Users/barry/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb to show requires, loads and imports. RBDEBUG_REQUIRE shows, RBDEBUG_HIDE hides | |
rubygems ... | |
absolute_time (stats bypassed 1) | |
rubygems/version (stats bypassed 1) | |
rubygems/requirement (stats bypassed 1) | |
rubygems/version (stats bypassed 1) | |
rubygems/version (stats bypassed 1) | |
rubygems/deprecate (stats bypassed 1) | |
rubygems/platform (stats bypassed 1) | |
rubygems/deprecate (stats bypassed 1) |
This file contains hidden or 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
# Usage: MRI put at the top of custom_require.rb | |
# | |
# ~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb | |
# This is crappy/untested proof-of-concept code, do not use it in production. It will fail. | |
# Unlikely to be threadsafe either. | |
# Don't run this on anything you care about. | |
# No warranties, express or implied. GPL v3 license. | |
if ENV['RBDEBUG_REQUIRE'] && !ENV['RBDEBUG_HIDE'] |