Skip to content

Instantly share code, notes, and snippets.

View vdw's full-sized avatar

Dimitris Krestos vdw

View GitHub Profile
@vdw
vdw / gist:5205268
Last active December 15, 2015 04:59
Sublime Text 2 basic user settings

Sublime Text 2 basic user settings

Preferences.sublime-settings

{
	"auto_complete": true,
	"auto_complete_commit_on_tab": false,
	"auto_complete_delay": 50,
	"auto_complete_selector": "source - comment",
	"auto_complete_size_limit": 4194304,
@vdw
vdw / gist:5146681
Last active December 14, 2015 20:49
Basic Git commands

Basic Git commands

git init Initiate git in an existing project.

git clone git@repository_ssh Clone a project (you do not have to create a folder).

git add . Add any new files under version control.

git commit -am 'This is a message.' Commit the changes.

@vdw
vdw / gist:5093828
Last active December 19, 2016 22:36
Install RVM on Ubuntu from scratch

Install RVM on Ubuntu 12 from scratch

Clean up

1) Run the following commands to remove rvm:
rvm implode
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
2) Run the sudo apt-get --purge remove ruby-rvm command to remove ruby.

Install RVM

@vdw
vdw / gist:3748557
Last active October 10, 2015 20:48
Basic CSS shortner rules

Basic CSS shortner rules

1) Trim white spaces

2) Remove new lines (/n) ~> single line

3) Remove last semi-column (;)

4) Hexadecimal color:

  • #FFFFFF becomes #fff (color is case-insensitive)