How to get a listing of all email addresses associated with a Github repo.

Getting a listing of all email addresses attached to a Git repo is very easy, this simple command will do this simply. Just use Git to clone the repo to a folder, then run this command to see all emails. ┌──[[email protected]]─[~/Documents/sysinfo] └──╼ (master) ╼ $ git log "–format=format:%ae" | sort -u | sed ‘/noreply/d’ | … Read more

How to have a nice bash shell prompt that will print the current git branch on the prompt.

This interesting bash function will get the git branch of the current working directory and then print it in the shell prompt. This could be very useful for a programmer. git_branch() { git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/(\1)/’ }   PS1=’┌──[\u@\h]─[\w]\n└──╼ $(git_branch) ╼ \$ ‘git_branch() { git branch 2> /dev/null … Read more

Updating an open-source project is fun.

I have updated my System Information project, I used git to push changes to the repo from my local machine. This is not too hard. Add files to the main branch like this. jason@Yog-Sothoth:~/Documents/sysinfo$ git add src/iface.hjason@Yog-Sothoth:~/Documents/sysinfo$ git add src/iface.h Then push the changes to the repo. jason@Yog-Sothoth:~/Documents/sysinfo$ git push Username for ‘https://github.com’: john302 Password … Read more

how to use the git clone command through a http proxy.

The git clone command is used to pull the latest code from a GIT repository. But using it through a proxy can be annoying. Here is how to do this. Firstly; define your HTTP proxy information. export HTTP_PROXY="http://Monty.Burns:[email protected]:80"export HTTP_PROXY="http://Monty.Burns:[email protected]:80" Then you need to tell GIT about the proxy. git config –global http.proxy $HTTP_PROXYgit config –global … Read more

Interesting C program and Linux kernel source safe after all.

This is a little program I wrote in C that picks a random monster to attack the player. I think I already have this posted somewhere, but I thought I would post this once again as someone might be interested in this again. Programming in C instead of more modern programming languages like C++ is … Read more