Skip to content

Instantly share code, notes, and snippets.

View ScorpionConMate's full-sized avatar
🏠
Working from home

Alan Perez ScorpionConMate

🏠
Working from home
View GitHub Profile
@ScorpionConMate
ScorpionConMate / setup-node.md
Last active September 6, 2023 15:45
Setting Up Node.js Typescript Project with Eslint, Prettier & Live Reloading

Setting Up Node.js Typescript Project with Eslint, Prettier & Live Reloading

Setting up Typescript and live reloading in Node.js

First, setting up the file tsconfig.json to compile the typescript files into javascript files.

{
  "compilerOptions": {
 "module": "commonjs",
@facundopadilla
facundopadilla / jwt_generator.py
Last active March 6, 2023 14:49
Generate RSA private and public key in Python on memory for JWT tokens
from datetime import datetime, timedelta, timezone
from jose import jwt # or import jwt
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.backends import default_backend
# --- Generate private and public key ---
key = rsa.generate_private_key(
@MrAch26
MrAch26 / captcha_solver.py
Created December 4, 2022 08:36
Captcha Solver with python
from PIL import Image
from scipy.ndimage import gaussian_filter
import numpy
import pytesseract
from PIL import ImageFilter
def solve_captcha(filename):
# thresold1 on the first stage
th1 = 140
th2 = 140 # threshold after blurring
@alejandro-martin
alejandro-martin / multiple-ssh-keys-git.adoc
Last active July 13, 2024 16:20
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: