I hereby claim:
- I am shal on github.
- I am ashanaakh (https://keybase.io/ashanaakh) on keybase.
- I have a public key ASD-VlrjNhs9HMGLGNSskJWsUlBNV7AesaPzeUisUlwicAo
To claim this, I am signing this object:
| # frozen_string_literal: true | |
| # Author: Ali Shanaakh <hi@shal.dev> | |
| require 'rubygems' | |
| require 'websocket-client-simple' | |
| require 'active_support/all' | |
| require 'jwt' | |
| # Create valid JWT |
| # My lables for github repositories | |
| # Author: Ali Shanaakh <hi@shal.dev> | |
| --- | |
| repo: your/repository | |
| labels: | |
| - name: 'Priority: Critical' | |
| color: e11d21 | |
| - name: 'Priority: High' | |
| color: eb6420 | |
| - name: 'Priority: Low' |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash -ex | |
| # Author: Ali Shanaakh <hi@shal.dev> | |
| 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" |
| package main | |
| // Author: Ali Shanaakh <hi@shal.dev> | |
| // Peatio SQL queries benchmark. | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "time" |
| package main | |
| // Author: Ali Shanaakh <hi@shal.dev> | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "log" | |
| "net/http" | |
| "net/url" |
| deposits = [ | |
| { member_id: 3, currency_id: :usd, amount: 1000 } | |
| ] | |
| deposits.map do |d| | |
| Deposits::Fiat.create!(d).tap(&:accept!) | |
| end |
| #!/usr/bin/env ruby | |
| # Author: Ali Shanaakh <hi@shal.dev> | |
| # Usage: debug.rb [options] | |
| # -c, --client=CLIENT | |
| # -a, --address=ADDRESS | |
| # -n, --amount=AMOUNT | |
| # -v, --verbose | |
| require 'net/http' |
| #!/usr/bin/env ruby | |
| # | |
| # Author: Ali Shanaakh <hi@shal.dev> | |
| # Removes peatio orders, where prices less than min_ask_price. | |
| # | |
| # Usage: | |
| # ./cancel_min_orders.rb | |
| markets = ["usdeur"] |