:emoji: Brief Overview
- Project Architecture Diagram.
- Long overview of project details and description.
- Performance benchmarks.
# frozen_string_literal: true | |
# To execute with optional user and api keys amount. | |
# rake generate:users -- -n=1000 | |
require 'faker' | |
namespace 'generate' do | |
desc 'Build Application container' | |
task :users => :environment do |
#!/usr/bin/env ruby | |
require File.join(ENV.fetch('RAILS_ROOT'), 'config', 'environment') | |
Rails.logger.level = Logger::FATAL | |
module Faraday | |
NUMBER_OF_REQUESTS = 10000 | |
class Ethereum |
#!/usr/bin/env ruby | |
# | |
# Author: Ali Shanaakh <[email protected]> | |
# Removes peatio orders, where prices less than min_ask_price. | |
# | |
# Usage: | |
# ./cancel_min_orders.rb | |
markets = ["usdeur"] |
#!/usr/bin/env ruby | |
# Author: Ali Shanaakh <[email protected]> | |
# Usage: debug.rb [options] | |
# -c, --client=CLIENT | |
# -a, --address=ADDRESS | |
# -n, --amount=AMOUNT | |
# -v, --verbose | |
require 'net/http' |
deposits = [ | |
{ member_id: 3, currency_id: :usd, amount: 1000 } | |
] | |
deposits.map do |d| | |
Deposits::Fiat.create!(d).tap(&:accept!) | |
end |
package main | |
// Author: Ali Shanaakh <[email protected]> | |
import ( | |
"encoding/json" | |
"errors" | |
"log" | |
"net/http" | |
"net/url" |
package main | |
// Author: Ali Shanaakh <[email protected]> | |
// Peatio SQL queries benchmark. | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"time" |
#!/bin/bash -ex | |
# Author: Ali Shanaakh <[email protected]> | |
check_vms() { | |
local PROJECT="gcloud-project" | |
local time=`date +%k%M` | |
local output=`gcloud compute --project "${PROJECT}" instances list --filter="labels.infinite: false" --format='table(name)'` | |
for instance in ${output[@]:4}; do | |
echo "Time now: $time" |
I hereby claim:
To claim this, I am signing this object: