Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.
SSH to your Windows host (SSH Server must be installed in Windows Features)
ssh user@windowshost
Bom vou falar um pouco da minha luta com o Internet Banking da Caixa.
No meu caso tive problemas após migrar o meu macbook para um novo e não conseguia instalar o módulo de segurança no novo macbook e assim sem poder usar o Internet Banking no computador.
Primeiro rodei o script sudo /usr/local/bin/warsaw/uninstall.sh
do warsaw como root pra tentar começar tudo do zero mas ainda assim após tentar reinstalar não tive sucesso.
Ao analisar o script postinstall
dentro do pkg notei que varios arquivos de inicialização são criados e que alguns dados ainda continuaram no meu computador como certificados e arquivos de inicialização, então tenha certeza que estes arquivos abaixo tenham sido removidos:
rm -f ~/Library/LaunchAgents/com.diebold.warsaw.user.plist
/** | |
* Compare and write where the difference between strings is | |
* @param {String} a string to compare | |
* @param {String} b string to compare | |
* @returns {String} comparison | |
*/ | |
function compareStrings(a: string, b: string): string { | |
if (a.split('').every((c, n) => b.charCodeAt(n) == c.charCodeAt(0))) { | |
return `\x1b[32m${a} == ${b}\x1b[0m`; | |
} |
When using a Keychron K1 keyboard on Ubuntu 20.10 I found that the Fn keys would not work even switching the fn for the multimedia ones, so I've found that this command can solve this issue:
I managed to get this bug fixed in Ubuntu 20.04 by following this launchpad bug thread. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1814481
Also make sure to get the latest firmware update via windows/mac
Tldr: user Eferox provided the following console command fix
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
FEBRUARY 09 2020
Since i decided to work with dual boot for having an Ubuntu machine with optimal performance, instead of using virtual machines, i noticed that when i started using the computer with Ubuntu and then decided to boot with windows, the timezone of Windows changed automatically, so i needed to fix this everytime i used both operative systems on the same day.
After some research, i discovered what was causing the issue. Apparently, Ubuntu keeps the hardware clock in universal time (UTC), while windows keeps the clock in local time, causing a conflict between the mentioned operative systems.
/^((?:[^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(?:".+"))@(?:(\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ | |
.test('test@abc.co.jp') | |
// https://regex101.com/r/wGRDRv/3 |
/^(?:(?:\+|00)?(55)\s?)?(?:\(?([1-9][1-9])\)?\s?)?(?:((?:9\s?\d|[2-9])\d{3})\-?(\d{4}))$/.test('(21) 9 9999-9999') | |
// saved at https://regex101.com/r/R7VO4B/1 |
// from: https://gomakethings.com/dynamically-changing-the-text-color-based-on-background-color-contrast-with-vanilla-js/ | |
/*! | |
* Get the contrasting color for any hex color | |
* (c) 2019 Chris Ferdinandi, MIT License, https://gomakethings.com | |
* Derived from work by Brian Suda, https://24ways.org/2010/calculating-color-contrast/ | |
* @param {String} A hexcolor value | |
* @return {String} The contrasting color (black or white) | |
*/ | |
export function getContrastYIQ (hex) { | |
// If a leading # is provided, remove it |