Skip to content

Instantly share code, notes, and snippets.

View unameit10000000's full-sized avatar
πŸ§‘β€πŸš€
Exploring everything πŸͺ

Bartolomeo unameit10000000

πŸ§‘β€πŸš€
Exploring everything πŸͺ
View GitHub Profile
//Self-Signed Certificate for using with VS Code Live Server
//Save both files in a location you will remember
1. create a private key
openssl genrsa -aes256 -out localhost.key 2048
// you will be prompted to provide a password
//this will create localhost.key (call it whatever you like)
2. create the certificate
@thecipherBlock
thecipherBlock / asymmEncNdDec.js
Last active November 18, 2023 11:35
Asymmetric encryption and decryption of JSON data in js
var crypto = require("crypto");
var path = require("path");
var fs = require("fs");
var encryptStringWithRsaPublicKey = function(toEncrypt, publicKeyInPemPath) {
var absolutePath = path.resolve(publicKeyInPemPath);
var publicKey = fs.readFileSync(absolutePath, "utf8");
var buffer = Buffer.from(JSON.stringify(toEncrypt));
var encrypted = crypto.publicEncrypt(publicKey, buffer);
return encrypted.toString("base64");
// ==UserScript==
// @name ShellShockers Aimbot and ESP
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author PacyTense
// @match *://shellshock.io/*
// @run-at document-start
// @grant none
// @noframes
@carlosal1015
carlosal1015 / Instructions_UML_Python.rst
Created February 10, 2021 18:33 — forked from HarshaVardhanBabu/Instructions_UML_Python.rst
Generating UML diagrams in python using pyreverse

Requirements

  1. Install Pylint from Install. If you have anaconda already installed use pip install -U pylint to update the Pylint so that pyreverse is added to the scripts folder.

  2. You need to install Graphviz as the pyreverse generates the UML diagrams in dot format and needs the dot.exe provided by Graphviz. Once Graphviz is installed make sure the bin folder is added to the PATH variable so that pyreverse can find it at run time. "the command pyreverse generates the diagrams in all formats that graphviz/dot knows." (Reference

  3. Now add the path of python modules for which you want to generate the documentation to PYTHONPATH.

  4. Use pyreverse -S <modulename> to generate dot files in the current folder

    Usage: