Skip to content

Instantly share code, notes, and snippets.

@joseluisq
joseluisq / programming_languages_keywords.json
Last active September 14, 2020 14:32
JSON of programming languages and their keywords. Additionally it contains a summary and extensions. Originally adapted from https://github.com/leighmcculloch/keywords
{
"data": [
{
"name": "Lua",
"version": 5.3,
"summary": "Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming and data description.",
"extensions": [
"lua"
],
"keywords": [
@joseluisq
joseluisq / get_into_docker_image.md
Last active May 22, 2025 12:23
How do you get into a Docker image?

How do you get into a Docker image?

We can do this running our image interactively which creates a temporary container for:

docker run --rm -it \
    --name my_container \
    --volume $PWD:/some_dir_in_container \
    --workdir /some_dir_in_container \
 golang:1.13-buster bash
@joseluisq
joseluisq / mirror_git_repo_using_no_mirror.md
Last active November 28, 2019 12:41
Mirroring a Git repository (no git --mirror)

Mirroring a Git repository (no git --mirror)

git push --tags --progress [email protected]:joseluisq/tslint-config-standard-plus.git refs/heads/*:refs/heads/*

Note: --tags will push all local tags as well.

References:

@joseluisq
joseluisq / logrotator.js
Created October 11, 2019 09:15
Write a log file with rotation option in Node JS
const streamFileArchive = require("stream-file-archive")
const Stream = require("stream")
/**
* Write a log file with rotation option
*
* @param {String} path Log file path
* @param {String} symlink Log file path symlink (latest log file)
* @param {String} separator String seprator for log data (E.g. separator for array of strings passed into `write` method)
*/
@joseluisq
joseluisq / minify_xml.js
Last active October 11, 2019 08:52
XML Minifier in Javascript / NodeJS
/**
* A tool to minify XML strings
* This code was borrowed and adapted from vkbeautify xml
* https://github.com/vkiryukhin/vkBeautify/blob/master/vkbeautify.js
*/
function XMLMinifier () {
function xml(text, step = "\t") {
const ar = text
.replace(/>\s{0,}</g, "><")
.replace(/</g, "~::~<")
@joseluisq
joseluisq / 0README.md
Created September 10, 2019 10:11
How to setup Jenkis v2 for automatic testing and docker deployment

How to setup Jenkis v2 for automatic testing and docker deployment

Stages:

All commit changes

  • 1. Clone project repository: Just checkout the repository
  • 2. Build a Docker image: Build Docker image base on some Dockerfile.
  • 3. Test Docker image: Apply some custom testing processes (unit tests, etc)
@joseluisq
joseluisq / software-categories.json
Last active September 7, 2019 23:24
Full JSON file with all kind of Software Categories (1478 entries)
{"categories":[{"id":1,"group":"#","slug":"360-degree-feedback-software","title":"360 Degree Feedback Software","tags":["360","degree","feedback","software","appraisal","review","multi","rater","multi-rater"]},{"id":2,"group":"#","slug":"3d-architecture-software","title":"3D Architecture Software","tags":["3d","architecture","software"]},{"id":3,"group":"#","slug":"3d-cad-software","title":"3D CAD Software","tags":["3d","cad","software","computer","aided","design"]},{"id":4,"group":"A","slug":"ab-testing-software","title":"AB Testing Software","tags":["ab","testing","software","a/b","multivariate"]},{"id":5,"group":"A","slug":"account-based-marketing-software","title":"Account Based Marketing Software","tags":["account","based","marketing","software"]},{"id":6,"group":"A","slug":"accounting-software","title":"Accounting Software","tags":["accounting","software","gl","ap","ar","a/r","a/p","bookkeeping","general","ledger"]},{"id":7,"group":"A","slug":"accounting-practice-management-software","title":"Accounting
@joseluisq
joseluisq / debug.go
Last active July 25, 2019 09:39
Simple Go dump function for struct slices variables (WIP) https://play.golang.org/p/KxpMJdFSDkI
package main
import (
"fmt"
)
type (
Author struct {
Name string
Email string
@joseluisq
joseluisq / ALTERNATIVES.adoc
Created July 17, 2019 10:49 — forked from mbbx6spp/ALTERNATIVES.adoc
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@joseluisq
joseluisq / Makefile
Last active July 15, 2019 07:21 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif