Skip to content

Instantly share code, notes, and snippets.

Avatar

Raffaele Mancuso raffaem

View GitHub Profile
@raffaem
raffaem / gist:4b80df1d6f25a176774315d1e2b4f2c2
Created Mar 16, 2021
Diff btw linux 5.11.6 and linux-libre same version
View gist:4b80df1d6f25a176774315d1e2b4f2c2
This file has been truncated, but you can view the full file.
diff -ruN linux-5.11.5/arch/arm/boot/dts/am33xx-l4.dtsi linux-5.11.5-gnu/arch/arm/boot/dts/am33xx-l4.dtsi
--- linux-5.11.5/arch/arm/boot/dts/am33xx-l4.dtsi 2021-03-09 11:21:23.000000000 +0100
+++ linux-5.11.5-gnu/arch/arm/boot/dts/am33xx-l4.dtsi 2021-03-09 21:53:50.000000000 +0100
@@ -51,7 +51,7 @@
reg-names = "umem", "dmem";
resets = <&prm_wkup 3>;
reset-names = "rstctrl";
- ti,pm-firmware = "am335x-pm-firmware.elf";
+ ti,pm-firmware = "/*(DEBLOBBED)*/";
View csi_fix_ics.py
#!/usr/bin/env python3
import sys
import re
with open(sys.argv[1], "r", encoding="utf8") as fh:
data = fh.read()
s = re.search(r"^(DTSTART:\d{8}T\d{6})$", data, re.MULTILINE).group(1)
data = data.replace(s, s+"Z")
View download_glue_data.py
''' 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