Skip to content

Instantly share code, notes, and snippets.

View ebelliveau's full-sized avatar
🛰️
You'd think I was a professional or something.

Ed Belliveau ebelliveau

🛰️
You'd think I was a professional or something.
  • Canada
View GitHub Profile
@ebelliveau
ebelliveau / WSL-Networking.ps1
Created December 21, 2022 04:49
Port forwarding to WSL2 guest on Windows host IP (PowerShell)
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}

Keybase proof

I hereby claim:

  • I am ebelliveau on github.
  • I am ebelliveau (https://keybase.io/ebelliveau) on keybase.
  • I have a public key ASAbLSQvZAdAz4Ra8t-LpU0qM9hVg_xW4vDugVTePy0oZQo

To claim this, I am signing this object:

@ebelliveau
ebelliveau / sftp-server.c
Created January 16, 2015 01:50
In case you need to modify sftp-server in OpenSSH to explicitly deny users from deleting files while enforcing global POSIX ACLs...
static void
process_remove(u_int32_t id)
{
char *name;
int status = SSH2_FX_FAILURE;
int ret;
name = get_string(NULL);
debug3("request %u: remove", id);