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
ls -l . | egrep -c '^-' |
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
on roles(:web) do | |
within "#{fetch(:deploy_to)}/current/" do | |
with RAILS_ENV: fetch(:rails_env) do | |
execute :bundle, :exec, "nohup rake slack:listen > /dev/null 2>&1 &", pty: false | |
end | |
end | |
end |
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
require "openssl" | |
require "base64" | |
require "cgi" | |
class SunnyPortal | |
def initialize | |
@api_service = "plantlist" | |
@key = ENV["KEY"] | |
@identifier = ENV["IDENTIFIER"] |
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
using System; | |
using System.Text; | |
using System.Security.Cryptography; | |
using System.Web; | |
namespace SPortal | |
{ | |
static class MainClass | |
{ |