Skip to content

Instantly share code, notes, and snippets.

@justintv
justintv / .bashrc
Created August 17, 2009 00:53
Display git branch in bash prompt
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"
@iamnewton
iamnewton / bash-colors.md
Last active August 5, 2025 16:26
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@vratiu
vratiu / .bash_aliases
Last active September 2, 2025 07:10
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@smykes
smykes / nfl.json
Last active November 16, 2023 14:23
A JSON string of all 32 NFL football teams including city, name, conference, division, and abbreviation.
[
{
"city": "Arizona",
"name": "Cardinals",
"abr": "ARI",
"conf": "NFC",
"div": "West"
},
{
"city": "Atlanta",
@pratos
pratos / condaenv.txt
Created November 30, 2016 07:01
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder
@chranderson
chranderson / nvmCommands.js
Last active August 24, 2025 23:17
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@JBlond
JBlond / bash-colors.md
Last active August 28, 2025 14:15 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@MickeyPvX
MickeyPvX / espn_ffl.py
Last active September 12, 2021 19:35
Python class to pull ESPN Fantasy Football data into a pandas DataFrame
import pandas as pd
import re
from urllib.request import urlopen
from bs4 import BeautifulSoup as soup
from datetime import datetime as dt
class ESPN_FFL(object):
"""Helper class for pulling ESPN Fantasy Football stats for a given season.
@prray305
prray305 / nfl_teams.csv
Created December 30, 2019 20:14 — forked from cnizzardini/nfl_teams.csv
List of nfl teams as a CSV: name,abbreviation,conference,division for MySQL format see https://gist.github.com/cnizzdotcom/e9240505acb0865e0c25 please comment if you find any errors
ID Name Abbreviation Conference Division
1 Arizona Cardinals ARI NFC West
2 Atlanta Falcons ATL NFC South
3 Baltimore Ravens BAL AFC North
4 Buffalo Bills BUF AFC East
5 Carolina Panthers CAR NFC South
6 Chicago Bears CHI NFC North
7 Cincinnati Bengals CIN AFC North
8 Cleveland Browns CLE AFC North
9 Dallas Cowboys DAL NFC East
@Justintime50
Justintime50 / reset-xcode-install.md
Last active July 18, 2025 14:31
Reset Your Xcode Installation on macOS

Reset your Xcode Install on macOS

Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"

1) Check if Xcode is installed

xcode-select -print-path