Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Rust, Go, Elixir, Clojure, Nim, Pony, Zig

Palash Nigam palash25

👨‍💻
Rust, Go, Elixir, Clojure, Nim, Pony, Zig
View GitHub Profile
View sumo-mmap-p1-h1.md

add this at the top of your code

extern crate libc;

View reform-log
--- FAIL: TestPopulateConfig (1.67s)
logger.go:62: >>> BEGIN
logger.go:82: <<< BEGIN 669.133µs
logger.go:71: >>> SELECT "ia_channels"."id", "ia_channels"."summary", "ia_channels"."type", "ia_channels"."email_config", "ia_channels"."pagerduty_config", "ia_channels"."slack_config", "ia_channels"."webhook_config", "ia_channels"."disabled", "ia_channels"."created_at", "ia_channels"."updated_at" FROM "ia_channels" WHERE "ia_channels"."id" = $1 LIMIT 1 [`/channel_id/6a6cee52-d138-4e0f-94a7-caf31c68156f`]
logger.go:95: <<< SELECT "ia_channels"."id", "ia_channels"."summary", "ia_channels"."type", "ia_channels"."email_config", "ia_channels"."pagerduty_config", "ia_channels"."slack_config", "ia_channels"."webhook_config", "ia_channels"."disabled", "ia_channels"."created_at", "ia_channels"."updated_at" FROM "ia_channels" WHERE "ia_channels"."id" = $1 LIMIT 1 [`/channel_id/6a6cee52-d138-4e0f-94a7-caf31c68156f`] 2.010066ms
logger.go:71: >>> INSERT INTO "ia_channels" ("id", "summary", "type", "email_con
View dep log
dep ensure -v -update github.com/percona-platform/saas
Root project is "github.com/percona/pmm-managed"
34 transitively valid internal packages
76 external packages imported from 33 projects
(0) ✓ select (root)
(1) ? attempt github.com/AlekSi/pointer with 1 pkgs; at least 1 versions to try
(1) try github.com/AlekSi/pointer@v1.1.0
(1) ✓ select github.com/AlekSi/pointer@v1.1.0 w/1 pkgs
(2) ? attempt github.com/BurntSushi/go-sumtype with 1 pkgs; at least 1 versions to try
(2) try github.com/BurntSushi/go-sumtype@master
View haskell-dev-en
install ghc-up https://www.haskell.org/ghcup/
follow the instructions up until the last one, don't let the insatller make changes to your shell config and add the path manually to the config
`export PATH=/home/palash25/.ghcup/bin/:$PATH`
View ip-stt-check.yaml
---
checks:
- version: 1
name: bad_check_mysql
type: MYSQL_SHOW
query: VARIABLES LIKE 'version%'
script: |
def check_context(rows, context):
func = context.get("ip_is_private", fail)
View main-v2.go
package main
import aws "github.com/somuser/aws-go-sdk"
// extract the client out of the method thereby decoupling the two
type AWSService struct {
client *aws.Client
}
func NewAWSService() *AWSService {
View pmm-tensoon-log
palash@teensoon:~/dev/go/src/github.com/percona/pmm-managed$ make env-up
docker-compose pull
WARNING: The TRAVIS_REPO_SLUG variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST_SHA variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_COMMIT variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST_BRANCH variable is not set. Defaulting to a blank string.
WARNING: The TRAVIS_PULL_REQUEST variable is not set. Defaulting to a blank string.
WARNING: The REVIEWDOG_GITHUB_API_TOKEN variable is not set. Defaulting to a blank string.
Pulling pmm-managed-server ... done
@palash25
palash25 / lein-repl-traceback
Created May 27, 2020
Discovered after installing Calva vscode plugin
View lein-repl-traceback
#error {
:cause Wrong number of args (1) passed to: clojure.core/cons--5376
:via
[{:type clojure.lang.Compiler$CompilerException
:message Syntax error compiling at (scratch/core.clj:26:1).
:data #:clojure.error{:phase :compile-syntax-check, :line 26, :column 1, :source scratch/core.clj}
:at [clojure.lang.Compiler load Compiler.java 7648]}
{:type clojure.lang.ArityException
:message Wrong number of args (1) passed to: clojure.core/cons--5376
:at [clojure.lang.AFn throwArity AFn.java 429]}]
View elixir-ls.log
00:08:56.037 [info] Application elixir_ls_utils exited: :stopped
Started ElixirLS Fork v0.3.2
00:08:56.039 [info] Application erl2ex exited: :stopped
00:08:56.039 [info] Application forms exited: :stopped
[Info - 12:08:56 am] Connection to server got closed. Server will restart.
Elixir version: "1.10.2 (compiled with Erlang/OTP 21)"
Erlang version: "22"
[Warn - 12:08:56 am] ** (exit) exited in: GenServer.call(ElixirLS.LanguageServer.JsonRpc, {:packet, %{"id" => 0, "jsonrpc" => "2.0", "method" => "initialize", "params" => %{"capabilities" => %{"textDocument" => %{"codeAction" => %{"codeActionLiteralSupport" => %{"codeActionKind" => %{"valueSet" => ["", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports"]}}, "dynamicRegistration" => true}, "codeLens" => %{"dynamicRegistration" => true}, "colorProvider" => %{"dynamicRegistration" => true}, "completion" => %{"completionItem" => %{"commitCharactersSupport" => true, "deprecatedSupport" => true
View coderunner.dump
docker-compose down
Removing network coderunner_default
WARNING: Network coderunner_default not found.
Creating network "coderunner_default" with the default driver
Creating coderunner_dind-img_1 ... done
Creating coderunner_img_1 ... done
Creating coderunner_execute_1 ... done
Creating coderunner_compile_1 ... done
Creating coderunner_coderunner_1 ... done
Attaching to coderunner_dind-img_1, coderunner_img_1, coderunner_execute_1, coderunner_compile_1, coderunner_coderunner_1