Skip to content

Instantly share code, notes, and snippets.

init_config:
instances:
##Log section
logs:
- type: file
path: "/home/ubuntu/smyrnabot/bot/logs/trade.log"
service: "Smyrnabot"
source: python
import React, { Component } from 'react'
import Button from 'common/button'
import { H2 } from '@userguiding/components'
import { reportToSentry } from 'utils/externalServices/sentry'
import * as Sentry from '@sentry/react'
import { CommonLink } from 'panel/components/styled'
import {
IllustrationImage,
ErrorWrapper,
ErrorText,
@dorukusumezbas
dorukusumezbas / binance-1.json
Created October 24, 2022 16:17
balances after sync
{
"exchange": "binance-1",
"margin_fraction": null,
"margin_ratio": null,
"collateral": null,
"free_collateral": null,
"total_position_size": null,
"spot_free": {
"BTC": 8.0281279,
"LTC": 766.6459752,
import React, { useEffect } from 'react'
import { StyleSheetManager } from 'styled-components'
import { FrameContextConsumer } from 'react-frame-component'
import { UgFrame, FrameStyleProps } from './styled'
import {
useFontUpdate,
Head,
GlobalStyle,
} from '@userguiding/preview/hooks/font'
@dorukusumezbas
dorukusumezbas / redis-test.sh
Last active May 9, 2021 09:31
Test User Storage Redis Performance
# BENCHMARK COMMMANDS
# Change host, port and dbnum with kubernetes setup versions
# Benchmark User Attributes SET
attributes_string=`cat attributes.json`
redis-benchmark -h 127.0.0.1 -p 6379 --dbnum 0 -c 50 SET ATTRIBUTES_KEY "$attributes_string"
# Benchmark User Attributes GET
redis-benchmark -h 127.0.0.1 -p 6379 --dbnum 0 -c 50 GET ATTRIBUTES_KEY
@dorukusumezbas
dorukusumezbas / settings.json
Created April 6, 2021 21:15 — forked from nottrobin/settings.json
VSCode editor settings for black, flake8, html
{
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length",
"79"
],
"editor.formatOnSave": true,
// TYPES
export type TimeChartData = {
date: number
guides_played: number
guides_completed: number
hotspots_interacted: number
checklist_items_triggered: number
nps?: number
}
@dorukusumezbas
dorukusumezbas / delete.sh
Created June 3, 2020 10:39
delete all branches except master and develop
git branch | grep -v "master\|develop" | xargs git branch -D
bash cypress/scripts/pull_extension.sh
npm run dev-local-api