Skip to content

Instantly share code, notes, and snippets.

View kanishkablack's full-sized avatar
🤣
copied from gitlab

Hari Kishan Reddy kanishkablack

🤣
copied from gitlab
View GitHub Profile
Operating System: macOS"
CPU Information: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Number of Available Cores: 8
Available memory: 16 GB
Elixir 1.7.0-dev
Erlang 21.0
Benchmark suite executing with the following configuration:
warmup: 5 s
time: 30 s
config :phoenix, :json_library, Poison
config :phoenix, :json_library, Jason
config :phoenix, :json_library, Phoenix.Jiffy
@kanishkablack
kanishkablack / file.ex
Created March 7, 2019 08:48
Elixir migration from Poison to Jason/Jiffy
Poison.decode(payload)
Jason.decode(payload)
Jiffex.decode(payload)
@kanishkablack
kanishkablack / .gitlab-ci.yml
Created December 24, 2018 12:16
Gitlab Building docs
docs-md:
stage: deploy
allow_failure: true
script:
- git clone {repo} doc
- rm -rf doc/*
- mix deps.get
- mix docs -f md
- cd doc
- git config --global user.email "ops@ahamtech.in"
deploy:
image: elixir:1.7
before_script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_C" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh
@kanishkablack
kanishkablack / gitlab-ci.yml
Created November 29, 2018 08:00
phoenix gitlab ci/cd sample mix test
image: elixir:latest
services:
- postgres:latest
variables:
POSTGRES_DB: test_test
POSTGRES_HOST: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "postgres"

Instances

Micro Costs Instance Active concurrency Monthly Total
0.0076 EUR / hour 4 hours 5 25 days 3.8 EUR

Storage S3 API

| Storage | Tranfer (OUT) |

defmodule Application.Router do
use Application.Web, :router
scope "/", Application do
post "/#{botkey}",PageController, :index
end
end
defmodule Application.Router do
use Application.Web, :router
scope "/", Application do
post "/#{botkey}",PageController, :index
end
end