Skip to content

Instantly share code, notes, and snippets.

View jeffreymorganio's full-sized avatar
💭
👨🏻‍💻

Jeffrey Morgan jeffreymorganio

💭
👨🏻‍💻
View GitHub Profile
@jeffreymorganio
jeffreymorganio / .block
Last active June 14, 2016 07:03
A marker on a Leaflet JS map.
license: mit
@jeffreymorganio
jeffreymorganio / update-last-git-commit-message.sh
Created February 26, 2016 19:06
Update last git commit message.
git commit --amend -m "Updated commit message."
@jeffreymorganio
jeffreymorganio / start-mongodb-with-conf.sh
Created January 31, 2016 15:22
Start MongoDB with a configuration file
mongod --config /path/to/mongod.conf
@jeffreymorganio
jeffreymorganio / zero-fill-empty-space.sh
Created January 31, 2016 15:02
Fill empty disk space with zeros on UNIX.
cat /dev/zero > zeros.txt
rm zeros.txt
@jeffreymorganio
jeffreymorganio / become-another-user-on-ubuntu.sh
Created January 26, 2016 10:27
Become another user on Ubuntu
sudo -u <username> bash
@jeffreymorganio
jeffreymorganio / world-bounding-box.geojson
Created October 6, 2015 08:55
Longitude and latitude bounding box around the world
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeffreymorganio
jeffreymorganio / uk-bounding-box.geojson
Created October 6, 2015 08:53
Longitude and latitude bounding box around the UK
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeffreymorganio
jeffreymorganio / delete-git-tag.sh
Created August 15, 2015 17:38
Delete a git tag and remove it from GitHub
git tag -d v1.0.0
git tag
git push origin :refs/tags/v1.0.0
@jeffreymorganio
jeffreymorganio / add-git-tag.sh
Created August 15, 2015 17:36
Add a git tag and upload it to GitHub
git tag v1.0.0
git tag
git push origin --tags
@jeffreymorganio
jeffreymorganio / fix-npm-permissions.sh
Created August 10, 2015 16:08
Fix the npm permissions problem when it can't install any dependencies.
sudo chown -R $USER ~/.npm
sudo chown -R $USER /usr/local/lib/node_modules