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
# nginx Configuration File | |
# http://wiki.nginx.org/Configuration | |
# Run as a less privileged user for security reasons. | |
user forge; | |
# How many worker threads to run; | |
# "auto" sets it to the number of CPU cores available in the system, and | |
# offers the best performance. Don't set it higher than the number of CPU | |
# cores if changing this parameter. |
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
# FORGE CONFIG (DO NOT REMOVE!) | |
include forge-conf/{{ SITE }}/before/*; | |
upstream zammad-railsserver { | |
server 127.0.0.1:3000; | |
} |
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
<VirtualHost *:443> | |
ServerName lmkticket.amepheas.at | |
SSLEngine on | |
SSLCertificateFile /appl/apache2/ssl/apache-selfsigned.crt | |
SSLCertificateKeyFile /appl/apache2/ssl/apache-selfsigned.key | |
ServerAdmin [email protected] | |
ScriptAlias /cgi-bin/ "/appl/apache2/cgi-bin/" | |
ScriptAlias /amepheas/ "/appl/amepheas/bin/amepheas.fcgi/" | |
AddHandler fastcgi-script .fcgi |
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
Create /etc/nginx/cloudflare.conf with following content | |
``` | |
allow 173.245.48.0/20 ; | |
allow 103.21.244.0/22 ; | |
allow 103.22.200.0/22 ; | |
allow 103.31.4.0/22 ; |
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
from suds.client import Client | |
client = Client('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl') | |
# Returns a dict-like object with the fields 'countryCode', 'vatNumber', | |
# 'requestDate', 'valid' (boolean), 'name', and 'address'. | |
result = client.service.checkVat('IE', '6390845P') |
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
<style> | |
[data-custom-class='body'], [data-custom-class='body'] * { | |
background: transparent !important; | |
} | |
[data-custom-class='title'], [data-custom-class='title'] * { | |
font-family: Arial !important; | |
font-size: 26px !important; | |
color: #000000 !important; | |
} | |
[data-custom-class='subtitle'], [data-custom-class='subtitle'] * { |
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
/* | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.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
# This is my implmentation of calculating Global Average Symmetric Price (GASP) as it's mentioned in this video: https://www.youtube.com/watch?v=wpmTuNvGQjQ | |
# Presenter in the video doesn't explain briefly how to calculate the GASP, but, I kinda figured it out myself | |
order_book = { | |
'bids': [ | |
[97, 0.1], | |
[96, 0.2], | |
[95, 6] | |
], |
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
create database price_history_db | |
CREATE CONTINUOUS QUERY "cq_1m" ON "price_history_db" BEGIN SELECT MIN(price) as low, MAX(price) as high, FIRST(price) as open, LAST(price) as close, SUM(size) as volume INTO "price_1m" FROM "trade" GROUP BY time(1m), symbol END | |
CREATE CONTINUOUS QUERY "cq_5m" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_5m" FROM "price_1m" GROUP BY time(5m), symbol END | |
CREATE CONTINUOUS QUERY "cq_15m" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_15m" FROM "price_5m" GROUP BY time(15m), symbol END | |
CREATE CONTINUOUS QUERY "cq_1h" ON "price_history_db" BEGIN SELECT MIN(low) as low, MAX(high) as high, FIRST(open) as open, LAST(close) as close, SUM(volume) as volume INTO "price_1h" FROM "price_15m" GROUP BY time(1h), symbol END | |
CREATE CONTINUOUS QUERY "cq_6h" ON "price_history_db" BEGIN SELECT |
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
<?php | |
return [ | |
'subject' => 'Տվյալ', | |
'subject_plural' => 'Տվյալներ', | |
'add_item' => 'Ավելացնել {subject}ը', | |
'edit_item' => 'Խմբագրել {subject}ը', | |
'view_item' => 'Բացել {subject}ը', | |
'edit' => 'Խմբագրել', | |
'view' => 'Բացել', |
NewerOlder