Skip to content

Instantly share code, notes, and snippets.

View assada's full-sized avatar
🥒
Pickle Alex

Oleksii Ilienko assada

🥒
Pickle Alex
View GitHub Profile
@assada
assada / curl.bash
Created June 12, 2023 14:34
SpiceDB broken json response
curl --location 'http://localhost:8443/v1/relationships/read' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer foobar' \
--data '{
"consistency": {
"minimizeLatency": true
},
"relationshipFilter": {
"resourceType": "document_template",
"resourceId": "1"
root@ubuntu-s-2vcpu-4gb-fra1-01:~/azerothcore-wotlk# docker logs -f 1aeeb6af0793
Deno version check:
Version 1.26.0 is already installed
Running worldserver ...
Running with GDB enabled
11596.224415 [Thread debugging using libthread_db enabled]
11596.224458 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
AzerothCore rev. unknown 1970-01-01 00:00:00 +0000 (Archived branch) (Unix, RelWithDebInfo, Static) (worldserver-daemon)
<Ctrl-C> to stop.
Thread 1 "worldserver" received signal SIGSEGV, Segmentation fault.
std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > > > >::find (this=0x3c40, __k="mod-transmog") at /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h:2562
595967.795200 2562 /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h: No such file or directory
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/PlayerCommand.cpp.o
fatal error: file '/azerothcore/src/server/game/Miscellaneous/Language.h' has been modified since the precompiled header '/azerothcore/var/build/obj/src/server/scripts/CMakeFiles/scripts.dir/cmake_pch.hxx.pch' was built: size changed
note: please rebuild precompiled header '/azerothcore/var/build/obj/src/server/scripts/CMakeFiles/scripts.dir/cmake_pch.hxx.pch'
1 error generated.
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/build.make:94: src/server/scripts/CMakeFiles/scripts.dir/Commands/PlayerCommand.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1260: src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 22%] Building CXX object src/server/apps/CMakeFiles/authserver.dir/authserver/Authentication/AuthCodes.cpp.o
[ 22%] Building CXX object src/server/apps/CMakeFiles/authserver.dir/authserver/Server/AuthSession.cpp.o
fatal error: file '/azerothcore/src/
<?php
/*
* Instance Configuration
* ----------------------
* Edit this file and not config.php for imageboard configuration.
*
* You can copy values from config.php (defaults) and paste them here.
*/
@assada
assada / log.sh
Created May 23, 2020 21:17
move docker to new disk/partition
#stop docker
service docker stop
#backup
mv /var/lib/docker /var/lib/docker.old
#check if ok
ls /var/lib | grep docker
#create new empty dir
mkdir /var/lib/docker
#mount disk to new mountpoint (dont forget unmount first)
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"runtime"
"runtime/debug"
@assada
assada / bash.log
Last active December 11, 2019 17:39
$ ./test small 345ms ? Wed Dec 11 19:35:24 2019
2019/12/11 19:35:25 File Size: 66b
2019/12/11 19:35:26 [before Unmarshal] Alloc = 0 MiB | TotalAlloc = 0 MiB | Sys = 66 MiB | NumGC = 0
2019/12/11 19:35:26 [after Unmarshal] Alloc = 0 MiB | TotalAlloc = 0 MiB | Sys = 66 MiB | NumGC = 0
2019/12/11 19:35:26 [before Marshal] Alloc = 0 MiB | TotalAlloc = 0 MiB | Sys = 66 MiB | NumGC = 0
2019/12/11 19:35:26 [after Marshal] Alloc = 0 MiB | TotalAlloc = 0 MiB | Sys = 66 MiB | NumGC = 0
$ ./test medium ~/g/s/g/a/awesomeProject ? ./test medium Wed Dec 11 19:35:26 2
10
1756711 records sent, 351342.2 records/sec (3.35 MB/sec), 3.8 ms avg latency, 188.0 max latency.
1939614 records sent, 387922.8 records/sec (3.70 MB/sec), 4.1 ms avg latency, 50.0 max latency.
1912514 records sent, 382502.8 records/sec (3.65 MB/sec), 3.2 ms avg latency, 52.0 max latency.
1808519 records sent, 361703.8 records/sec (3.45 MB/sec), 2.7 ms avg latency, 34.0 max latency.
1855175 records sent, 371035.0 records/sec (3.54 MB/sec), 2.8 ms avg latency, 40.0 max latency.
1895567 records sent, 379113.4 records/sec (3.62 MB/sec), 2.7 ms avg latency, 43.0 max latency.
1899486 records sent, 379897.2 records/sec (3.62 MB/sec), 2.7 ms avg latency, 40.0 max latency.
1838392 records sent, 367678.4 records/sec (3.51 MB/sec), 2.4 ms avg latency, 36.0 max latency.
1940247 records sent, 388049.4 records/sec (3.70 MB/sec), 2.5 ms avg latency, 43.0 max latency.
@assada
assada / main.md
Last active July 5, 2019 08:11
Kafka bench

Create

Note:

bin/kafka-topics.sh --zookeeper 127.0.0.1:8081,127.0.0.1:8082,127.0.0.1:8083 --create --topic test2 --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper 127.0.0.1:8081 --create --topic test-rep-one --partitions 6 --replication-factor 1