Skip to content

Instantly share code, notes, and snippets.

@adeleinr
adeleinr / Git Cheatsheet
Last active February 19, 2019 04:10 — forked from hofmannsven/README.md
Using Git
===============
Global Settings
-----------
Setup autocomplete tools: brew install git bash-completion
Then add this to ~/.bash_profile :
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
@adeleinr
adeleinr / gist:822911
Created February 11, 2011 20:03 — forked from Oshuma/gist:24803
Flush DNS Cache
Flush DNS Cache
OSX (10.5)
----------
dscacheutil -flushcache
Windows
-------
C:\>ipconfig /flushdns
@adeleinr
adeleinr / gist:672140
Created November 11, 2010 07:12 — forked from anonymous/gist:156623
django deployment
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._
@adeleinr
adeleinr / VimCommands.txt
Created April 16, 2010 05:55 — forked from actaneon/VimCommands.txt
Vim Cheatsheet
http://vim.wikia.com/wiki/
GREP STUFF
==========
The :substitute command searches for a text pattern, and replaces it with a text string. There are many options, but these are what you probably want:
:%s/foo/bar/g
Find each occurrence of 'foo', and replace it with 'bar'.
:%s/foo/bar/gc
@adeleinr
adeleinr / Web product guidelines
Created November 5, 2009 23:00 — forked from leah/Web product guidelines
A Web Product's Must Do
- simple
- public over private
- personal vanity
- internet is global
- permalinks
- one important item per page
- don't break the browser
- don't wanker in technology
- a medium is not a grande
- break convention for your users