Skip to content

Instantly share code, notes, and snippets.

View sbwww's full-sized avatar

B. Shen sbwww

View GitHub Profile
# from https://github.com/microsoft/WSL/issues/4699#issuecomment-627133168
wsl --shutdown
diskpart
# open window Diskpart
select vdisk file="C:\Users\xxx\AppData\Local\Docker\wsl\data\ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit
@sbwww
sbwww / download_glue_data.py
Created October 20, 2022 13:33 — forked from W4ngatang/download_glue_data.py
Script for downloading data of the GLUE benchmark (gluebenchmark.com)
''' Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaphraseCorpus.msi) and extract the data from it manually.
For Windows users, you can run the .msi file. For Mac and Linux users, consider an external library such as 'cabextract' (see below for an example).
You should then rename and place specific files in a folder (see below for an example).
mkdir MRPC
cabextract MSRParaphraseCorpus.msi -d MRPC
@sbwww
sbwww / SemanticScholar-Download.js
Created November 18, 2021 08:23
quickly download multiple papers from Semantic Scholar library
// ==UserScript==
// @name SemanticScholar-Download
// @namespace sbwww.github.io
// @version 0.1
// @description quickly download multiple papers from Semantic Scholar library
// @author sbwww
// @match https://www.semanticscholar.org/me/library/*
// @icon https://www.google.com/s2/favicons?domain=semanticscholar.org
// @grant none
// ==/UserScript==