Skip to content

Instantly share code, notes, and snippets.

View armed's full-sized avatar
🏠
Working from home

Artem Medeu armed

🏠
Working from home
View GitHub Profile
"default_handler" "textDocument/documentHighlight" { ctx = '{\n bufnr = 47,\n client_id = 3,\n method = "textDocument/documentHighlight",\n params = {\n position = {\n character = 36,\n line = 7\n },\n textDocument = {\n uri = "file:///<project_path>/src/k16/kx/util.clj"\n }\n }\n}', result = { { range = { end = { character = 40, line = 7 }, start = { character = 20, line = 7 } } } }}
"LSP[clojure_lsp]" "client.request" 3 "textDocument/definition" { position = { character = 36, line = 7 }, textDocument = { uri = "file:///<project_path>/src/k16/kx/util.clj" }} <function 1> 47
"rpc.send" { id = 190, jsonrpc = "2.0", method = "textDocument/definition", params = { position = { character = 36, line = 7 }, textDocument = { uri = "file:///<project_path>/src/k16/kx/util.clj" } }}
"rpc.receive" { id = 190, jsonrpc = "2.0"}
"default_handler" "textDocument/definiti
[INFO][2022-09-11 16:33:52] .../vim/lsp/rpc.lua:261 "Starting RPC client" { args = {}, cmd = "clojure-lsp", extra = { cwd = "/<project_path>" }}
[TRACE][2022-09-11 16:33:52] .../lua/vim/lsp.lua:953 "LSP[clojure_lsp]" "initialize_params" { capabilities = { callHierarchy = { dynamicRegistration = false }, textDocument = { codeAction = { codeActionLiteralSupport = { codeActionKind = { valueSet = { "", "Empty", "QuickFix", "Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite", "Source", "SourceOrganizeImports", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } } }, dataSupport = true, dynamicRegistration = false, resolveSupport = { properties = { "edit" } } }, completion = { completionItem = { commitCharactersSupport = true, deprecatedSupport = true, documentationFormat = { "markdown
(ns clear-repl
(:require ["vscode" :as vscode]
["fs" :as fs]
[joyride.core :as joyride]))
(defn main []
(doseq [e vscode/window.visibleTextEditors]
(let [f-name (.. e -document -fileName)]
(when (.endsWith f-name "output.calva-repl")
(fs.writeFileSync f-name "", "utf8")))))
@armed
armed / artem_about.md
Last active August 1, 2022 11:35
My CV

Intro

  • Email: artem.medeusheyev@gmail.com
  • Name: Artem
  • Lastname: Medeusheyev
  • Born: 1982
  • Location: Almaty, Kazakhstan (GMT +6)
  • Family: married, two kids
  • Last Company: VOIX (I'm cofounder, telco enterprise software)
#!/bin/env/bb
;; script for creating DigitalOcean's droplet snapshot
(require '[babashka.curl :as curl])
(require '[cheshire.core :as json])
(def token (System/getenv "DO_TOKEN"))
(def droplet-id (System/getenv "DO_DROPLET_ID"))
(when (not token)
(ns activator.singularizer-cache)
(def SINGULARITY (atom {}))
(def sing-update-in!
(partial swap! SINGULARITY update-in))
(def sing-assoc-in!
(partial swap! SINGULARITY assoc-in))
#!/usr/bin/env bb
(ns make-toc
(:require
[clojure.java.io :as io]
[clojure.string :as string]))
(def tree
(reduce
(fn [acc f]
@armed
armed / README.md
Created November 26, 2019 06:56 — forked from denji/README.md
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
@armed
armed / clean-up-boot-partition-ubuntu.md
Created March 5, 2019 05:02 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@armed
armed / git-cheat-sheet.txt
Last active June 11, 2023 12:08 — forked from maxim-oleinik/git-cheat-sheet.txt
GIT cheat sheet
Git
================================================================================
Ссылки
------
* Книга "Pro Git"
http://progit.org/book/
* Книга "Git Community Book"
http://book.git-scm.com/
* Книга "Git Magic"