Skip to content

Instantly share code, notes, and snippets.

View ringosham's full-sized avatar

ringosham

  • Newcastle University
View GitHub Profile
@ringosham
ringosham / lxgc.c
Created December 17, 2020 23:23
Manually clear WSL memory
#include <stdio.h>
// Must be run as root
// To build:
// cc lxgc.c -o lxgc
int write(const char *path) {
FILE *fp;
fp = fopen(path, "w");
int response = fputs("1", fp);