User Tools

Site Tools


github_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
github_notes [2021/03/16 16:33] rajugithub_notes [2024/01/26 18:10] – [exclude a repository from search results] raju
Line 1: Line 1:
 +===== favorite configuration =====
 +==== show private contributions on the github profile ====
 +  * Profile icon at the top right -> Settings -> Contributions & Activity -> "Include private contributions on my profile" -> check -> "Update preferences"
 +
 +==== hide achievements on the github profile ====
 +  * Profile icon at the top right -> Settings -> Profile Settings -> "Show Achievements on my profile" -> uncheck -> "Update preferences"
 +
 +===== dummy =====
 +==== links I came across ====
 +  * [[https://docs.github.com/en/get-started/signing-up-for-github/verifying-your-email-address | Verifying your email address]] (docs.github.com)
 +  * [[https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token | Creating a personal access token]] (docs.github.com)
 +  * [[https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ | Token authentication requirements for Git operations]] (github.blog)
 +    * Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations on GitHub.com.
 +
 +==== useful links ====
 +  * https://www.githubstatus.com/
 +
 ==== code search ==== ==== code search ====
   * https://grep.app/   * https://grep.app/
     * sample query: https://grep.app/search?q=binary%20gap%20&filter[lang][0]=Python     * sample query: https://grep.app/search?q=binary%20gap%20&filter[lang][0]=Python
 +
 +===== searching code =====
 +==== search files with extension ====
 +<code>
 +foo path:*.extension
 +</code>
 +
 +ex:-
 +<code>
 +foo path:*.ipynb
 +</code>
 +
 +will search for ''foo'' in .ipynb files
 +
 +Ref:- https://stackoverflow.com/questions/59909592/how-can-i-search-all-files-ending-with-the-file-extension-feature-on-github
 +
 +==== search in a particular file ====
 +Use
 +<code>
 +filename:.travis.yml
 +</code>
 +for example
 +<code>
 +python unittest filename:.travis.yml
 +</code>
 +
 +==== exclude a repository from search results ====
 +Add
 +<code>
 +-repo:user_name/repo_name
 +</code>
 +to the search string.
 +
 +Ref:
 +  * https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#exclude-certain-results - documents the '-' operator.
 +
 +==== exclude forks from search results ====
 +tags | do not search in forks
 +
 +To exclude forks from the search results, you can append
 +<code>
 +NOT is:fork
 +</code>
 +
 +Example:
 +<code>
 +header_to_metadata_and_cell NOT is:fork
 +</code>
 +
 +On 2026-01-26, ''header_to_metadata_and_cell NOT is:fork'' gave 33 results vs 204 results for ''header_to_metadata_and_cell''
 +
 +===== search issues =====
 +==== search issues filed by a user ====
 +For your own issues
 +<code>
 +https://github.com/issues
 +</code>
 +
 +For other users, there are two possible approaches.
 +
 +Solution 1:
 +<code>
 +https://github.com/issues?q=is%3Aopen+is%3Aissue+author%3Ausername+archived%3Afalse+
 +</code>
 +
 +For example
 +<code>
 +https://github.com/issues?q=is%3Aopen+is%3Aissue+author%3AKamarajuKusumanchi+archived%3Afalse+
 +</code>
 +
 +Solution 2:
 +<code>
 +is:issue is:open author:$author
 +</code>
 +for example
 +<code>
 +is:issue is:open author:kamarajukusumanchi
 +</code>
  
github_notes.txt · Last modified: 2024/01/26 18:14 by raju