Skip to content

Instantly share code, notes, and snippets.

mtsmfm / plugin.yaml
Last active Sep 16, 2021
My che-theia
View plugin.yaml
apiVersion: v2
publisher: eclipse
name: che-theia
version: next
type: Che Editor
displayName: theia-ide
title: Eclipse Theia development version.
description: 'Eclipse Theia, get the latest release each day.'
icon: /images/default.png
category: Editor
mtsmfm / plugin.yaml
Last active Sep 1, 2021
View plugin.yaml
apiVersion: v2
publisher: matklad
name: rust-analyzer
version: latest
type: VS Code extension
displayName: Rust Analyzer
title: Rust Analyzer
description: Rust Analyzer
category: Programming Languages
mtsmfm /
Last active Aug 10, 2021
Install eclipse che on docker desktop
$ kubectl apply -f
$ kubectl patch deployment coredns -n kube-system --patch "$(curl"
$ chectl server:deploy --platform=docker-desktop --domain
mtsmfm / a.rb
Last active Sep 9, 2021
Find not used Rails endpoints via BigQuery
View a.rb
require 'bundler/inline'
gemfile do
eval, 'Gemfile'))
gem 'js_regex'
gem 'pry-byebug'
require_relative 'config/environment'
mtsmfm / background.js
Created May 31, 2021
tabCapture with v3 manifest
View background.js
chrome.action.onClicked.addListener(() => {
View lp_gen.rb
class LpGen
module HasMembers
def set_coefficient(var, x)
members <<, x)
def members
@members ||= []
mtsmfm / report.rb
Last active Dec 11, 2020
Report N+1 via New Relic API
View report.rb
require 'net/http'
require 'uri'
require 'json'
require 'time'
require 'csv'
class NrqlClient
def initialize(api_key:, account_id:)
@api_key = api_key
@account_id = account_id
View rewrite.go
package main
import (
View result.txt
$ DATABASE_URL=postgres://postgres:password@postgres/postgres?sslmode=disable go run utils/foo.go
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0x68e9dc]
goroutine 1 [running]:*Big).IsNaN(...)
/home/app/go/pkg/mod/, 0x8fe300, 0x0, 0x0, 0x7fa1a03ebca0, 0x8a9601)
/home/app/go/pkg/mod/ +0x3c, 0xc0001a15f0, 0x40d1e5, 0x6c4760, 0x7007c0)
View mongoid_test.rb
require 'bundler/inline'
gemfile do
source ''
gem 'mongoid'
require 'yaml'
require 'tempfile'