Skip to content

Instantly share code, notes, and snippets.

GitHub lists done creatively

Standard nesting syntax:

* red
  * yellow
    * blue
      * black
        * white

GitHub_search

All of the examples that specify a search are searching for foo:

CLIPBOARD vs PRIMARY vs SECONDARY

About

  • CLIPBOARD:
    • This contains copied data.
    • Copy data by selecting text and pressing Ctrl+c or right-clicking and choosing copy from the context menu.
    • Paste data by pressing Ctrl+v or pressing Shift+Insert or right-clicking the mouse and choosing paste to paste.
    • AutoKey's clipboard.get_clipboard() and clipboard.fill_clipboard() API calls can access this.
  • PRIMARY:
  • This contains selected data.

GitHub import a project

Import a project onto GitHub.

1. Prepare your computer for development

  1. Before you do anything else, make a backup of your local project!
  2. Check through all the folders in your local project and if any of them don't have any files in them, add a file to them. This matters when it comes time to push the changes to GitHub, because the push command won't send empty directories. A common practice is to put the empty .gitkeep file into empty directories.
  3. Grab all available operating-system updates.
  4. Update the apt database: sudo apt update
  5. Configure your git username in place of John Doe's: git config --global user.name "John"
---
########################################################################
# How to create a YAML issue template form in your repository #
########################################################################
# To use a YAML issue form in your repository, you must create a new
# file and add it to the .github/ISSUE_TEMPLATE folder in your
# repository by typing the full path to the new file in when prompted
# for a new file's name.
#
# If, for example, you wanted to create the bug.yaml form to add to your