Skip to content

Instantly share code, notes, and snippets.

View muniter's full-sized avatar
🎯
Focusing

Javier Lopez muniter

🎯
Focusing
View GitHub Profile
@muniter
muniter / package.json
Created May 18, 2024 15:39
adonis_package_json
{
"name": "monojs",
"version": "0.0.0",
"private": true,
"type": "module",
"license": "UNLICENSED",
"scripts": {
"start": "node bin/server.js",
"build": "node ace build",
"dev": "node ace serve --hmr",

Hacen parte:

  • Servicio A (Productor):
  • Servicio B (Consumidor):
  • Broker:

Tiempo 1

En este tiempo son iguales los esquemas, todo bien.

@muniter
muniter / report.json
Created May 12, 2022 20:28
Example report format
{
"prev": {
"version": "4.38.1",
"scenarios": [
{
"name": "Create a post and edit it",
"file": "/home/muniter/projects/msc/p2/pruebas/e2e_testing_assignment/features/Create a post and edit it.feature",
"steps": [
{
"name": "I login",
@muniter
muniter / neorg-keybinds.norg
Last active May 11, 2023 14:41
Neorg keybinding
@document.meta
title: Neorg default kemappings
de,cription: comments about neorg default keystrokes
author: muniter
categories:
created: 2021-11-26
version: 0.0.8
@end
@muniter
muniter / bench.lua
Last active November 18, 2021 13:08
Lua patterns and vim regex, not a real benchmark
-- Benchmarking support.
do
local function runner(name, code, ob, count)
local f = loadstring([[
local count,ob = ...
local clock = os.clock
local start = clock()
for i=1,count do ]] .. code .. [[ end
return clock() - start
]])
@muniter
muniter / luasnip.lua
Created August 28, 2021 02:46
Luasnip
----[[
---- Beside defining your own snippets you can also load snippets from "vscode-like" packages
---- that expose snippets in json files, for example <https://github.com/rafamadriz/friendly-snippets>.
---- Mind that this will extend `ls.snippets` so you need to do it after your own snippets or you
---- will need to extend the table yourself instead of setting a new one.
--]]
local snippets_paths = function()
local plugins = { "friendly_snippets" }
local paths = {}
local path
@muniter
muniter / sway-list-windows.py
Created August 26, 2021 20:47
Wofi Window switcher
# This script gets the list of all current windows and shows them on wofi
# The selected window get's focused.
import subprocess
from i3ipc import Connection, Event
def get_windows(conn):
'''Given a sway connection object, return the current windows infromation
return: Dictionary with window id as key'''
@muniter
muniter / completion_submodes.lua
Created August 2, 2021 15:55
Completion su mode in lua
------ Completion ^X submode mappings
M._my_completion_mappings = function ()
--@note: Function that sets mappings to workaround completeopt="noselect"
--this allows for actually selecting the first entry when using <C-x>
--submodes, and therefore easier chaining <C-x><C-n> brcomes
--<C-x><C-n><C-n>
if string.match(vim.o.completeopt, "noselect") == nil then return end
local modes= {"l", "n", "k", "t", "i", "]", "f", "d", "v", "u", "o", "s", "p"}
for _, mode in pairs(modes) do
local map = string.format("<C-x><C-%s>", mode)