Skip to content

Instantly share code, notes, and snippets.

View jahirmedinacs's full-sized avatar
🎯
Focusing

Jahir Medina jahirmedinacs

🎯
Focusing
View GitHub Profile
@jahirmedinacs
jahirmedinacs / JM_CV.md
Last active July 24, 2023 15:48
Jahir Medina English CV
@jahirmedinacs
jahirmedinacs / populate.js
Last active December 17, 2019 02:46
Populate.JS
function loadJSON(callback, JSON_OBJ_PATH) {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', JSON_OBJ_PATH , true); // Replace 'my_data' with the path to your file
xobj.onreadystatechange = function () {
if (xobj.readyState == 4 && xobj.status == "200") {
// Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode
callback(xobj.responseText);
}

El manejador de paquetes pacman , permite remover (tal como instalar) paquetes , con el uso de algunos parametros via CLI , podemos eliminar paquetes huerfanos; estos son paquetes que o bien hacen referencia unicamente a librerias que ya no existen o ningun otro paquete los tiene como referidos pero en lugar de generar un "deshuso" quedan aislados y ningun otro programa puede acceder a ellos o sus librerias.

Sin embargo un caso especial pero bastante comun es que paquetes huerfanos sean referidos pero al buscarlos en su ruta simbolica (symlink) o ruta absoluta, resulta que no estan, dando como resultado un "error". Pacman cree que si estan instalados (El los tiene listado como instalados, incluyendo las rutas [de ejecutables y librerias]) y no los reportara como faltantes, pero como no se conocen sus ubicaciones REALES o estas direcciones son vacias/inexistentes. Cuando otro programa quiera usarlos dara error sin reportar que es por falta de (los paquetes huerfanos), sino como si fuera culpa del o los progra

@jahirmedinacs
jahirmedinacs / Layout.md
Last active November 10, 2019 16:20
OCkED Layouts

Old Cellphone Layouts



Standard Layout

Key Number Alt. Value 1 Alt. Value 2 Alt. Value 3 Alt. Value 4
1
#include <GL/glew.h>
#include <GL/glut.h>
#include <iostream>
#include <string>
using namespace std;
@jahirmedinacs
jahirmedinacs / optimize-images.sh
Created July 19, 2019 03:09 — forked from rkbhochalya/optimize-images.sh
Recursively optimize PNG and JPEG images using convert command
# Recursively optimize PNG and JPEG images using convert command
#
# `convert` is part of ImageMagick (http://www.imagemagick.org/). You will need to install it first.
#
# Author: Rajendra Kumar Bhochalya (http://rkb.io)
#
# @see https://developers.google.com/speed/docs/insights/OptimizeImages
# Optimize all JPEG images in current directory and subdirectories
find . -name "*.jpg" -exec convert "{}" -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB "{}" \; -exec echo "{}" \;