Skip to content

Instantly share code, notes, and snippets.

View malkab's full-sized avatar

Juan Pedro Pérez Alcántara malkab

  • Sunntics Ltd.
  • Seville, Andalusia (Spain)
View GitHub Profile
@malkab
malkab / css.css
Created April 11, 2022 10:54
CSS side-by-side DIV
div.grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 20px;
}
@malkab
malkab / windows_software.md
Created March 31, 2022 07:47
A List of Useful Windows Software

Proprietary Software:

  • Autofirma: spanish administration signature software for official communications. Stopped working properly in MacOS, it is primarily designed for Windows. Use in this OS.
@malkab
malkab / linux_software.md
Last active May 27, 2022 07:45
Linux Software

A List of Useful Linux Software

Open Software:

  • FreePlane: Mind Maps;
  • GThumb, Shotwell, Shutter: image viewers, each with their own strengths;
  • Krita, Glimpse: image editing software, Photoshop like;
  • pgAdmin4: PostgreSQL manager, including an ERD editor that generates SQL, very handy to design a database;
  • Pomatez: useful timer, Pomodoro-like;
  • Variety: versatile wallpaper manager.
@malkab
malkab / visual_studio_code_miscellanea_troubleshooting.md
Created March 30, 2022 18:02
Visual Studio Code Miscellanea Troubleshooting

Remote Server not Working

In one ocassion, after updates, remote editing over SSH stopped working from MacOS to Linux, raising the error "Unable to start remote server" or something like this. SSH connection to the Linux machine worked flawlessly. In the end, it was the Remote SSH VSC extension the one that was outdated. Updating it returned operation to nominal status.

@malkab
malkab / ubuntu_network_manager_manual_network_config.md
Last active July 7, 2022 22:32
Ubuntu Network Manager & Manual Network Configuration

Ubuntu Network Manager & Manual Network Configuration

In case the Network Manager needs to be disabled and the network manually configured, follow this procedures.

Drop the Network Manager:

service network-manager stop
@malkab
malkab / typedoc_typescript_documentation.ts
Created February 28, 2022 02:29
TypeDoc TypeScript documentation
/**
A module documentation.
*/
export module BModule {
/**
A constant documentation.
@malkab
malkab / mocha_testing.ts
Created February 27, 2022 23:12
Testing TypeScript with Mocha
/**
This describe blocks will be executed sequentially
A very important thing to keep in mind when testing with Mocha is, as always,
the async nature of JavaScript. Everything inside a describe/it Mocha block
will be executed synchroneously, but the results of everything outside them
is not guaranteed to be executed sequentially with the rest of the **it**
blocks. Therefore, everything should be inside an "it" block if possible.
@malkab
malkab / curl_accessing_bearer_token.sh
Created February 17, 2022 12:00
cURL: Accessing a Bearer Token Auth Service with bash
#!/bin/bash
# ----------------
#
# Authorizes an user, retrieves the Bearer token and calls a securized
# API entry.
#
# ----------------
# Auth credentials
@malkab
malkab / debugging_javascript_vsc_live_server.md
Last active February 8, 2022 15:46
Debugging JavaScript with VSC and Live Server

Debugging Frontend with Chrome and Visual Studio Code

This recipe configures VSC to debug a frontend in Chrome in JavaScript (not TypeScript) running locally (not in a Docker).

Software prerequisites:

  • Visual Studio Code: it has a buit-in debugger;

  • Live Server: extension for VSC to serve web pages;

@malkab
malkab / testing_observables_with_mocha.ts
Last active July 23, 2022 22:20
Testing Observables with Mocha
import "mocha";
import * as rx from "rxjs";
import * as rxo from "rxjs/operators";
import { expect } from "chai";
/**