Skip to content

Instantly share code, notes, and snippets.

@GermanMorini
GermanMorini / README.md
Last active February 27, 2025 11:54
Cliente CLI para SMB

Psamby

Cliente CLI para el protocolo SMB (el que usa windows para compartir recursos)

En la terminal escrib铆 python3 psamby.py HOST RECURSO USUARIO (reemplaz谩 por tus datos)

Si todo sale bien te va a preguntar tu contrase帽a, y si es correcta vas a acceder al recurso

Los comandos disponibles te van a aparecer al teclear cualquier cosa

@GermanMorini
GermanMorini / launch.json
Last active October 16, 2024 12:39
Configuraci贸nes de vscode
{
"version": "0.2.0",
"configurations": [
{ // Esto sirve para poder debuggear un programa de C++ con varios archivos fuente
"name": "C++ debug",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/exec/${fileBasenameNoExtension}", // path al ejecutable (compilado con -g)
"args": [], // Los argumentos de la l铆nea de ordenes
"stopAtEntry": false,
@GermanMorini
GermanMorini / README.md
Last active September 30, 2024 11:52
infostat

Infostat

Aplicaci贸n de calculos estadisticos para la terminal

Suponiendo que guardaste el script con el nombre infostat:

infostat 'archivo1.csv' 'archivo2.csv' 'archivoN.csv' ...

infostat <<< "4 2 1 7 2 0 5 4 3 5 2 4 4 1 1 2 4 1 5 4 3 2 3 4 4 6 5 5 2 2 3 4 4 4 2 6 2 5 6 4 1 2 0 4 5 3 1 3 5 4 2 3 3 5 5 9 4 5 4 3"
@GermanMorini
GermanMorini / config
Last active March 4, 2024 16:11
Script para configurar "git bash"
#!/bin/bash
function cmpExe() {
if [ ! -d "./exec" ]; then
mkdir "./exec"
fi
g++ -o "./exec/${1%.*}" $* && "./exec/${1%.*}"
}
function plantillar() {
@GermanMorini
GermanMorini / README.md
Last active July 5, 2024 19:39
Scripts de bash para linux

Scripts de sistema

Scripts para administrar ssh, docker, samba, mysql, avahi, cups y mas

@GermanMorini
GermanMorini / README.md
Last active March 28, 2024 00:19
Cheatsheets, como usar algunas de las tecnolog铆as m谩s habituales en el desarrollo

Cheatsheets

Colecci贸n de diferentes cheatsheets para algunas tecnologias comunmente usadas:

git, docker, dockerfile, content-types de HTTP