Skip to content

Instantly share code, notes, and snippets.

@manueldev
manueldev / gist:bcae9d21d02515c59a718b67891a50b7
Created October 7, 2021 13:23
netplwiz enable autologin checkbox windows
reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0 /f
@manueldev
manueldev / portscan.py
Created September 9, 2021 07:17
portscan for edgerouter
#!/usr/bin/env python
# brought to you by pythonforbeginners.com
import socket
import subprocess
import sys
from datetime import datetime
# Clear the screen
subprocess.call('clear', shell=True)
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
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 listenaddress=0.0.0.0 listenport=9002 connectport=22 connectaddress=192.168.168.1
netsh advfirewall firewall add rule name="Open Port 9002" dir=in ac
add netplwiz checkbox
reg ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v DevicePasswordLessBuildVersion /t REG_DWORD /d 0 /f
bcdedit /set {default} recoveryenabled No
bcdedit /set {default} bootstatuspolicy ignoreallfailures
@manueldev
manueldev / gist:4b4faaec626693d038636b3e2ee524c7
Created July 21, 2020 23:47
Remote desktop windows scaling retina screen Remote Desktop / RDP Resolution on a Surface Book
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
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:
## 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 March 20, 2020 22:50
Suffering with Windows 10 or Windows 10 Tricks for data limit usage
Read Comments
Tips by: https://www.tenforums.com/