-
To install the OpenSSH on the Windows machine, follow these tutorials:
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
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory = $true, Position = 0)][string]$exeFileName, | |
| [Parameter(Mandatory = $true, Position = 1)][string]$credentialName | |
| ) | |
| $wshell = New-Object -ComObject Wscript.Shell -ErrorAction Stop | |
| function CheckIfFileExists { |
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
| @echo off | |
| SET FILE=%~dp0%~n0%.ps1 | |
| ::run powershell script with same name of this file | |
| %systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& '%FILE%' %*" |
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
| cmdkey /list | ForEach-Object{if($_ -like "*Destino:*"){ cmdkey /del:($_ -replace " ","" -replace "Destino:","")}} | |
| cmdkey /list | ForEach-Object{if($_ -like "*Target:*"){ cmdkey /del:($_ -replace " ","" -replace "Target:","")}} |
tags: linux, gnome, networkManager, pkcs12, p12
reference: askubuntu
This article intends to be reference when importing a openvpn file to NetworkManager on linux
- Save the files in a folder;
- Import the
.ovpnfile with the following command:
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
| ### reference: https://askubuntu.com/a/576507 | |
| on=/usr/share/icons/Adwaita/48x48/status/microphone-sensitivity-high-symbolic.symbolic.png | |
| off=/usr/share/icons/Adwaita/48x48/status/microphone-disabled-symbolic.symbolic.png | |
| amixer set Capture toggle \ | |
| && amixer get Capture | grep '\[off\]' \ | |
| && notify-send "Mic switched OFF" "Mic capture was disabled!" --icon=$off \ | |
| || notify-send "Mic switched ON" "Mic capture was enabled!" --icon=$on |
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
| [user] | |
| signingkey = CASDF9879ASDF | |
| name = Me | |
| email = [email protected] | |
| [gpg] | |
| program = gpg | |
| [core] | |
| editor = vim | |
| [diff] | |
| tool = meld |
Firefox (84+) supports this method by default, while on Chromium (73+) one needs to enable WebRTC PipeWire support by setting the corresponding (experimental) flag at the URL chrome://flags/#enable-webrtc-pipewire-capturer.
This requires xdg-desktop-portal and one of its backends to be installed. The available backends are:
xdg-desktop-portal-gnomefor GNOME.xdg-desktop-portal-kdefor KDE.xdg-desktop-portal-wlrfor wlroots-based Wayland compositors (e.g. Sway, dwl)
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 { DebouncedFunc } from "lodash" | |
| import debounce from "lodash.debounce" | |
| import { useMemo } from "react" | |
| export default function useDebouncedFn<T extends (...args: any[]) => void>(fn: T, wait?: number) { | |
| return useMemo(() =>( | |
| debounce((...args:any[]) => {fn(...args)}, wait ?? 300) as DebouncedFunc<T> | |
| ), [fn, wait]) | |
| } |
OlderNewer