Skip to content

Instantly share code, notes, and snippets.

View gojimmypi's full-sized avatar

gojimmypi gojimmypi

View GitHub Profile
@gojimmypi
gojimmypi / vmware-tools-install.sh
Last active May 24, 2017 00:09
install vmware tools for linux
#!/bin/bash
# we are assuming VMware tools are ready to be installed. Click Tools - Reinstall VMware tools if needed
# if you copy/paste this instead of using in a shell, be sure to use your login in place of $USER, below
cd ~/
# Ensure there's a ~/Downloads directory
if [ ! -d  "Downloads" ]; then 
mkdir ~/Downloads
fi
cd ~/Downloads/
@gojimmypi
gojimmypi / bashprompt.sh
Last active December 28, 2020 05:02
show user, host, current path, git upstream origin, branch, and last exit code as bash prompt
#!/bin/bash
# intially generated from http://bashrcgenerator.com/ with additional modificationas
#
# creates prompt like this with username and directory path on one line, then most recent error code number and $ on next line:
# gojimmypi@ubuntu : ~
# 0 $
#
# prior version, no GitHub branch
# export PS1="\[\033[38;5;2m\]\u@\h\[$(tput sgr0)\]\[\033[38;5;15m\] : \[$(tput sgr0)\]\[\033[38;5;11m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]\n\$? \\$ \[$(tput sgr0)\]"
@gojimmypi
gojimmypi / codeblock.css
Last active May 3, 2017 16:52
codeblock css style
pre {
overflow-x:scroll;
overflow-y:scroll;
background: black;
color:LawnGreen;
padding: 10px 16px;
border-radius: 2px;
border-top: 4px solid #00aeef;
-moz-box-shadow: inset 0 0 10px #000;
box-shadow: inset 0 0 10px #000;
@gojimmypi
gojimmypi / gist:b281469dcbe9e6d8efd00be7ce18d222
Created February 2, 2017 02:27 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@gojimmypi
gojimmypi / Using-AVRDragon.rst
Created November 26, 2015 16:20 — forked from blakerohde/Using-AVRDragon.rst
Notes for using the AVRDragon with an Arduino Duemilanove and/or other compatible AVR chips.

Using AVRDragon

Hardware Setup

  1. For Arduino Duemilanove:Make sure RESET-EN jumper is broken.
  2. Power on AVRDragon via USB.
  3. Connect ISCP cable with ribbon end pointing towards USB ports of Arduino and AVRDragon.
  4. Power on Arduino via external power source.