Skip to content

Instantly share code, notes, and snippets.

View AndreMaz's full-sized avatar

André Mazayev AndreMaz

  • Faro, Portugal
  • 11:34 (UTC +01:00)
View GitHub Profile
@AndreMaz
AndreMaz / .md
Created September 24, 2025 12:24
Using pnpm with private Bitbucket repositories locally and in CI/CD

Using pnpm with private Bitbucket repositories locally and in CI/CD

Image the following scenario: you have a private Bitbucket repository that contains a package you want to use in your project. You want to use pnpm as your package manager, and you want to be able to install the package both locally and in your CI/CD pipeline.

Normally you have SSH configured on your local machine, so you can run

pnpm add git+ssh://git@bitbucket.org/my-org/main-dependency-package.git
@AndreMaz
AndreMaz / metadata-dissemination.js
Created February 23, 2022 11:51
TCP metadata dissemination
"use strict";
const { ServiceBroker } = require("moleculer");
const broker1 = new ServiceBroker({
nodeID: "broker-1",
metadata: { metaTest: 1234 },
// transporter: "Redis",
@AndreMaz
AndreMaz / greeter.service.js
Created February 24, 2020 10:59
Moleculer's "greeter.service.js"
module.exports = {
name: "greeter",
// ... other elements omitted for brevity ...
/**
* Actions
*/
actions: {
/**
#include <event.h>
#include <evhttp.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <iostream>