I hereby claim:
- I am solisoft on github.
- I am solisoft (https://keybase.io/solisoft) on keybase.
- I have a public key ASBwAVlHY7lCxAqmsYdT_oq5hh8cRh9Fbgr25LZKUe8_Xwo
To claim this, I am signing this object:
package.path = package.path .. ";.lua/?.lua" | |
local db_config = { | |
db_name = "db_delupay", | |
url = "http://localhost:8529", | |
username = "root", | |
password = "3fe2003d-6f42-474f-aa43-1dde7a2a2bf1" | |
} | |
redis = require 'redis' |
<!DOCTYPE html> | |
<html lang="{{ lang }}"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
@headers | |
<link rel="stylesheet" href="@css_vendors" /> | |
<link rel="stylesheet" href="@css" /> | |
</head> | |
<body> |
LET docs = (FOR doc IN @@collection SORT doc._key RETURN doc) | |
FOR i IN (0..(LENGTH(docs) - 1)) | |
LET doc = docs[i] | |
UPDATE({ _key: doc._key, order: i }) IN @@collection |
version: '3' | |
services: | |
arangodb: | |
image: arangodb:3.4.1 | |
restart: always | |
environment: | |
ARANGO_ROOT_PASSWORD: XXXX | |
volumes: | |
- db-data:/var/lib/arangodb3 |
require 'net/http' | |
require 'json' | |
DB_USER_SRC = 'root'.freeze | |
DB_USER_DST = 'root'.freeze | |
DB_PASS_SRC = 'XXXX'.freeze | |
DB_PASS_DST = 'XXXX'.freeze | |
DB_ENDPOINT_SRC = 'http+tcp://0.0.0.0:8529'.freeze | |
DB_ENDPOINT_DST = 'http+tcp://0.0.0.0:9529'.freeze | |
DUMP_PATH = '/home/dump/'.freeze # must exist |
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
const db = require('@arangodb').db; | |
const joi = require('joi'); | |
const _ = require('lodash'); | |
const createRouter = require('@arangodb/foxx/router'); | |
const router = createRouter(); | |
const querystring = require('querystring'); | |
const crypt = require('@arangodb/crypto'); | |
const fs = require("fs") |
'use strict'; | |
const db = require('@arangodb').db; | |
const joi = require('joi'); | |
const createRouter = require('@arangodb/foxx/router'); | |
const sessionsMiddleware = require('@arangodb/foxx/sessions'); | |
const jwtStorage = require('@arangodb/foxx/sessions/storages/jwt'); | |
const createAuth = require('@arangodb/foxx/auth'); | |
const auth = createAuth(); | |
const router = createRouter(); |
curl -fsSL https://gist.github.com/FiveYellowMice/c50490693d47577cfe7e6ac9fc3bf6cf.txt | PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig:/usr/lib/pkgconfig rbenv install --patch 1.9.3-p551 |
require "kemal" | |
require "jwt" | |
require "json" | |
require "yaml" | |
require "arangocr" | |
require "redis" | |
# Load .env file | |
env_data = YAML.parse File.read(".env.yml") rescue Hash(String, String).new | |
env_data.each { |k, v| ENV[k.to_s] = v.to_s } |