Skip to content

Instantly share code, notes, and snippets.

## Step 1
Open C:\Windows\System32\drivers\etc\hosts
## Step 2
Add 1.2.3.4 account.jetbrains.com
## Step 3
Add this key to 1nte11ij
``This key works well and expires 2024
@alyleite
alyleite / isRunning.cs
Last active October 2, 2023 17:47
isRunning
using System;
using System.Threading;
class Program
{
private static bool isRunning = false;
private static bool isMonitoring = false;
private static DateTime lastExecutionTime;
static void Main(string[] args)
@alyleite
alyleite / settings.xml
Last active June 6, 2022 07:43
maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories
Error:
Could not transfer artifact ... from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: ...
1. Open file ${MAVEN_HOME}/conf/settings.xml and Comment these lines
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
@alyleite
alyleite / wsl.md
Created April 5, 2022 20:54
wsl: Read-only file system

wsl: Read-only file system

  1. open WSL and run:
sudo e2fsck /dev/sdb -y
sudo e2fsck /dev/sdb -p
  1. open PowerShell and run: wsl --shutdown
@alyleite
alyleite / intellij.md
Created June 22, 2021 21:02
Funcionar o intellij no wsl 2

export DISPLAY="grep nameserver /etc/resolv.conf | sed 's/nameserver //':0"

@alyleite
alyleite / wsl.md
Last active April 15, 2024 06:34
Failed to connect to bus: Host is down - WSL 2

» sudo systemctl daemon-reload

System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down

==============================================

Edit*

  1. Open /etc/wsl.conf with any editor: