Skip to content

Instantly share code, notes, and snippets.

View myypo's full-sized avatar

Mykyta myypo

  • Ukraine
  • 17:23 (UTC +02:00)
View GitHub Profile
@myypo
myypo / restate.nix
Created December 21, 2024 10:33
Nix restate
{
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
rocksdb,
llvmPackages_19,
protobuf,
liburing,
cmake,
@myypo
myypo / error.txt
Created December 21, 2024 10:32
restate-server rustc error
error: builder for '/nix/store/ba7dsra49nj8x8hyxxr44b3cx5rkyskd-restate-1.1.5.drv' failed with exit code 101;
last 25 log lines:
> error[E0425]: cannot find function `rocksdb_writebatch_wi_create_iterator_with_base_readopts` in crate `ffi`
> --> /build/restate-1.1.5-vendor/rust-rocksdb-0.29.0/src/write_batch_with_index.rs:396:18
> |
> 396 | ffi::rocksdb_writebatch_wi_create_iterator_with_base_readopts(
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `rocksdb_writebatch_wi_create_iterator_with_base_cf`
> |
> ::: /build/source/target/x86_64-unknown-linux-gnu/release/build/rust-librocksdb-sys-20f818cd1853f866/out/bindings.rs:3:59089
> |
{
config,
lib,
pkgs,
...
}: let
nordVpnPkg = pkgs.callPackage ({
autoPatchelfHook,
buildFHSEnvChroot,
dpkg,
#!/usr/bin/env bash
ws_state=$(hyprctl workspaces -j)
cli_state=$(hyprctl clients -j | jq -r 'map(select(.workspace.id > 0))')
curr_ws_id=$(hyprctl activeworkspace -j | jq -r .id)
new_ws_id=0
hypr_cmds=""
i=0
while read -r v; do
@myypo
myypo / autocmd.lua
Last active December 4, 2024 01:00
local yank_group = vim.api.nvim_create_augroup("highlight_yank", { clear = true })
-- Set cursor position before yanking
vim.api.nvim_create_autocmd("ModeChanged", {
group = yank_group,
pattern = "*",
callback = function()
vim.g.pre_yank_cursor_pos = vim.fn.getcurpos()
end,
})
@myypo
myypo / cmp.lua
Created April 16, 2024 14:35
My cmp config at the moment of creating this gist
return {
"hrsh7th/nvim-cmp",
event = { "InsertEnter", "CmdlineEnter" },
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
-- "hrsh7th/cmp-nvim-lsp-signature-help",
"saadparwaiz1/cmp_luasnip",
"L3MON4D3/LuaSnip",
"hrsh7th/cmp-nvim-lua",
@myypo
myypo / resume.json
Last active December 11, 2024 14:46
Resume
{
"meta": {
"theme": "macchiato"
},
"basics": {
"name": "Mykyta Polchanov",
"label": "Backend Developer",
"image": "https://avatars.githubusercontent.com/u/110892040?v=4",
"summary": "Backend Developer with experience working both autonomously and in close cooperation with a team. I am accustomed to picking up new technologies and roles taking ownership of the product.",
"email": "[email protected]",
return {
"mxsdev/nvim-dap-vscode-js",
ft = { "typescript", "javascript" },
dependencies = {
{
"microsoft/vscode-js-debug",
version = "1.x",
build = "npm i && npm run compile vsDebugServerBundle && mv dist out",
},
},