Skip to content

Instantly share code, notes, and snippets.

View jasonm's full-sized avatar

Jason Morrison jasonm

View GitHub Profile
hey test
XMLHttpRequest cannot load https://view-api.box.com/proxy/--hash-goes-here--/info.json. The 'Access-Control-Allow-Origin' header contains the invalid value '*, *'. Origin 'https://my-local-box.dev' is therefore not allowed access.
" Opens an edit command with the path of the currently edited file filled in
" Normal mode: <Leader>e
map <Leader>e :e <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR>
" Opens a tab edit command with the path of the currently edited file filled in
" Normal mode: <Leader>te
map <Leader>te :tabe <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR>
" Opens a vsplit command with the path of the currently edited file filled in
" Normal mode: <Leader>ve
" http://stackoverflow.com/questions/762515/vim-remap-key-to-toggle-line-numbering
" source: http://stackoverflow.com/questions/4387210/vim-how-to-map-two-tasks-under-one-shortcut-key
let g:relativenumber = 0
set nonumber
set relativenumber
function! ToggleRelativeNumber()
if g:relativenumber == 0
let g:relativenumber = 1
set number
set norelativenumber
@jasonm
jasonm / .gitignore
Last active December 14, 2015 00:59
*.DS_Store
*.swp
*.swo

So this is nascent thing, linking CVEs to rubygems https://twitter.com/jm/status/301735569527033856

Service idea:

  • Send your Gemfile.lock to a service, get emailed when a pertinent CVE becomes known
  • Easy tie-in via GitHub OAuth and their webhook push API
  • Almost-as-easy tie-in for other platforms (storage and deploy) via after-commit hooks (efficient via etags)
{"followers"=>51,
"type"=>"User",
"url"=>"https://api.github.com/users/jasonm",
"gravatar_id"=>"8478f9ebe099ad853f022deeb2c1defe",
"html_url"=>"https://github.com/jasonm",
"gists_url"=>"https://api.github.com/users/jasonm/gists{/gist_id}",
"followers_url"=>"https://api.github.com/users/jasonm/followers",
"updated_at"=>"2013-01-20T00:41:57Z",
"email"=>"jason.p.morrison@gmail.com",
"hireable"=>true,
[/tmp/sbarro] xcodebuild -version
Xcode 4.2.1
Build version 4D502
[/tmp/sbarro] which gcc
/usr/bin/gcc
[/tmp/sbarro] gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 Free Software Foundation, Inc.