Skip to content

Instantly share code, notes, and snippets.

View intuxicated's full-sized avatar

Daniel Niknam intuxicated

View GitHub Profile
@intuxicated
intuxicated / postgresql_run.sh
Created July 6, 2016 13:19
run it services
#!/bin/sh
# Use the exec command to start the app you want to run in this container.
# Don't let the app daemonize itself.
# `/sbin/setuser memcache` runs the given command as the user `memcache`.
# If you omit that part, the command will be run as root.
# Read more here: https://github.com/phusion/baseimage-docker#adding-additional-daemons
exec /sbin/setuser postgres /usr/lib/postgresql/9.5/bin/postgres -D /usr/local/pgsql/data
@intuxicated
intuxicated / cow.on.ini
Created September 23, 2016 05:20
cow proxy config for circus
[watcher:cow]
cmd = /usr/local/bin/cow
uid = danial
gid = danial
numprocesses = 1
debug = true
stdout_stream.class = FileStream
stdout_stream.filename = /var/log/circus/cow.stdout.log
stdout_stream.time_format = %Y-%m-%d %H:%M:%S
{
"errors": {
"0": "تراكنش با موفقيت انجام شد",
"11": "شماره كارت نامعتبر است",
"12": "موجودي كافي نيست",
"13": "رمز نادرست است",
"14": "تعداد دفعات وارد كردن رمز بيش از حد مجاز است",
"15": "كارت نامعتبر است",
"16": "دفعات برداشت وجه بيش از حد مجاز است",
"17": "كاربر از انجام تراكنش منصرف شده است",