This file contains 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
sudo lvextend -r -l +100%FREE /dev/template-vg/root |
This file contains 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
# Disable SecureBoot in UEFI for kernel module to load | |
# add options to primary | |
non-free contrib | |
# add source | |
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware |
This file contains 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
$ vi /etc/apt/sources.list | |
# add [contrib], [non-free] to [main] line | |
deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free | |
$ LINUX_HEADERS=$(uname -r) | |
$ apt update | |
$ apt -y install nvidia-driver firmware-misc-nonfree linux-headers-$LINUX_HEADERS dkms | |
# default [nouveau] driver is disabled | |
$ cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf | |
# You need to run "update-initramfs -u" after editing this file. |
This file contains 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
sudo tee /etc/modprobe.d/i915.conf <<EOF | |
options i915 enable_guc=2 | |
EOF | |
sudo update-initramfs -u | |
sudo apt install intel-gpu-tools | |
sudo apt install ocl-icd-libopencl1 intel-opencl-icd | |
(reboot) |
This file contains 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
$ docker volume create --driver local \ | |
--opt type=none \ | |
--opt device=/home/user/test \ | |
--opt o=bind \ | |
test_vol |
This file contains 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
function hyphenize (arg = '') { | |
return arg.match(/([a-z]{1,2})/ig).join('-'); | |
} |
This file contains 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
(async function () { | |
const fetch = require('node-fetch'), | |
moment = require('moment'), | |
users = new Map(), | |
size = 100; | |
let i = -1, | |
nth = -1, | |
done = false; |
This file contains 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
new_recommended = db.profiles.aggregate([{$unwind: "$recommended"}, {$group: {_id : "$_id", recommended: {$push: "$recommended"}}}]).toArray(); | |
new_recommended.forEach(function (x) {db.profiles.update({_id: x._id}, {$set: {recommended: x.recommended}})}); |
This file contains 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
'use strict'; | |
const url = require('url'), | |
config = require('./config.json'), | |
mongodb = require('mongodb'), | |
keysort = require('keysort'); | |
function clone (arg) { | |
return JSON.parse(JSON.stringify(arg)); | |
} |
NewerOlder