Skip to content

Instantly share code, notes, and snippets.

View lesmo's full-sized avatar
🎯
Don Berga

Sinuhé Coronel lesmo

🎯
Don Berga
View GitHub Profile
@lesmo
lesmo / w10-store-rereg.ps1
Last active August 29, 2015 14:18
Windows 10 Store Apps crashing re-register fix
<#
This re-registers all Store-like System Apps (Metro UI) on Windows 10.
This should be used to fix Apps not opening, immediately crashing after opening
or that appear to open but immediately close. If Cortana search bar does not work,
or is not shown while hitting the Windows key, this could potentially fix it.
It must be run as an admin in Powershell. Errors might come up, and probably can
be ignored.
#>
@lesmo
lesmo / auto-profes-escom
Created October 19, 2014 00:46
Ejecutar en Consola de Developer del browser.
$('#about-us .tabla a').each(function(){
$.get($(this).attr('href'), function(html) {
var page = $($.parseHTML(html));
var bars = page.find('.bar');
var print = $(page.find('h2')[2]).text().trim() + "|";
print += $($(bars[0])).text().replace("Correo:", "").trim() + "|";
print += $($(bars[1])).text().replace("Tel.:", "").trim() + "|";
page.find('.span6 > div a').each(function(){
@lesmo
lesmo / mac2wepkey4ps.ps1
Last active December 24, 2015 20:59
Huawei HGXX default password generation script for Powershell, based on Websec's Python script "mac2wepkey.py"
<####################################################
Huawei HG5XX default password generator
------------------------------------------------
Based on Python script created
by http://websec.mx (mac2wepkey)
####################################################>
Function Mac-To-WepKey {
Param (
[Parameter(Mandatory = $True, ValueFromPipeline = $True, HelpMessage = "MAC Address of the router (with or without ':')")]
[string]$MacAddress,
@lesmo
lesmo / reto-tabla.psm1
Created September 24, 2012 20:01
Tablita de operaciones en Powershell
Function Reto-Tabla {
Param (
[Parameter(Mandatory=$True)]
[char]$Symbol,
[Parameter(Mandatory=$True)]
[int]$Number
)
$Header = " " + $Symbol + " | "