Skip to content

Instantly share code, notes, and snippets.


Alexey Skoblikov almays

View GitHub Profile
View vk.ex
defmodule CoherenceAssent.Strategy.VK do
alias CoherenceAssent.Strategy.Helpers
alias CoherenceAssent.Strategies.OAuth2, as: OAuth2Helper
def authorize_url(conn, config) do
OAuth2Helper.authorize_url(conn, set_config(config))
def callback(conn, config, params) do
config = set_config(config)
almays / gist:3928668
Created Oct 21, 2012
Unix conf: Sendy nginx rewrite rules
View gist:3928668
index index.php index.html;
root /your/path/to/the/sendy;
location = / {
index index.php;
location / {
if (!-f $request_filename){
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php last;