Skip to content

Instantly share code, notes, and snippets.

View query-string's full-sized avatar
🏠
Working from home

Alex Timofeev query-string

🏠
Working from home
View GitHub Profile
@query-string
query-string / gist:fe9f33e1abea73dd1b1d
Created June 16, 2015 02:40
Sunny Portal signature generation method
using System;
using System.Text;
using System.Security.Cryptography;
using System.Web;
namespace SPortal
{
static class MainClass
{
@query-string
query-string / gist:888c791d1f34748a0cbf
Created June 18, 2015 05:04
Sunny Portal signature generation method
require "openssl"
require "base64"
require "cgi"
class SunnyPortal
def initialize
@api_service = "plantlist"
@key = ENV["KEY"]
@identifier = ENV["IDENTIFIER"]
@query-string
query-string / gist:6d59f9e61cb8897f6c1a
Created December 18, 2015 08:29
Detach a ruby process with Capistrano 3
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