Skip to content

Instantly share code, notes, and snippets.

class DeployGate
def self.invite user_name, api_fragment, app_id, token
invite_api_url = "https://deploygate.com/api/users/#{account_name}/#{api_fragment}/#{app_id}/members"
%x(curl '#{invite_api_url}' -F 'users=[#{user_name}]' -F 'token=#{token}' -F role=2)
end
def self.upload file_path, token
%x(curl 'https://deploygate.com/api/users/#{account_name}/apps' -F 'file=@#{file_path}' -F 'token=#{token}')
end
end
@masaakif
masaakif / grep_menuitem.vim
Last active October 28, 2022 13:28 — forked from scrooloose/grep_menuitem.vim
nerdtree menu plugin to grep under selected directory. : Forked from http://gist.github.com/205807
"shove this in ~/.vim/nerdtree_plugin/grep_menuitem.vim
"
" Add 'g' menu items to grep under selected directory.
" 'g' : prompts the user to type search pattern under selected dir.
" use parent directory if file is selected.
" This uses ':grep'.
"
" For ripgrep user,
" NERDTreeRipGrepDirectory function is much, much faster.
" Requirements: