- plug it in
- restart biometric service. In elevated powershell:
get-service | where {$_.Name -match ".*biosrv.*" } | restart-service
- Settings --> Accounts --> Sign in Options --> Windows Hello Face --> Set up
- Hit
Win+L
to lock and try it out
This file contains 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
#Inspired by Ben N https://superuser.com/a/1115222 | |
Add-Type -AssemblyName System.Windows.Forms | |
$form = New-Object System.Windows.Forms.Form | |
$form.TransparencyKey = $form.BackColor | |
$form.WindowState = 'Maximized' | |
$form.FormBorderStyle = 'None' | |
$label = New-Object System.Windows.Forms.Label | |
$label.Font = New-Object System.Drawing.Font ($label.Font.FontFamily, 200) | |
$label.ForeColor = [System.Drawing.Color]::FromKnownColor('Green') |
This file contains 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
nslookup -type=all _vlmcs._tcp |
This file contains 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
#author: grafst | |
#date: 2020-12-04 | |
#because of this: https://devblogs.microsoft.com/powershell/powershell-gallery-tls-support/ | |
try{ | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | |
}catch [System.Management.Automation.CommandNotFoundException]{ | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
#now try again | |
try{ | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force |
This file contains 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 datetime, suntime, geocoder | |
def is_dark(): | |
location=geocoder.ip('me') | |
sun=suntime.Sun(location.lat,location.lng) | |
sunrise=sun.get_sunrise_time() | |
sunset=sun.get_sunset_time() | |
now=datetime.datetime.now(sunrise.tzinfo) | |
if now >= sunset or now <= sunrise: return True | |
else: return False |
This file contains 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
# author: Stephan Graf | |
# date: 2020-08-13 | |
# sets the name of a mac | |
scutil --set ComputerName "$1" | |
scutil --set LocalHostName "$1" | |
scutil --set HostName "$1" | |
scutil --get ComputerName | |
scutil --get LocalHostName | |
scutil --get HostName |
- if not installed: install chocolatey
- open Powershell with Admin privileges
- if not installed:
choco install adb
- install scrcpy:
choco install scrcpy
- in your phone settings, find "system info" or similar.
- croll to the bottom and tap Build number 7 times.
- Return to the previous screen to find Developer options near the bottom
- Scroll down and enable USB debugging
- Connect your phone via USB to your Computer
This file contains 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
# Tesla Models | |
# author: github.com/grafst | |
# date: 2019-11-29 | |
SELECT ?model ?modelLabel ?releaseDate WHERE { | |
?model wdt:P31 wd:Q3231690. # all car makes... | |
?model wdt:P176 wd:Q478214. # ... from tesla | |
OPTIONAL{ ?model wdt:P577 ?releaseDate} | |
#FILTER (?releaseDate>now()). | |
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |
} |
This file contains 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
# buildings by shape | |
# author: https://github.com/grafst | |
# date: 2019-11-29 | |
#defaultView:BubbleChart | |
SELECT ?shapeLabel ?count WHERE { | |
{ | |
SELECT ?shape (COUNT(?item) AS ?count) WHERE { | |
?item (wdt:P31/wdt:P279*) wd:Q41176. # all buildings... |
This file contains 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
clock=cycle(["\b\b"+chr(i) for i in range(0x1F550,0x1F55C)]) | |
while not time.sleep(0.1): | |
sys.stdout.write(next(clock)) |