This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Sign NVIDIA and ORACLE kernel modules for using them with EFI mode in Debian Linux" | |
VERSION="$(uname -r)" | |
SHORT_VERSION="$(uname -r | cut -d . -f 1-2)" | |
MODULES_DIR=/lib/modules/${VERSION} | |
KBUILD_DIR=/usr/lib/linux-kbuild-${SHORT_VERSION} | |
cd "${MODULES_DIR}/updates/dkms" | |
for i in *.ko ; do | |
echo "Signing file ${i}" | |
sudo "${KBUILD_DIR}"/scripts/sign-file sha256 /root/MOK.priv /root/MOK.der "$i" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require([ | |
"dojo/_base/declare", | |
"dijit/_WidgetBase" | |
], function (declare){ | |
"use strict"; | |
return declare("WidgetClass", _WidgetBase, { | |
startup: function startup(){ | |
this.inherited({ | |
callee: startup | |
}, arguments); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require([ | |
"dojo/request/notify", | |
"dojo/cookie", | |
"dojo/domReady!" | |
], function (notify, cookie) { | |
notify("send", function (response, cancel) { | |
response.xhr.setRequestHeader('X-CSRFToken', cookie("csrftoken")); | |
}); | |
}); |