Skip to content

Instantly share code, notes, and snippets.

View frozenspider's full-sized avatar

Alex Abdugafarov frozenspider

View GitHub Profile
@frozenspider
frozenspider / macos-ramdisk.md
Created April 29, 2024 08:34 — forked from htr3n/macos-ramdisk.md
Creating RAM disk in macOS

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes:

@frozenspider
frozenspider / V13__1979__text_search_configuration.sql
Last active November 20, 2021 06:19
text_search_configuration.sql, optimized
SET LOCAL yb_non_ddl_txn_for_sys_tables_allowed TO true;
DO $$
DECLARE
template_snowball_oid oid;
proc_oids oid array;
noop int;
BEGIN
IF NOT EXISTS (
SELECT FROM pg_catalog.pg_ts_template WHERE tmplname = 'snowball'
@frozenspider
frozenspider / ybd.log
Created March 23, 2021 17:04
ybd --clean --clean-thirdparty --dltp
16:59 ~/code/yugabyte (HEAD detached at b5d422437) $ ybd --clean --clean-thirdparty --dltp
+ /home/centos/code/yugabyte/yb_build.sh --clean --clean-thirdparty --dltp
[2021-03-23T17:00:08 common-build-env.sh:513 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-23T17:00:08 yb_build.sh:1043 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-23T17:00:08 yb_build.sh:1044 main] YB_COMPILER_TYPE=gcc
[2021-03-23T17:00:08 common-build-env.sh:2234 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20191209181439-7fc63d1583/yugabyte-db-thirdparty-v20191209181439-7fc63d1583-centos.tar.gz
[2021-03-23T17:00:08 common-build-env.sh:1785 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20191209181439-7fc63d1583-centos
[2021-03-23T17:00:08 common-build-env.sh:1787 find_or_download_thirdparty] Using Linuxbrew directory: /opt/yb-
19:23 ~/code/internal-devops/bin [master] $ ./setup_server.sh
Submodule 'yugabyte-bash-common' (https://github.com/yugabyte/yugabyte-bash-common) registered for path 'yugabyte-bash-common'
Cloning into '/home/centos/code/internal-devops/yugabyte-bash-common'...
Submodule path 'yugabyte-bash-common': checked out 'daf6cf7e247df9a35fee75518c689b38dc40cf12'
Collecting Flask==1.1.2 (from -r /home/centos/code/internal-devops/requirements_frozen.txt (line 1))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB)
Collecting Jinja2==2.11.1 (from -r /home/centos/code/internal-devops/requirements_frozen.txt (line 2))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/27/24/4f35961e5c669e96f6559760042a55b9bcfcdb82b9bdb3c8753dbe042e35/Jinja2-2.11.1-py2.py3-none-any.whl (126kB)
@frozenspider
frozenspider / shell.log
Created March 3, 2021 20:52
(take 2) ./yb_build.sh --clang11 --clean --dltp
20:50 ~/code/yugabyte [arcpatch-D10786] $ ./yb_build.sh --clang11 --clean --dltp
[2021-03-03T20:50:15 common-build-env.sh:503 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T20:50:15 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T20:50:15 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T20:50:15 common-build-env.sh:2277 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T20:50:15 common-build-env.sh:1813 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Details of third-party dependencies:
YB_THIRDPARTY_DIR: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11 (downl
@frozenspider
frozenspider / shell.log
Created March 3, 2021 19:28
./yb_build.sh --clang11 --clean --dltp
19:26 ~/code/yugabyte (HEAD detached at c5252731d) $ ./yb_build.sh --clang11 --clean --dltp
[2021-03-03T19:26:41 common-build-env.sh:498 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T19:26:41 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T19:26:41 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T19:26:41 common-build-env.sh:2226 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T19:26:41 common-build-env.sh:1765 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Details of third-party dependencies:
YB_THIRDPARTY_DIR: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-cla
@frozenspider
frozenspider / shell.log
Created March 3, 2021 17:20
./yb_build.sh --clang11 --clean --dltp --verbose
This file has been truncated, but you can view the full file.
17:15 ~/code/yugabyte (HEAD detached at c5252731d) $ ./yb_build.sh --clang11 --clean --dltp --verbose
[2021-03-03T17:15:50 common-build-env.sh:498 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T17:15:50 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T17:15:50 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T17:15:50 yb_build.sh:1072 main] build_type=debug, cmake_build_type=debug
[2021-03-03T17:15:50 yb_build.sh:1197 main] yb_build command line: --clang11 --clean --dltp --verbose
[2021-03-03T17:15:50 common-build-env.sh:2226 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T17:15:50 common-build-env.sh:1765 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thi
@frozenspider
frozenspider / CMakeError.log
Last active March 3, 2021 17:12
ybd --clang11
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
// Copyright (c) YugaByte, Inc.
//
// Licensed 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
//
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
#include <stdio.h>