Skip to content

Instantly share code, notes, and snippets.

View isbrqu's full-sized avatar
🔷

Isaac Bruno Quiroga isbrqu

🔷
View GitHub Profile
@isbrqu
isbrqu / listening-mode.sh
Created August 31, 2022 20:02
script para poner en modo escucha una shell
listening_mode() {
declare PIPE="/tmp/listening-pipe"
trap "rm -f ${PIPE}" exit 1
[[ ! -p ${PIPE} ]] && mkfifo ${PIPE}
while true; do
while read line; do
case "$line" in
@exit) rm -f ${PIPE} && exit 0;;
@*) eval "${line#@}" ;;
* ) echo "$line" ;;
@isbrqu
isbrqu / javarun
Last active September 5, 2022 23:39
compilador de java
#!/bin/bash
declare fullpath="${1}"
if [[ "${fullpath}" != */src/* ]];then
echo "src directory not found"
fi
declare directory="${fullpath%/src/*}"
declare src="${directory}/src"
declare build="${directory}/build"
declare classpath
alias com="javac Main.java && java Main"
dism /Online /Add-Package /PackagePath:"PATH\TO\CAB"
wmic qfe list full muestra el listado de actualizaciones
set nocompatible
set ttyfast
" ERROR
set noerrorbells
set novisualbell
" ENCODING
set encoding=utf-8
" set termencoding=utf-8
" set fileencodings=utf-8
" VISUALIZATION
wmic product list full
wmic product where "name like '%%thing%%'" get name,vendor
wmic product where "name like '%%thing%%'" call uninstall
get-appxpackage | sort-object -property name | format-table -property name,packagefullname
get-appxpacakge *<partname>* | select-object -first 1
get-appxpackage <name> | remove-appxpackage
remove-appxpackage <packagefullname>
get-appxpackage -allusers | foreach { add-appxpackage -disabledevelopmentmode -register "$($_.installLocation)\AppXManifest.xml" }
Set-ExecutionPolicy RemoteSigned
Set-ExecutionPolicy Restricted
Set-ExecutionPolicy Unrestricted
sfc /scannow
dism /Online /Get-ProvisionedAppxPackages | Select-String PackageName | Select-String Microsoft.549981C3F5F10
@isbrqu
isbrqu / services-control.bat
Last active May 2, 2022 01:41
Pequeño controlador de servicios de Windows para deshabilitarlos, habilitarlos (en auto), iniciarlos y detenerlos. Se debe ejecutar como administrador.
@echo off
set _operation=%1
set _file=%2
if not exist %_file% goto error_file
if %_operation%==enabled GOTO enabled
if %_operation%==disabled GOTO disabled
if %_operation%==stop GOTO disabled
if %_operation%==start GOTO disabled
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000001
@echo off
reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /t REG_DWORD /v EnableAutoTray /d 0 /f
taskkill /f /im explorer.exe
start explorer.exe