Skip to content

Instantly share code, notes, and snippets.

View goude's full-sized avatar

Daniel Goude goude

View GitHub Profile
On the screen, there is an adress below the QR code. Type this address into a work computer.

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

@goude
goude / gist:c523283fcd58192efede97c5ea0a75eb
Last active December 11, 2020 08:35
John the Ripper Plaintext Password
Q: Given a plaintext password, how do I create a password file that john the ripper can use?
A: See https://unix.stackexchange.com/questions/81240/manually-generate-password-for-etc-shadow
```
openssl passwd -6 -salt xyz yourpass
mkpasswd --method=SHA-512 --stdin
```
how do i create plain text password to use with john the ripper
@goude
goude / keybase.md
Created November 5, 2019 19:42
keybase.md

Keybase proof

I hereby claim:

  • I am goude on github.
  • I am goude (https://keybase.io/goude) on keybase.
  • I have a public key ASBIGRabPRb-Ou7dx6BI78cUnTCJG6UswmKMwkDJaFj7iAo

To claim this, I am signing this object:

@goude
goude / index.html
Last active November 2, 2018 21:22
CSS Combination Lock
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Halloween</title>
<link href="https://fonts.googleapis.com/css?family=Oswald:400,700" rel="stylesheet" type="text/css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
@goude
goude / chrome-wacom-tablet-erratic-behavior-fix.md
Last active August 30, 2017 12:10
Chrome doesn't respond to Wacom tablet pen clicks (Windows 10)

Problem: Chrome doesn't respond to Wacom tablet pen clicks (Windows 10)

Solution: turn off the "Use Windows Ink" option in Wacom Settings

Symptoms: Clicks don't work. Clicks only work sometimes. Unable to open settings menu.

Hardware: Wacom Bamboo (?) from 2016 (?), Lenovo ThinkPad

Drivers: Downloaded 2017-08-30

@goude
goude / gist:46d3d60a76e65596ccf22946389de769
Created August 11, 2017 08:06
Getting java.sql.SQLException unknown host [jdbc-1900113]? check /etc/hostname
Host is up, ping works.
Did you mess with /etc/hostname or /etc/hosts? I did.
@goude
goude / gist:b44b9d3938d3d30d8873f34fe2f92057
Created March 20, 2017 09:35
Generate and insert a UUID in vim
:r !uuidgen|sed 's/.*/"uid": "&",/'
@goude
goude / home.md
Last active August 14, 2019 20:42
solangen-www

Kontakt

Ta gärna kontakt med föreningen om du har frågor eller vill gå med. Du når oss på solangenegnahem@gmail.com. Medlemsavgiften för 2019 är 100 kronor och betalas in till pg 62 48 51–2.

Styrelse

Tommi KyllönenSekreterare
Charlotta KraghOrdförande
Henrik Simonsen  Kassör
@goude
goude / test.md
Created February 25, 2017 11:38
Markdown Test

Hello, World!

This is a test.