Skip to content

Instantly share code, notes, and snippets.

View katipogluMustafa's full-sized avatar
🎯
Focusing

Mustafa Katipoğlu katipogluMustafa

🎯
Focusing
View GitHub Profile
@ccannon94
ccannon94 / CommandLineGit.md
Last active May 7, 2024 13:43
Using Git from the Command Line

When you use git from the command line, use the following steps:

Accessing the Repository

  • On Windows, launch Git Bash, on MacOS or Linux, launch a terminal.
  • If you have not done so on your machine, create a COMP167 directory in your home directory using mkdir ~/COMP167
  • NOTE: This command only needs to be run once on each machine, to create the directory.
  • Navigate to your directory using cd ~/COMP167.
  • If your repository already exists locally, navigate to it using cd [your-repository-name], if you want to check the contents of your directory, use ls.
  • If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository. Clone or Download Button on GitHub
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 27, 2024 19:57
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@wangruohui
wangruohui / Install NVIDIA Driver and CUDA.md
Last active June 29, 2024 09:06
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@evanwill
evanwill / gitBash_windows.md
Last active July 16, 2024 23:51
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@parmentf
parmentf / GitCommitEmoji.md
Last active July 26, 2024 15:56
Git Commit message Emoji
@jhermann
jhermann / git-commit-emojis.md
Last active September 23, 2023 07:09
Useful emoji for git commit messages

Useful emoji for git commit messages

If you add emoji to your commit messages for a GitHub repo, they become less boring, and you can convey the kind of change you're adding. See the full set of GitHub supported emoji here (also useful for easy copy&paste via a simple click).

Example commit message

The following is a possible scheme to use:

@migf1
migf1 / s_new_from_stdin.c
Last active July 16, 2021 02:03
Read portably a string of arbitrary length from the console in C ( ANSI C89 / ISO C90 ).
#include <stdio.h> /* getchar() */
#include <stdlib.h> /* malloc(), realloc() */
#include <string.h> /* memcpy() */
/* -----------------------------------------------
* Create a new string (NUL-terminated array of chars) by reading the stdin.
* Return the newly created string, or NULL on error.
* Args:
* int beExact: If 0 (false), then the size of the created string will
* be an exact multiple of the internally used alloc-ahead