This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:global currentPublicIP | |
:local host "" # Add your subdomain here | |
:local domain "" # Add your domain here | |
:local password "" # Add your access token here | |
:local ddnsInterface "pppoe-out1" | |
:local newPublicIP [/ip address get [find interface="$ddnsInterface"] address] | |
:local unmaskedIP [:pick "$newPublicIP" 0 [:find "$newPublicIP" "/"]] | |
:local namecheapUpdateURL "https://dynamicdns.park-your-domain.com/update?host=$host&domain=$domain&password=$password&ip=$unmaskedIP" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ipaddress | |
import os | |
import socket | |
import threading | |
import sys | |
network = ipaddress.ip_network('192.168.1.0/24') | |
def scanport(host, port_number): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace AppBundle\Handlers; | |
use Application\Sonata\MediaBundle\Entity\Media; | |
use JMS\Serializer\Context; | |
use JMS\Serializer\GraphNavigator; | |
use JMS\Serializer\Handler\SubscribingHandlerInterface; | |
use JMS\Serializer\JsonSerializationVisitor; | |
class MediaHandler implements SubscribingHandlerInterface { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module LCDFPGA( | |
clk, //Clock input (50MHz), rising edge. | |
LCD_RS, //Register select. 0 for command bytes. 1 for data bytes. | |
LCD_RW, //Read/Write. 0 to write. 1 to read. | |
LCD_E, //Enable. Active high. | |
LCD_DataBus //Data bus. | |
); | |
//Port declarations | |
input clk; |