Skip to content

Instantly share code, notes, and snippets.

Avatar

Manuel manueldev

View GitHub Profile
View gist:4688278bd45e1ea5851a0911ee00382d
sudo pip3 install meson
brew install ninja
meson ..
brew install pkg-config
brew install cmake
brew install mbedcrypto
brew install mbedtls
brew install cmocka
install python certs
View gist:2e4b45766abd584754ad6d537c95a64c
netsh interface portproxy add v4tov4 listenport=8001 connectport=80 connectaddress=127.0.0.1
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80
netsh advfirewall firewall add rule name="Open Port 443" dir=in action=allow protocol=TCP localport=443
netsh interface portproxy add v4tov4 listenport=9001 connectport=443 connectaddress=192.168.168.1
netsh advfirewall firewall add rule name="Open Port 9001" dir=in action=allow protocol=TCP localport=9001
netsh advfirewall firewall add rule name="Open Port 8888" dir=in action=allow protocol=TCP localport=8888
netsh advfirewall firewall add rule name="Open Port 15179" dir=in action=allow protocol=TCP localport=15179
netsh interface portproxy add v4tov4 listenport=9002 connectport=22 connectaddress=192.168.168.1
netsh advfirewall firewall add rule name="Open Port 9002" dir=in action=allow protocol=TC
View gist:e8470e54ad02014b4afdd0f46560279a
add netplwiz checkbox
reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0 /f
View deshabilitar recovery windows
bcdedit /set {default} recoveryenabled No
bcdedit /set {default} bootstatuspolicy ignoreallfailures
@manueldev
manueldev / gist:4b4faaec626693d038636b3e2ee524c7
Created Jul 21, 2020
Remote desktop windows scaling retina screen Remote Desktop / RDP Resolution on a Surface Book
View gist:4b4faaec626693d038636b3e2ee524c7
https://www.blackforce.co.uk/2016/04/18/remote-desktop-rdp-resolution-on-a-surface-book
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide
DWORD 32 bit: PreferExternalManifest, value 1.
Create manifest file C:\Windows\System32\mstsc.exe.manifest
@manueldev
manueldev / gist:f80dc516ee861c21d11b910110025b3d
Last active Sep 1, 2020
Generar gráficos de niveles de señal para las conexiones de Internet provistas por VTR con el router ARRIS TG2492LG-NA
View gist:f80dc516ee861c21d11b910110025b3d

Buscando una forma de identificar caídas de servicio de mi conexión de internet, di con un software de monitoreo de equipos: PRTG Network Monitor y con la api rest que da acceso a los valores SNMP del router. PRTG es gratuito hasta 100 sensores. Los sensores son tareas que monitorean un servicio, proceso, app, interfaz. Por ejemplo un ping. En este caso usaremos 4 sensores: power dbmv, snr db, pre rs errors, post rs errors.

Consideración importante: el software ocupa JAVA para correr, por lo tanto ocupa mucha cpu. Tener en cuenta el equipo donde se instalará.

Descarga: https://www.es.paessler.com/prtg

La instalación es como cualquier otra app de windows. En un punto solicitará una licencia. Esta aparece en la pagina cuando está descargando el software.

View gist:736c451ee7463c13ee9b988d1cd98f38
Responsive iframe solution.
When embedding iframes for content such as videos, most services like YouTube and Vimeo will provide you a snippet of code like the one below:
<iframe width="560" height="315" src="//www.youtube.com/embed/KMYrIi_Mt8A" allowfullscreen></iframe>
Notice I removed the frameborder attribute. If you’re using HTML5, that attribute is no longer supported.
First of all, remove the width and height attributes. Keeping those attributes forces the content to stay at that size regardless of the screen size. This causes problems in responsive layouts when the screen size is smaller than the width of the iframe. Though we could use CSS to force the size, why have them if their not being used — less code is beautiful code.
<iframe src="//www.youtube.com/embed/KMYrIi_Mt8A" allowfullscreen></iframe>
Next, let’s add a container with a class around the iframe:
View gist:8d8b3806a632d26a91612cbca8000d9c
## noip no-ip updater mikrotik behind nat
## read write policy test
# Set needed variables
:local username "@gmail.com"
:local password ""
:local hostname ".ddns.net"
:global dyndnsForce
:global previousIP
@manueldev
manueldev / gist:7c317d196da677c7c59dc636586b1e99
Last active Mar 20, 2020
Suffering with Windows 10 or Windows 10 Tricks for data limit usage
View gist:7c317d196da677c7c59dc636586b1e99
Read Comments
Tips by: https://www.tenforums.com/