ssh-keygen -t ed25519-sk -O resident -O application=ssh:<your-username>-signing -O user=<your-username> -C "<your-email>" -f "$env:USERPROFILE\.ssh\id_ed25519_sk_<your-username>-signing"Key flags:
-t ed25519-sk— hardware-backed FIDO2 key
ssh-keygen -t ed25519-sk -O resident -O application=ssh:<your-username>-signing -O user=<your-username> -C "<your-email>" -f "$env:USERPROFILE\.ssh\id_ed25519_sk_<your-username>-signing"Key flags:
-t ed25519-sk — hardware-backed FIDO2 keyA separate key from the signing one — same process, different application name:
ssh-keygen -t ed25519-sk -O resident -O application=ssh:<your-username>-auth -O user=<your-username> -C "<your-email>" -f "$env:USERPROFILE\.ssh\id_ed25519_sk_<your-username>-auth"| ; Ender 3 Custom Start G-code | |
| M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature | |
| M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature | |
| M104 S160; start warming extruder to 160 | |
| G28 ; Home all axes | |
| G29 ; Auto bed-level (BL-Touch) | |
| G92 E0 ; Reset Extruder | |
| M104 S{material_print_temperature_layer_0} ; Set Extruder temperature | |
| G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position | |
| M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature |
| using System; | |
| using System.Runtime.InteropServices; | |
| public static class SpecialFolder | |
| { | |
| [DllImport("shell32.dll")] | |
| private static extern int SHGetKnownFolderPath([MarshalAs(UnmanagedType.LPStruct)] Guid rfid, uint dwFlags, IntPtr hToken, out IntPtr pszPath); | |
| public static string GetPath(Guid knownFolderId) | |
| { |
| public sealed class TempFolder | |
| { | |
| public string Path { get; } | |
| public TempFolder() | |
| { | |
| string guid = Guid.NewGuid().ToString(); | |
| string tempPath = System.IO.Path.GetTempPath(); | |
| string path = System.IO.Path.Combine(tempPath, guid); |
| # Ensures that Invoke-WebRequest uses TLS 1.2 | |
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
| $json = Invoke-WebRequest 'http://worldtimeapi.org/api/timezone/Europe/Zurich' | ConvertFrom-Json | |
| set-date -date $json.datetime |
| using System; | |
| using System.Collections.Generic; | |
| using System.Net.Http; | |
| using HtmlAgilityPack; | |
| public sealed class LinkProtectorBypass | |
| { | |
| private const string URL = "https://protect-link.me/"; | |
| private const string USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"; |
| public static class VLCHelper | |
| { | |
| private const string KEY = @"SOFTWARE\VideoLAN\VLC"; | |
| public static void StartStream(string url) | |
| { | |
| string path = null; | |
| // Checking 32-Bit VLC Install | |
| RegistryKey localKey32 = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32); |
| // Aide pour les URL des Web Services | |
| var WS = "https://chabloz.eu/movies/"; | |
| var WS_THUMB = "https://chabloz.eu/movies/thumb/?id="; | |
| var WS_RATING = "https://chabloz.eu/movies/rating/get/"; | |
| var WS_RATEIT = "https://chabloz.eu/movies/rating/post/"; | |
| // Aide: pour arrondir un nombre à l'entier le plus proche: Math.round(nb_ici); | |
| // Variables globales | |
| var templateMovie; |
| var WS_GOOGLE_BOOKS = "https://www.googleapis.com/books/v1/volumes?key=AIzaSyCqXyRFYjzkJIsQpTCpz7hSnjqJ0XZ49eQ"; // &q=algorithme | |
| // WS DE SECOURS | |
| var WS_GOOGLE_BOOKS_STATIC = "http://chabloz.eu/m44/books/" | |
| var WS_YOUTUBE = "https://www.googleapis.com/youtube/v3/search?part=snippet&type=video&videoEmbeddable=true&key=AIzaSyCqXyRFYjzkJIsQpTCpz7hSnjqJ0XZ49eQ"; // &q=algorithme | |
| // WS DE SECOURS | |
| var WS_YOUTUBE_STATIC = "http://chabloz.eu/m44/videos/"; // &q=algorithme | |
| // Variables globales | |
| var templateBook; |