Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bring dotfiles up to date. it’s been far too long

  • Loading branch information...
commit 7769e4721f3564efac3157a29cf9358e26c74bc9 1 parent 6de66ca
@cobyism authored
View
1  Rakefile
@@ -39,6 +39,7 @@ task :install do
# TODO
# - Install oh-my-zsh
# - Install scm_breeze (Or try better git aliases?)
+ # - Install dotjs
end
task :uninstall do
View
13 alfred/extensions/scripts/GitHub/bin/github
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+
+$:.unshift(File.expand_path('../../lib', __FILE__))
+
+require 'github'
+
+cli = GitHub::Cli.new(ARGV)
+
+if cli.command === :none
+ puts cli.display_usage
+else
+ cli.open_in_browser
+end
View
BIN  alfred/extensions/scripts/GitHub/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
49 alfred/extensions/scripts/GitHub/info.plist
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>action</key>
+ <false/>
+ <key>category</key>
+ <string>SCRIPTS</string>
+ <key>command</key>
+ <string># GitHub extension, 0.0.1
+# USAGE:
+# github
+# github &lt;username&gt;
+# github &lt;username&gt;/&lt;repository&gt;
+# github /&lt;search_term&gt;
+
+export ALFRED=1 &amp;&amp; bin/github {query}</string>
+ <key>disabled</key>
+ <false/>
+ <key>escapequery</key>
+ <true/>
+ <key>escapequerybackquotes</key>
+ <true/>
+ <key>escapequerybrackets</key>
+ <true/>
+ <key>escapequeryquotes</key>
+ <true/>
+ <key>escapequerysemicolons</key>
+ <true/>
+ <key>growloutput</key>
+ <true/>
+ <key>growloutputsticky</key>
+ <false/>
+ <key>keyword</key>
+ <string>gh</string>
+ <key>logging</key>
+ <false/>
+ <key>multifileargs</key>
+ <false/>
+ <key>parameter</key>
+ <integer>0</integer>
+ <key>silent</key>
+ <true/>
+ <key>subtitle</key>
+ <string>Open a specific user or repository or search GitHub itself.</string>
+ <key>title</key>
+ <string>GitHub</string>
+</dict>
+</plist>
View
10 alfred/extensions/scripts/GitHub/kudos.plist
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>creator</key>
+ <string>Kevin Sjöberg</string>
+ <key>website</key>
+ <string>http://ksjoberg.com</string>
+</dict>
+</plist>
View
4 alfred/extensions/scripts/GitHub/lib/github.rb
@@ -0,0 +1,4 @@
+$:.unshift(File.expand_path('..', __FILE__))
+
+require 'github/cli'
+require 'github/url'
View
34 alfred/extensions/scripts/GitHub/lib/github/cli.rb
@@ -0,0 +1,34 @@
+module GitHub
+ class Cli
+ attr_accessor :input, :command, :command_value
+
+ def initialize(args)
+ @input = args.join(' ')
+ @command, @command_value = parse_input(@input)
+ end
+
+ def parse_input(string)
+ case string
+ when /(^\w+$)/
+ [:username, $1]
+ when /(^\w+\/[\w.-]+$)/
+ [:repository, $1]
+ when /^\/(.*)/
+ [:search, $1]
+ else
+ [:none]
+ end
+ end
+
+ def display_usage
+ ['github <username>',
+ 'github <username>/<repository>',
+ 'github <search_term>'
+ ].join("\n")
+ end
+
+ def open_in_browser
+ `open #{GitHub::URL.new(@command, @command_value).get}`
+ end
+ end
+end
View
21 alfred/extensions/scripts/GitHub/lib/github/url.rb
@@ -0,0 +1,21 @@
+module GitHub
+ class URL
+ BASE_URL = 'https://github.com'
+
+ attr_accessor :generate
+
+ def initialize(context, fragment)
+ @fragment = fragment.gsub(/\s/, '+')
+
+ @url = if context === :search
+ File.join(BASE_URL, "search?q=#{@fragment}")
+ else
+ File.join(BASE_URL, @fragment)
+ end
+ end
+
+ def get
+ @url
+ end
+ end
+end
View
2  bin/1p-gh
@@ -0,0 +1,2 @@
+#!/bin/sh
+open ~/Dropbox/GitHub/Creds/Legacy/1Password.agilekeychain
View
5 dotjs/js.symlink/news.ycombinator.com.js
@@ -0,0 +1,5 @@
+// Highlight articles on/about GitHub
+$('span, a, p').filter(':contains("github")')
+ .css('background-color', '#ffff66')
+$('span, a, p').filter(':contains("GitHub")')
+ .css('background-color', '#ffff66')
View
12 sublime/User/Fetch.sublime-settings
@@ -0,0 +1,12 @@
+{
+ "files":
+ {
+ "jquery": "http://code.jquery.com/jquery.min.js",
+ "normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css"
+ },
+ "packages":
+ {
+ "html5_boilerplate": "https://github.com/h5bp/html5-boilerplate/zipball/master",
+ "wordpress": "http://wordpress.org/latest.zip"
+ }
+}
View
11 sublime/User/Package Control.sublime-settings
@@ -1,7 +1,8 @@
{
- "auto_upgrade_last_run": 1346723544,
+ "auto_upgrade_last_run": 1352132669,
"installed_packages":
[
+ "AdvancedNewFile",
"Alignment",
"CoffeeScript",
"ColorPicker",
@@ -9,15 +10,23 @@
"Gist",
"Git",
"Haml",
+ "Nettuts+ Fetch",
"Package Control",
+ "Prefixr",
"Sass",
"SCSS",
+ "SideBarEnhancements",
"SideBarGit",
+ "SublimeLinter",
"Tag",
"Theme - Aqua",
"Theme - Soda",
"TrailingSpaces",
"VintageEx",
"ZenCoding"
+ ],
+ "repositories":
+ [
+ "https://github.com/sergeche/emmet-sublime"
]
}
View
51 sublime/User/SideBarEnhancements/Open With/Side Bar.sublime-menu
@@ -0,0 +1,51 @@
+[
+ {"id": "side-bar-files-open-with",
+ "children":
+ [
+
+ //application 1
+ {
+ "caption": "Photoshop",
+ "id": "side-bar-files-open-with-photoshop",
+
+ "command": "side_bar_files_open_with",
+ "args": {
+ "paths": [],
+ "application": "/Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app", // OSX
+ "application": "Adobe Photoshop CS6.app", // OSX
+ "extensions":"psd|png|jpg|jpeg" //any file with these extensions
+ }
+ },
+
+ //separator
+ {"caption":"-"},
+
+ //application 2
+ {
+ "caption": "SeaMonkey",
+ "id": "side-bar-files-open-with-seamonkey",
+
+ "command": "side_bar_files_open_with",
+ "args": {
+ "paths": [],
+ "application": "C:\\Archivos de programa\\SeaMonkey\\seamonkey.exe", // WINNT
+ "extensions":"" //open all even folders
+ }
+ },
+ //application n
+ {
+ "caption": "Chrome",
+ "id": "side-bar-files-open-with-chrome",
+
+ "command": "side_bar_files_open_with",
+ "args": {
+ "paths": [],
+ "application": "C:\\Documents and Settings\\tito\\Configuración local\\Datos de programa\\Google\\Chrome\\Application\\chrome.exe",
+ "extensions":".*" //any file with extension
+ }
+ },
+
+ {"caption":"-"}
+ ]
+ }
+]
View
4 vim/vimrc.symlink
@@ -38,10 +38,10 @@ set guioptions=aAce
set number
set ruler
set laststatus=2
-set guifont=Consolas:h16
+" set guifont=Consolas:h16
" set guifont=PanicSans:h12
" set guifont=Inconsolata:h14
-" set guifont=Menlo:h14
+set guifont=Menlo:h14
syntax on
" Other settings
View
1  zsh/aliases.zsh
@@ -1,4 +1,5 @@
alias sz='source ~/.zshrc'
alias ss='script/server'
+alias sc='script/console'
alias j='jekyll'
alias js='jekyll --server --auto'
View
4 zsh/prompt.zsh
@@ -6,8 +6,8 @@ function prompt_char {
git branch >/dev/null 2>/dev/null && echo '±' && return
hg root >/dev/null 2>/dev/null && echo '' && return
# echo '○'
- # echo '➜'
- echo ''
+ echo ''
+ # echo '⚡'
# echo '➤'
# echo '❯'
# echo '⌁'
Please sign in to comment.
Something went wrong with that request. Please try again.