Skip to content

Instantly share code, notes, and snippets.

View iamfeek's full-sized avatar

Feek iamfeek

  • Singapore
  • 14:18 (UTC +08:00)
View GitHub Profile
@iamfeek
iamfeek / Joash.java
Created October 23, 2020 17:14
Joash's School Assignment
import java.io.*;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Scanner;
class InvalidPasswordException extends Exception {
int passwordConditionViolated = 0;
@iamfeek
iamfeek / WSL for Ubuntu Pre requisites
Last active June 6, 2021 08:42
WSL Port Forward in Powershell
Install `ifconfig` command by `sudo apt install net-tools`
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}