This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "deploy", | |
"comment": "Deploy User", | |
"groups": ["sysadmin","devops","developers"], | |
"email": "email of user", | |
"shell": "\/bin\/zsh", | |
"home": "\/home\/deploy", | |
"ssh_keys": ["public ssh key"], | |
"ssh_keygen": false, | |
"dotfiles": "https://github.com/username/dotfiles.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "git" | |
search( :users, "dotfiles:*" ).each do |u| | |
user_id = u["id"] | |
directory "/home/#{user_id}/bin" do | |
owner user_id | |
group user_id | |
mode "0755" | |
action :create | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name "base" | |
description "base role" | |
run_list [ | |
"recipe[chef-solo-search]", | |
"recipe[apt]", | |
"recipe[apt-update]", | |
"recipe[ntp]", | |
"recipe[git]", | |
"recipe[zsh]", | |
"recipe[tmux]", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newpost() { | |
middleman article $1 | |
vim `gsts |awk '{print \$2}'` | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "iTerm" | |
set myterm to (make new terminal) | |
tell myterm | |
set mysession to (make new session at the end of sessions) | |
tell mysession | |
set name to "Blog" | |
exec command "/usr/local/bin/zsh" | |
end tell | |
tell the last session | |
write text "mux blogs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Search Dash for word under cursor | |
function! SearchDash() | |
let s:browser = "/usr/bin/open" | |
let s:wordUnderCursor = expand("<cword>") | |
let s:currentFileType = &filetype | |
let s:url = "dash://".s:currentFileType.":".s:wordUnderCursor | |
let s:cmd ="silent ! " . s:browser . " " . s:url | |
execute s:cmd | |
redraw! | |
endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Concentrate" | |
if concentrating then | |
stop concentrating | |
else | |
tell activity "{query}" | |
concentrate | |
end tell | |
end if | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xml = items.select {|item| item[:title].downcase.start_with?(ARGV[0].downcase) }.map { |item| "<item uid=\"activity\" arg=\"#{item[:title]}\"><title>#{item[:title]}</title><subtitle>Concentrate on #{item[:title]}</subtitle><icon>icon.png</icon></item>"}.join('') | |
puts "<items>#{xml}</items>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items = `osascript ./list.scpt`.gsub(/activity /, '').gsub(/\n/, '').split(/. /).map { |item| {:title => item.to_s }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Concentrate" | |
every activity | |
end tell |