Skip to content

Instantly share code, notes, and snippets.

View eafelix's full-sized avatar
🎯
Focusing

eafelix eafelix

🎯
Focusing
  • Buenos Aires, Argentina
View GitHub Profile
@mgtitimoli
mgtitimoli / sortCsvFile.ts
Created April 23, 2020 15:27
Sort in Node.JS using OS commands
import * as childProcess from 'child_process';
import { promisify } from 'util';
type OptionalParams = {
fieldSeparator?: string;
hasHeader?: boolean;
};
type MandatoryParams = {
byColumn: number;
@widdowquinn
widdowquinn / kali_osx_persistence_wifi.md
Last active January 28, 2024 06:32
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

@DylanKojiCheslin
DylanKojiCheslin / sinon-ut-cheat-sheet.md
Last active May 31, 2024 10:57 — forked from yoavniran/ultimate-ut-cheat-sheet.md
a Sinon Unit Testing Cheat-sheet
@gildas
gildas / create-mint-sh
Last active January 31, 2021 05:50
Create Linux Mint USB on Mac OS/X
#! /usr/bin/env bash
# Insert a USB key.
# if needed initialize it with MS/DOS FAT and MBR
# Download the Mint ISO image
# Convert the ISO -> IMG
hdiutil convert -format UDRW -o linuxmint-17.3-cinnamon-64bit linuxmint-17.3-cinnamon-64bit.iso
# Run a diskutil list to know the device for the USB key, e.g.: /dev/disk3
@a0viedo
a0viedo / streams.md
Last active August 29, 2015 14:13
Traducción al español del blog post "What’s New in io.js 1.0 Beta? – Streams3" http://strongloop.com/strongblog/whats-new-io-js-beta-streams3/

#¿Qué hay de nuevo en io.js 1.0 Beta? - Streams 3

Los streams de Node son una forma poderosa de construir módulos y aplicaciones que manejan grandes streams de data. La API de Streams ha pasado por varias revisiones y ha estado mejorando establemente. Los Streams 1 introducieron push-streams para permitir a los desarrolladores consumir data eficientemente. Los Streams 2 agregaron pull-streams en adición a push-streams para permitir casos de uso más avanzados, sin embargo, los dos estilos no pueden utilizarse juntos. Los Streams 3 resuelven este problema de una manera elegante y permite al mismo stream ser utilizado tanto en modo push cómo en modo pull. Los Streams 3 están disponibles en Node v0.11/v0.12 y io.js

Continua leyendo para entrar en los detalles.

Streams 1 (Push streams)

En la implementación original de streams un evento de data era generado todas las veces que la data estaba disponible en el stream.

@staltz
staltz / introrx.md
Last active July 8, 2024 15:46
The introduction to Reactive Programming you've been missing
@branneman
branneman / better-nodejs-require-paths.md
Last active June 29, 2024 16:00
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: