Skip to content

Instantly share code, notes, and snippets.

mkdir EXAMPLE_REPO
cd EXAMPLE_REPO
git init
git config core.sparseCheckout true
# the folder you want
# required the trailing /
echo 'SWAGGER/' > .git/info/sparse-checkout
git remote add origin ssh://git@github.com/MY_ORG/EXAMPLE_REPO
git pull origin master
@rudijs
rudijs / launch.json
Created October 20, 2019 04:35
vscode debugger launch.json samples for nodejs and PHP
// express.js or CLI program
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",

Keybase proof

I hereby claim:

  • I am rudijs on github.
  • I am rudijs (https://keybase.io/rudijs) on keybase.
  • I have a public key ASB7hQlN8vFaZZXjKGp2SaEfzwX2W0bAjD1_OIkL5Zo8tQo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1GHNNEpgbfE73vFFAacDj1ggEBYXf9hjVm https://explorer.blockstack.org/address/1GHNNEpgbfE73vFFAacDj1ggEBYXf9hjVm

Keybase proof

I hereby claim:

  • I am rudijs on github.
  • I am rudijs (https://keybase.io/rudijs) on keybase.
  • I have a public key ASCwICmL3frk00ZRvOVZl69bB9iHy_q_G-oVa7WBi-v82Qo

To claim this, I am signing this object:

@rudijs
rudijs / amqp_publisher.js
Created January 29, 2016 08:40
Publish a message to RabbitMQ every 1 second
var amqp = require('amqplib/callback_api');
// if the connection is closed or fails to be established at all, we will reconnect
var amqpConn = null;
function start() {
amqp.connect('amqp://localhost', function(err, conn) {
if (err) {
console.error("[AMQP]", err.message);
return setTimeout(start, 1000);
}
@rudijs
rudijs / gulpfile.js
Last active December 1, 2023 08:20
GulpJS Jshint with Notify on Error
var gulp = require('gulp'),
watch = require('gulp-watch'),
// This will keeps pipes working after error event
plumber = require('gulp-plumber'),
// linting
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),