search

Search GH for strings within specific file names

Snippet

Github has a LOT of code repositories. Sometimes, you want to search for how someone does a task in a specific, well-known file name for a project. For example, all Rails apps have a Gemfile, maybe you want to find a version of a gem used in a Gemfile.

Combine Github search filters to find exactly what you need.

# search for the word "command" in all files named "app.yml"
command in:file filename:app.yml

Find files of a particular type in a web search

Snippet

Works on the googs, and duckduckgo, use the option filetype:<type> in the search box to filter results to only that file type.

Useful when you need documents for testing, and don't particularly care about the content, but you do care about the format.

Example: https://duckduckgo.com/?q=filetype%3Adoc+beagle&t=h_&ia=web

filetype:doc beagle