Skip to content

Instantly share code, notes, and snippets.

View neverkas's full-sized avatar

Emmanuel Lazarte neverkas

View GitHub Profile
@neverkas
neverkas / helper.mk
Created July 8, 2023 21:30
Makefile Menu Helper
# Nota: agregar en el Makefile principal: include helper.mk
.DEFAULT_GOAL=help
##@ Utilidades
h help: ## Mostrar menú de ayuda
@awk 'BEGIN {FS = ":.*##"; printf "\nOpciones para usar:\n make \033[36m\033[0m\n"} /^[$$()% 0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
.PHONY: h help
@neverkas
neverkas / openpgp-message-format.rst
Last active May 10, 2023 18:51
openpgp - algoritmos de hash, encriptación simétrica (cifrado), encriptación asimétrica (de llave pública) y compresión
@vikpe
vikpe / fix_authenticity_of_github_problem.md
Last active May 26, 2024 15:36
FIX: The authenticity of host github.com can't be established.

Error

The authenticity of host 'github.com (140.82.113.4)' can't be established.

Fix

ssh-keyscan github.com >> ~/.ssh/known_hosts
@bradfa
bradfa / pgp-bootable-usb-flash-drive.md
Last active March 16, 2024 22:46
PGP Bootable USB Flash Drive

PGP Bootable USB Flash Drive Creation and Operation

Create a bootable USB flash drive for generating and managing PGP keys. The keys will be generated and stored, encrypted, on the drive but then also transferred to Yubikeys for general use. Unless a Yubikey is lost or damaged, use of the flash drive should be extremely limited, if it is used at all.

A master certifying and signing (CS) key will be created, then sub-key signing (S), encrypting (E), and authenticating (A) keys will be created and signed by the C key. The C key will be archived with a password to the flash drive as well as transferred to a Yubikey 4. The SE&A sub keys will also be archived to the flash drive as part of the C key

@neverkas
neverkas / crearMaquinaVirtual.md
Last active July 2, 2019 04:39
Crear (VM) Maquina Virtual via terminal

Descargar compiladores viejos

Cambiar en el enlace la version que necesitas https://www.virtualbox.org/wiki/Download_Old_Builds_5_1

Comandos utiles

vboxmanage modifyvm nombreMaquinaVirtual --natpf3 "guestssh,tcp,127.0.0.1,2222,,22" # modificar mientras está apagada

vboxmanage controlvm nombreMaquinaVirtual natpf3 "guestssh,tcp,127.0.0.1,2222,,22" # modificar mientras se ejecuta

vboxheadless -s nombreMaquinaVirtual # correr servidor

#!/usr/bin/env sh
## Set newt color palette for dialogs
NEWT_COLORS_0='
root=,blue
'
NEWT_COLORS_1='
root=,blue
checkbox=,blue
@CarlasHub
CarlasHub / gist:8fa289a97b29460e8c3852cbc978ca77
Last active March 29, 2021 19:26
getting jquery, popper using gulp and npm
install extensions via npm
npm install popper.js --save
//Require dependencies
var
gulp = require('gulp'),
sass = require('gulp-sass'),
sourcemaps = require('gulp-sourcemaps'),
concat = require('gulp-concat'),
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var sass = require('gulp-sass');
// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', function() {
return gulp.src(['node_modules/bootstrap/scss/bootstrap.scss', 'src/scss/*.scss'])
.pipe(sass())
.pipe(gulp.dest("src/css"))
.pipe(browserSync.stream());
@alejandro-martin
alejandro-martin / multiple-ssh-keys-git.adoc
Last active May 27, 2024 03:57
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory: