Skip to content

Instantly share code, notes, and snippets.

View BlueNoob's full-sized avatar
🌴
On vacation

BlueNoob BlueNoob

🌴
On vacation
View GitHub Profile
@BlueNoob
BlueNoob / hosts
Created November 26, 2020 11:38 — forked from rise-worlds/hosts
unfw hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 activate.navicat.com
0.0.0.0 account.jetbrains.com
0.0.0.0 www.jetbrains.com
# GitHub
140.82.118.3 github.com
140.82.118.4 github.com
#!/bin/bash
git filter-branch --env-filter '
OLD_EMAIL="rise.worlds@outlook.com"
NEW_NAME="a42dab9659090cac"
NEW_EMAIL="a42dab9659090cac@outlook.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
@BlueNoob
BlueNoob / trial.md
Created November 26, 2020 11:39 — forked from satish-setty/trial.md
Beyond Compare 4 license for Linux

Beyond Compare 4.x

Licensed to: ASIO Allsoftinone Quantity: 1 user Serial number: 1822-9597 License type: Pro Edition for Linux

First delete away trial mode:

sudo sed -i "s/keexjEP3t4Mue23hrnuPtY4TdcsqNiJL-5174TsUdLmJSIXKfG2NGPwBL6vnRPddT7tH29qpkneX63DO9ECSPE9rzY1zhThHERg8lHM9IBFT+rVuiY823aQJuqzxCKIE1bcDqM4wgW01FH6oCBP1G4ub01xmb4BGSUG6ZrjxWHJyNLyIlGvOhoY2HAYzEtzYGwxFZn2JZ66o4RONkXjX0DF9EzsdUef3UAS+JQ+fCYReLawdjEe6tXCv88GKaaPKWxCeaUL9PejICQgRQOLGOZtZQkLgAelrOtehxz5ANOOqCaJgy2mJLQVLM5SJ9Dli909c5ybvEhVmIC0dc9dWH+/N9KmiLVlKMU7RJqnE+WXEEPI1SgglmfmLc1yVH7dqBb9ehOoKG9UE+HAE1YvH1XX2XVGeEqYUY-Tsk7YBTz0WpSpoYyPgx6Iki5KLtQ5G-aKP9eysnkuOAkrvHU8bLbGtZteGwJarev03PhfCioJL4OSqsmQGEvDbHFEbNl1qJtdwEriR+VNZts9vNNLk7UGfeNwIiqpxjk4Mn09nmSd8FhM4ifvcaIbNCRoMPGl6KU12iseSe+w+1kFsLhX+OhQM8WXcWV10cGqBzQE9OqOLUcg9n0krrR3KrohstS9smTwEx9olyLYppvC0p5i7dAx2deWvM1ZxKNs0BvcXGukR+/g" /usr/lib/beyondcompare/BCompare
@BlueNoob
BlueNoob / Windows_Terminal.md
Created December 5, 2020 23:23 — forked from Garwih/Windows_Terminal.md
将 Windows Terminal 添加到右键菜单

将 Windows Terminal 添加到右键菜单

将以下代码保存到扩展名为 .reg 的文件中,双击打开

需要按住 shift + 右键打开

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal Here"
@BlueNoob
BlueNoob / WSL-ssh-server.md
Created December 14, 2020 13:09
A step by step tutorial on how to automatically start ssh server on boot on the Windows Subsystem for Linux running Ubuntu 18.04

How to automatically start ssh server on boot on Windows Subsystem for Linux


This works with Ubuntu 18.04LTS. I make no promises about other distributions, but direct anyone else to an older Gist which apparently works for 16.04LTS.

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.

  1. Uninstall and reinstall the ssh server using the following commands:
    1. sudo apt remove openssh-server
    2. sudo apt install openssh-server
  2. With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on: