Skip to content

Instantly share code, notes, and snippets.

View tterb's full-sized avatar
Building stuff

Brett Stevenson tterb

Building stuff
View GitHub Profile
@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@robmiller
robmiller / .gitconfig
Created July 17, 2013 07:52
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@nbremer
nbremer / .block
Last active March 23, 2024 21:03
Radar Chart Redesign
height: 600
license: mit
@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@tterb
tterb / FormattingBadges.md
Created September 24, 2016 13:18
Formatting Badges
@tterb
tterb / cppArgs
Last active November 11, 2016 11:53
Reading command-line arguments in C++
int main(int argc, char* argv[]){
if(argc > 1) //if there is an argument
/* Do something */
string firstArg = argv[1];
}
@tterb
tterb / Makefile
Created November 11, 2016 11:56
C++ Makefile example
# makefile
# define target, its dependencies and files
p5: main.o LinkedList.o
g++ -o p4 main.o LinkedList.o
# define how each object file is to be built
main.o: main.cpp LinkedList.h
g++ -c main.cpp
@tterb
tterb / Powershell_profile.ps1
Last active April 26, 2017 21:45
Powershell Profile
# Set-Up
$Shell = $Host.UI.RawUI
$size = $Shell.WindowSize
$size.width=90
$size.height=30
$Shell.WindowSize = $size
$size = $Shell.BufferSize
$size.width=140
$size.height=2500
@tterb
tterb / zipSnapshot.md
Last active March 19, 2019 21:04
Download the current snapshot of GitHub repo as .zip file

Download the current snapshot of a repo as a .zip archive

[current snapshot](https://github.com/<username>/<repo>/zipball/master)