Skip to content

Instantly share code, notes, and snippets.

View UlisesGascon's full-sized avatar
馃槑
Focus on FOSS Projects!

Ulises Gasc贸n UlisesGascon

馃槑
Focus on FOSS Projects!
View GitHub Profile
@UlisesGascon
UlisesGascon / hack.sh
Last active March 6, 2020 11:48
David hasselhoff wallpaper 2020
#!/bin/sh
npm install --global wallpaper-cli
wallpaper https://octodex.github.com/images/privateinvestocat.jpg --scale=fit
npm uninstall --global wallpaper-cli
@UlisesGascon
UlisesGascon / important.md
Last active February 12, 2020 07:57
Nodejs February Security Release
@UlisesGascon
UlisesGascon / deps.sh
Created February 5, 2020 16:45
just a simple script to simulate node v0.10 in Express for CI in local
#!/usr/bin/env bash
nvm use v0.10
#find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
npm install
npm config set shrinkwrap false
npm rm --silent --save-dev connect-redis
npm install --silent --save-dev [email protected]
npm install --silent --save-dev [email protected]
npm prune
@UlisesGascon
UlisesGascon / ocr.js
Created February 4, 2020 08:28
Basic OCR
// npm install tesseract.js
const Tesseract = require('tesseract.js');
Tesseract.recognize(
'./img/2.png',
'spa',
{ logger: m => console.log(m) }
).then(({ data: { text } }) => {
console.log(text);
@UlisesGascon
UlisesGascon / README.md
Last active January 6, 2020 10:48
Madrid Traffic Cameras

Madrid Traffic Cameras

Process

  • Get data from Open Data Madrid. Link
  • Download the kml file and upload it to mygeodata for conversion to geojson
  • Save the GeoJSON file as cameras.geojson.
  • Run the transformation script transformation.js
  • Check the output file: cameras.json
@UlisesGascon
UlisesGascon / build.md
Created November 5, 2019 19:39
Compile nodejs in MacOS

Compile nodejs in MacOS

Code manage

  • Download: git clone https://github.com/nodejs/node.git
  • Update: git pull upstream master

Build Nodejs

  • Configure: ./configure
  • Compile: make -j4
@UlisesGascon
UlisesGascon / README.md
Created August 13, 2019 18:03
Identificar trafico de tor

Identificar trafico de tor

Pasos

  1. Instalar got y lowdb
  2. Generar toda la informaci贸n necesaria desde onionoo y guardalo como tor-data.js
  3. Utiliza la funci贸n isTor(req) para filtrar el trafico en tu servidor server.js.
  4. Instalar dependencias npm install got lowdb
  5. Arrancar el servidor node server

Recursos

@UlisesGascon
UlisesGascon / README.md
Last active August 13, 2019 18:00
Montar un generador de capturas de pantalla en Tor

Montar un generador de capturas de pantalla en Tor

Importante

Necesitamos tener previamente corriendo Tor en la maquina:

Pasos

  1. Actualziamos la configuraci贸n de tor nano /etc/tor/torrc
SocksPort 9050
@UlisesGascon
UlisesGascon / README.md
Last active August 13, 2019 17:54
Montar un hidden service en Tor
@UlisesGascon
UlisesGascon / README.md
Last active August 13, 2019 17:55
Montar un proxy de internet a Tor con Nodejs