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
Aug 5 12:54:56 reza-X45U rsyslogd: [origin software="rsyslogd" swVersion="8.32.0" x-pid="584" x-info="http://www.rsyslog.com"] rsyslogd was HUPed | |
Aug 5 12:55:01 reza-X45U CRON[2150]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) | |
Aug 5 12:55:55 reza-X45U anacron[590]: Job `cron.daily' terminated | |
Aug 5 12:55:55 reza-X45U anacron[590]: Normal exit (1 job run) | |
Aug 5 13:00:32 reza-X45U systemd-resolved[473]: Grace period over, resuming full feature set (UDP+EDNS0) for DNS server 192.168.1.1. | |
Aug 5 13:00:34 reza-X45U /usr/lib/gdm3/gdm-x-session[1140]: (EE) event5 - ETPS/2 Elantech Touchpad: libinput bug: invalid tap event TAP_EVENT_PALM in state TAP_STATE_TAPPED | |
Aug 5 13:01:14 reza-X45U systemd-resolved[473]: Grace period over, resuming full feature set (UDP+EDNS0) for DNS server fe80::1%3. | |
Aug 5 13:01:14 reza-X45U systemd-resolved[473]: Using degraded feature set (UDP) for DNS server fe80::1%3. | |
Aug 5 13:01:15 reza-X45U systemd-resolved[473]: Server returned error NXDOMAIN, mitigating |
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
15:55:20 kernel: UDF-fs: INFO Mounting volume 'NEW', timestamp 2019/07/03 14:39 (1000) | |
15:55:08 kernel: rfkill: input handler disabled | |
15:55:03 kernel: Bluetooth: RFCOMM ver 1.11 | |
15:54:01 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready | |
15:54:01 kernel: wlp1s0: associated | |
15:54:00 kernel: IPv6: ADDRCONF(NETDEV_UP): wlp1s0: link is not ready | |
15:53:56 kernel: Bluetooth: BNEP socket layer initialized | |
15:53:56 kernel: usb 2-3: SerialNumber: Alaska Day 2006 | |
15:53:53 kernel: audit: type=1400 audit(1565004233.360:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/evince//sanitized_helper" pid=522 comm="apparmor_parser" | |
15:53:52 kernel: [drm] Initialized radeon 2.50.0 20080528 for 0000:00:01.0 on minor 0 |
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
insert into "public"."wedding_text_category" ( "id", "description", "seo_description", "short_description", "card_link", "inserted_at", "static_price", "dynamic_price", "title", "seo_alias_link", "updated_at", "pic_one_link", "pic_one_two", "cat_category_id", "seo_words") values ( 'b689f030-7259-4ed9-a0e9-a93c3a228e83', 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد. کتابهای زیادی در شصت و سه درصد گذشته', 'تست', 'تست', 'تس', '2018-12-02 16:50:33', '200', '100', 'متن دعوت', 'متن-دعوت', '2018-12-28 12:38:01', 'http://localhost:4000/images/ending-card.png', 'تس', '56f3c7d2-b182-4919-977c-014d632e6ee6', 'تستشس'); | |
insert into "public"."wedding_text_category" ( "id", "description", "seo_description", "short_description", "card_link", "inserted_at", "static_price", "dynamic_price", "title", "seo_alias_link", "upd |
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
def zarinpal_status(status) do | |
output = case status do | |
"-1" -> {:error, "متاسفانه اطلاعات ارسال شده ناقص می باشد. این مشکل در زمانی اتفاق می افتد که مراحل سایت را انجام نداده باشید."} | |
"-2" -> {:error, "مدیریت محترم این خطا در زمانی اتفاق می افتد که آیپی و کد مرچند شما که از زرین پال دریافت کرده اید مشکل داشته باشد."} | |
"-3" -> {:error, "متاسفانه فرمت مبلغ وارد شده اشتباه می باشد لطفا دوباره تلاش فرمایید."} | |
"-4" -> {:error, "سطح سترسی حساب متصل شده به سایت کمتر از حساب نوع نقره ای می باشد لطفا با پشتیبانی زرین پال در ارتباط باشید."} | |
"-11" -> {:error, "متاسفانه شماره کارت شما نا معتبر می باشد لطفا دوباره تلاش فرمایید."} | |
"-12" -> {:error, "متاسفانه موجودی حساب شما کافی نمی باشد. لطفا حساب و مراحل پرداخت خود را دوباره بررسی نمایید."} | |
"-13" -> {:error, "متاسفانه رمز کارت شما صحیح نمی باشد. لطفا مراحل پرداخت را دوباره انجام بدهید."} | |
"-14" -> {:error, "متاسفانه شما چندین بار رمز کارت خود را به اشتباه وارد کردید لطفا در روز دیگیری تلاش کنیدو همینطور چک بفرمایید کارت |
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
defmodule TrangellCmsService.Cms.Db.LearnPost do | |
use Ecto.Schema | |
import Ecto.Changeset | |
@primary_key {:id, :binary_id, autogenerate: true} | |
@foreign_key_type :binary_id | |
schema "cms_learn_post" do |
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
def load_all_records_by_category(category_alias_link) do | |
with %{id: category_id} <- get_changelog_category_by_alias_link(category_alias_link), | |
versions <- load_all_versions_by_category(category_id), | |
[%{id: last_version_id}] <- Enum.take(versions, -1), | |
records <- load_records_by_version_in_category(category_id, last_version_id), | |
count <- count_all_posts_in_category(category_id) do | |
%{category_versions: versions, records: records, count: count} | |
else |
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
def query2(category_id) do | |
with [%{id: max_version_id}|_] = versions <- versions(category_id), | |
counts <- counts(category_id, max_version_id), | |
records <- records(max_version_id) do | |
IO.inspect max_version_id | |
%{counts: counts, versions: versions, records: records} | |
else | |
_ -> | |
nil | |
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
defmodule TrangellCmsService.Cms.Db.Post do | |
use Ecto.Schema | |
import Ecto.Changeset | |
@foreign_key_type :binary_id | |
schema "cms_post" do | |
field :title, :string, null: false |