This file contains 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
"Simple vimrc. | |
filetype plugin indent on | |
syntax on | |
set softtabstop=2 | |
set shiftwidth=2 | |
set scrolloff=10 | |
set expandtab | |
"set smartindent | |
set smarttab |
This file contains 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
#!/usr/bin/ruby | |
require 'net/https' | |
require 'json' | |
require 'yaml' | |
slack_cfg = YAML.load_file("/root/.slackrc.yml") | |
#uri = URI.parse("https://#{slack_cfg['team']}.slack.com/services/hooks/incoming-webhook?token=#{slack_cfg['token']}") | |
uri = URI.parse(slack_cfg['hook_url']) |