Skip to content

Instantly share code, notes, and snippets.

View gabmontes's full-sized avatar

Gabriel Montes gabmontes

View GitHub Profile
@gabmontes
gabmontes / tu-144.md
Last active November 15, 2024 21:23
List of Tu-144
  • Tu-144 CCCP-68001 - Scrapped
  • Tu-144S CCCP-77101 - Scrapped
  • Tu-144S CCCP-77102 - Crashed at 1973 Paris Air Show
  • Tu-144S CCCP-77103 - Scrapped
  • Tu-144S CCCP-77104 - Remamed CCCP-77144, scrapped
  • Tu-144S CCCP-77105 - Converted to Tu-144D, scrapped
  • Tu-144S CCCP-77106 - On display in Monino, Russia
  • Tu-144S CCCP-77107 - On display in Kazan, Russia
  • Tu-144S CCCP-77108 - On display in Samara, Russia
  • Tu-144S CCCP-77109 - Scrapped

Alabama:

  • A-12 #06930 - On display at the U.S. Space & Rocket Center, Huntsville, AL.
  • A-12 #06937 - On display at the Southern Museum of Flight, Birmingham, AL.
  • A-12 #06938 - On display at the USS Alabama Battleship Memorial Park, Mobile, AL.

Arizona:

  • SR-71A #17951 - On display at the Pima Air Museum, Tucson, AZ.

California:

  • A-12 #06924 - On display at the Blackbird Airpark in Palmdale, CA.
@gabmontes
gabmontes / list-extensions
Created October 18, 2024 19:36
List the extensions of all files tracked in the repository
#!/bin/bash
git ls-tree -r master --name-only | awk -F. '!/^\./ && NF>1 {print $NF}' | sort | uniq
@gabmontes
gabmontes / test-node-version
Created October 10, 2024 14:11
Simple Bash script to test a package with all Node.js versions
#!/bin/bash
set -e
# shellcheck disable=SC1091
. "$NVM_DIR/nvm.sh"
test_node_version() {
VERSION=$1
echo "Testing Node $VERSION -------------------------------------------------"
@gabmontes
gabmontes / gmailCleanup.js
Last active October 2, 2024 06:32
Google Apps script to cleanup messages from GMail.
// Inspired in http://www.johneday.com/422/time-based-gmail-filters-with-google-apps-script
// Deletes old marked conversations
function cleanUp() {
var delayDays = 5; // # of days before messages are moved to trash
var label = "Delete me"; // label to identify the messages
var maxDate = new Date(Date.now() - delayDays * 24 * 60 * 60 * 1000);
var userLabel = GmailApp.getUserLabelByName(label);
if (!userLabel) {
return;
  • Challenger OV-099
  • Enterprise OV-101 Intrepid Sea-Air-Space Museum, New York City, New York
  • Columbia OV-102
  • Discovery OV-103 Udvar-Hazy Center, Smithsonian Institution's National Air and Space Museum, Chantilly, Virginia
  • Atlantis OV-104 Kennedy Space Center, Merritt Island, Florida
  • Endeavour OV-105 California Science Center, Los Angeles, California.

Ref: https://en.wikipedia.org/wiki/Space_Shuttle_retirement

  • 001 F-WTSS - Museum of Air and Space, Le Bourget, France
  • 002 G-BSST - Fleet Air Arm Museum, Yeovilton, England, UK
  • 101 G-AXDN - Imperial War Museum, Duxford, England, UK
  • 102 F-WTSA - Musée Delta, Orly Airport, Paris, France
  • 201 F-WTSB - Airbus Factory, Toulouse, France
  • 202 G-BBDG - Brooklands Museum, Weybridge, Surrey, England, UK
  • 203 F-BTSC - Destroyed in air crash outside Paris, France
  • 204 G-BOAC - Manchester Airport, England, UK
  • 205 F-BVFA - Smithsonian National Air and Space Museum, Chantilly, Virginia USA
  • 206 G-BOAA - Museum of Flight, East Lothian, Scotland, UK
@gabmontes
gabmontes / delete-all-my-gists.js
Last active December 3, 2023 08:39
Delete all your gists
var async = require('async');
var GitHubApi = require('github');
var github = new GitHubApi({
version: '3.0.0',
protocol: 'https'
});
github.authenticate({
type: 'basic',
@gabmontes
gabmontes / ExpressABM.md
Last active February 7, 2023 15:23
Creación de un ABM (CRUD) básico con Express

ABM con Express

Objetivos

  • Crear servicios web para dar soporte a una aplicación de ABM

Estructura

Una aplicación web que permita administrar un tipo de recurso, como por ejemplo una lista de libros, tendrá los siguientes componentes:

@gabmontes
gabmontes / cbuvalidator.js
Last active October 27, 2022 15:01
Validator for "Clave Bancaria Uniforme", or CBU, as used in the Argentinean banking system
/**
* Validator and brute-force checksum generator for "Clave Bancaria Uniforme"
* fromat used in the Argentinan banking system.
*
* Legal stuff at http://www.infoleg.gob.ar/infolegInternet/anexos/45000-49999/47564/norma.htm
* Code based on https://gist.github.com/delucas/4526176
* Universal loader based on https://gist.github.com/jrburke/1262861
*/
/* global define, window */