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
# Copied from https://community.ui.com/questions/Windows-Firewall-keeps-blocking-APs-in-controller-show-as-disconnected-even-though-operable-/01839bc6-56f6-473a-b9ba-6bbc1d8ec36d#answer/44bdb22f-4174-4e02-a3d3-f1469702e431 | |
New-NetFirewallRule -Name _UniFi-Mgmt-In -DisplayName "_UniFi-Mgmt (TCP-In 8081)" -Description "Allows incoming UniFi management traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8081 -Direction Inbound | |
New-NetFirewallRule -Name _UniFi-DvcInfrm-In -DisplayName "_UniFi-DvcInfrm (TCP-In 8080)" -Description "Allows incoming UniFi device inform traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8080 -Direction Inbound | |
New-NetFirewallRule -Name _UniFi-Ctrlr-In -DisplayName "_UniFi-Ctrlr (TCP-In 8443)" -Description "Allows incoming UniFi Controller traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8443 -Direction Inbound | |
New-NetFirewallRule -Name _UniFi-PrtlRdr-In -DisplayName "_UniFi-PrtlRdr (TCP-In 8880)" -Description "Allows incoming UniFi portal redirect tra |
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
reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersion /t REG_DWORD /d 1 | |
reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersionInfo /t REG_SZ /d "21H2" | |
reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v ProductVersion /t REG_SZ /d "Windows 11" | |
reg add HKLM\SYSTEM\Setup\MoSetup /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 | |
Remove the keys again after succesful update: | |
reg del HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersion | |
reg del HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseVersionInfo | |
reg del HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate /v ProductVersion |
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
.floating-update-button { | |
position: fixed; | |
right: 2rem; | |
bottom: 2rem; | |
padding: 1rem 1.5rem; | |
animation: fadein 2s ease-out; | |
} |
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
window.updateAvailable = new Promise((resolve, reject) => { | |
if (!('serviceWorker' in navigator)) { | |
const errorMessage = `This browser doesn't support service workers`; | |
console.error(errorMessage); | |
reject(errorMessage); | |
return; | |
} | |
navigator.serviceWorker.register('/service-worker.js') | |
.then(registration => { |
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
// Caution! Be sure you understand the caveats before publishing an application with | |
// offline support. See https://aka.ms/blazor-offline-considerations | |
self.importScripts('./service-worker-assets.js'); | |
self.addEventListener('install', event => event.waitUntil(onInstall(event))); | |
self.addEventListener('activate', event => event.waitUntil(onActivate(event))); | |
self.addEventListener('fetch', event => event.respondWith(onFetch(event))); | |
const cacheNamePrefix = 'offline-cache-'; | |
const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}`; |
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
/* | |
* Copyright 2016-2020 Wouter Huysentruit | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
* |
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
jump = () => { | |
const space = { bubbles: true, key: 'Space', keyCode: 32, charCode: 0 }; | |
document.activeElement.dispatchEvent(new window.KeyboardEvent('keydown', space)); | |
document.activeElement.dispatchEvent(new window.KeyboardEvent('keyup', space)); | |
}; | |
ctx = document.getElementsByClassName('runner-canvas')[0].getContext('2d'); | |
detect = () => { | |
const data = ctx.getImageData(105, 125, 1, 1).data; |
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
"use strict"; | |
const express = require('express'); | |
const express_graphql = require('express-graphql'); | |
const { GraphQLSchema, GraphQLObjectType, GraphQLString } = require('graphql'); | |
// GraphQL schema | |
const songType = new GraphQLObjectType({ | |
name: 'SongType', | |
fields: { |
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
nanoff --update --target ESP32_WROOM_32 --serialport COM3 |
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
using System; | |
using System.Threading; | |
namespace NFApp1 | |
{ | |
public class Program | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Hello world!"); |
NewerOlder