Skip to content

Instantly share code, notes, and snippets.

@jvsoest
jvsoest / disableUSBC-PD.sh
Last active March 8, 2023 00:04
Disable USB-C PD on NUC10i5(FNH) to reduce CPU load
# 2020-11-9: Solved in recent Ubuntu updates, not needed anymore, only for historical purposes available.
#
# Script to disable USB-C PD controller with nuc10
# See: https://community.intel.com/t5/Intel-NUCs/NUC10i3-IRQ-problem/td-p/669863?profile.language=it
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1883511
processActive=$(pgrep -l irq/65-i2c-INT3 | wc -l)
if [ "$processActive" -gt "0" ]; then
echo "stopping USB-C PD controller"
@jvsoest
jvsoest / right-censored-to-binary.sparql
Last active January 7, 2022 10:59
SPARQL right-censored to binary
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
prefix ncit: <http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#>
prefix snomedct: <http://purl.bioontology.org/ontology/SNOMEDCT/>
prefix roo: <http://www.cancerdata.org/roo/>
INSERT {
GRAPH <http://inferred-manually.local/> {
?patient roo:survival_5_years ?survival_5y.
}