Explorar o código

initial commit

Tom McKenzie %!s(int64=12) %!d(string=hai) anos
achega
86e3162c17

+ 27 - 0
.bashrc

@@ -0,0 +1,27 @@
+PS1="\[\e[1;32m\]\h:\W \u$\[\e[0m\] "
+PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
+if [[ -s /Users/tom/.rvm/scripts/rvm ]] ; then source /Users/tom/.rvm/scripts/rvm ; fi
+
+# cool aliases bro
+
+alias start-ubuntu='/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion start ~/Documents/Virtual\ Machines.localized/Ubuntu\ Server.vmwarevm nogui && open smb://ubuntu/share'
+alias start-http='python -m SimpleHTTPServer'
+alias restart-sound="sudo kill -9 `ps ax|grep 'coreaudio[a-z]' |awk '{print $1}'`"
+
+alias git-fancy-log="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative"
+alias git-timesheet='git log --pretty=format:"%C(yellow)%h%Creset  %C(green)%ad%Creset  %C(cyan)%s" --author="`git config --get user.name`" --since='6am''
+
+alias production='export RAILS_ENV=production'
+
+# some more ls aliases from ubuntu
+alias ll='ls -alF'
+alias la='ls -A'
+alias l='ls -CF'
+
+# ssh coloring
+ssh() {
+    if command ssh "$@"; then
+	# reset iTerm session to Default
+        echo -e "\033]50;SetProfile=Default\a"
+    fi
+}

+ 32 - 0
.gitignore

@@ -0,0 +1,32 @@
+### OSX ###
+.DS_Store
+.AppleDouble
+.LSOverride
+Icon
+
+# Thumbnails
+._*
+
+# Files that might appear on external disk
+.Spotlight-V100
+.Trashes
+
+### SublimeText ###
+*.sublime-workspace
+
+### Rails ###
+*.rbc
+*.sassc
+.sass-cache
+.rspec
+.rvmrc
+/.bundle
+/vendor/bundle
+/log/*
+/tmp/*
+/db/*.sqlite3
+/public/system/*
+/coverage/
+/spec/tmp/*
+**.orig
+.project

+ 20 - 0
Sublime2/User/BracketHighlighter.sublime-settings

@@ -0,0 +1,20 @@
+{
+  // Outline? (solid|outline|underline|none)
+  "quote_style" : "underline",
+  "curly_style" : "outline",
+  "round_style" : "outline",
+  "square_style": "outline",
+  "angle_style" : "outline",
+  "tag_style"   : "underline",
+
+  "no_multi_select_icons": true,
+
+  // Icon? (dot|circle|bookmark|quote|curly_bracket|round_bracket|square_bracket|angle_bracket|none)
+  "quote_icon" : "none",
+  "curly_icon" : "none",
+  "round_icon" : "none",
+  "square_icon": "none",
+  "angle_icon" : "none",
+  "tag_icon"   : "none"
+
+}

+ 10 - 0
Sublime2/User/Default (OSX).sublime-keymap

@@ -0,0 +1,10 @@
+[
+	{ "keys": ["ctrl+tab"], "command": "next_view" },
+	{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
+
+	{ "keys": ["super+shift+]"], "command": "next_view_in_stack" },
+	{ "keys": ["super+shift+["], "command": "prev_view_in_stack" },
+
+  { "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
+  { "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} }
+]

+ 20 - 0
Sublime2/User/Package Control.sublime-settings

@@ -0,0 +1,20 @@
+{
+	"auto_upgrade_last_run": null,
+	"installed_packages":
+	[
+		"BracketHighlighter",
+		"Emmet",
+		"GitGutter",
+		"Handlebars",
+		"HTML5",
+		"JsFormat",
+		"Markdown Preview",
+		"Minifier",
+		"Package Control",
+		"Sass",
+		"SublimeCodeIntel",
+		"SublimeLinter",
+		"Theme - Soda",
+		"Web Inspector"
+	]
+}

+ 58 - 0
Sublime2/User/Preferences.sublime-settings

@@ -0,0 +1,58 @@
+{
+	"close_windows_when_empty": true,
+	"color_scheme": "Packages/User/Monokai Soda.tmTheme",
+	"dictionary": "Packages/Language - English/en_GB.dic",
+	"file_exclude_patterns":
+	[
+		"*.pyc",
+		"*.pyo",
+		"*.exe",
+		"*.dll",
+		"*.obj",
+		"*.o",
+		"*.a",
+		"*.lib",
+		"*.so",
+		"*.dylib",
+		"*.ncb",
+		"*.sdf",
+		"*.suo",
+		"*.pdb",
+		"*.idb",
+		".DS_Store",
+		"*.class",
+		"*.psd",
+		"*.db",
+		".gitignore",
+		".gitkeep",
+		".rspec",
+		"Gemfile.lock",
+		"._*"
+	],
+	"font_family": "Inconsolata",
+	"font_size": 13.0,
+	"highlight_line": true,
+	"highlight_modified_tabs": true,
+	"ignored_packages":
+	[
+		"Vintage"
+	],
+	"indent_guide_options":
+	[
+		"draw_normal",
+		"draw_active"
+	],
+	"open_files_in_new_window": false,
+	"rulers":
+	[
+		80, 120
+	],
+	"scroll_past_end": true,
+	"show_full_path": true,
+	"tab_size": 2,
+	"theme": "Soda Dark.sublime-theme",
+	"translate_tabs_to_spaces": true,
+	"use_simple_full_screen": true,
+  "trim_trailing_white_space_on_save": true,
+  "ensure_newline_at_eof_on_save": true
+}

+ 18 - 0
Sublime2/User/SublimeLinter.sublime-settings

@@ -0,0 +1,18 @@
+{
+    "sublimelinter_mark_style": "none",
+    "sublimelinter_gutter_marks": true,
+    "jshint_options":
+    {
+        // "evil": true,
+        // "regexdash": true,
+        // "browser": true,
+        // "wsh": true,
+        "trailing": false,
+        // "sub": true
+        "smarttabs": true,
+        "eqeqeq": false,
+        "eqnull": false,
+        "asi": true
+        // "conditional_assignment": true // no work?
+    }
+}