Skip to content

Instantly share code, notes, and snippets.

View isbrqu's full-sized avatar
🔷

Isaac Bruno Quiroga isbrqu

🔷
View GitHub Profile
const cheerio = require('cheerio');
const fs = require('fs-extra');
const got = require('got');
const writeStream = fs.createWriteStream('quote.csv');
async function init() {
const url = 'https://quotes.toscrape.com';
const response = await got(url);
const $ = cheerio.load(response.body);
writeStream.write('quote,author,tags\n');
@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
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000001
@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
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
wmic product list full
wmic product where "name like '%%thing%%'" get name,vendor
wmic product where "name like '%%thing%%'" call uninstall
set nocompatible
set ttyfast
" ERROR
set noerrorbells
set novisualbell
" ENCODING
set encoding=utf-8
" set termencoding=utf-8
" set fileencodings=utf-8
" VISUALIZATION
dism /Online /Add-Package /PackagePath:"PATH\TO\CAB"
wmic qfe list full muestra el listado de actualizaciones
alias com="javac Main.java && java Main"
@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