Skip to content

Instantly share code, notes, and snippets.

@singpolyma
Created March 3, 2009 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singpolyma/73179 to your computer and use it in GitHub Desktop.
Save singpolyma/73179 to your computer and use it in GitHub Desktop.
/etc/magic
0 string/b #!\ /bin/sh POSIX shell script commands text executable
0 string/b #!\ /usr/bin/ruby Ruby script text executable
!:mime text/x-ruby
0 string/b #!\ /usr/bin/env\ ruby Ruby script text executable
!:mime text/x-ruby
0 search .each\ do\ | Ruby script text executable
!:mime text/x-ruby
0 search .each\ {\ | Ruby script text executable
!:mime text/x-ruby
0 search =attr_reader\ : Ruby script text executable
!:mime text/x-ruby
0 search =attr_accessor\ : Ruby script text executable
!:mime text/x-ruby
0 search =def\ self. Ruby script text executable
!:mime text/x-ruby
0 regex describe\ ".*"\ do RSpec test text executable (ruby)
!:mime text/x-ruby
0 string/b #!\ /usr/bin/wish TCL/TK script text executable
!:mime text/x-tcl
0 string/b package\ require\ Tk TCL/TK script text executable
!:mime text/x-tcl
0 string/b #!\ /usr/bin/tclsh TCL script text executable
!:mime text/x-tcl
0 search =if\ { TCL script text executable
!:mime text/x-tcl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment