Skip to content

Instantly share code, notes, and snippets.

View ivanzigoni's full-sized avatar
😃

Ivan Zigoni ivanzigoni

😃
View GitHub Profile

How to start a new backend NodeJS + Typecript project

  1. Commit chore: configuring vscode

    • create an repository on the git.

    • create file .gitignore:

      node_modules
@felippe-regazio
felippe-regazio / tt-seek-and-destroy.js
Last active August 20, 2024 13:13
Automatically unfollow Twitter users by a given criteria
/**
* ABOUT
*
* This is a Twitter NO-API/Dependency-Free follower sniffer and auto-blocker.
*
* This function performs automatic bulk blocking with NO-API
* and NO-external-dependencies to run. You must run this snippet
* directly on your Console, it will sniff your followers list
* search for previous given keywords, if found on username or description,
* the user will be automatically blocked.
@zfael
zfael / nodejs.checksum.js
Created June 20, 2017 13:57
NODE.JS - How to generate file's Checksum (CRYPTO)
var fs = require('fs');
var crypto = require('crypto');
fs.readFile('file.pdf', function(err, data) {
var checksum = generateChecksum(data);
console.log(checksum);
});
function generateChecksum(str, algorithm, encoding) {
return crypto
@jangler
jangler / ascii.c
Created August 9, 2012 21:44
idiotically simple ncurses ascii art program
// Controls:
// - Arrow keys - move cursor
// - Esc - toggle reprint of last character on movement
// - ^C - exit program, printing the screen to standard output
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <ncurses.h>