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
virt-manager raw disk access | |
https://forum.level1techs.com/t/cant-setup-physical-disk-storage-pool-through-virt-manager/124073 | |
You may also need to be a member of the "disk" group too | |
The goal is to be able to run windows off a native NVMe drive so one can run it as a VM and | |
as a dual boot configuration | |
To install windows on a raw device, you'll require the virtio scsi driver. Why? because the raw |
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
title |
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
// kinda works. First attempt at JS ever | |
// A bit of WIP | |
var timeout = 500; | |
var items; | |
function populateItems() { | |
items = document.getElementsByClassName("yt-uix-button yt-uix-button-size-default yt-uix-button-default yt-uix-button-empty yt-uix-button-has-icon no-icon-markup pl-video-edit-remove yt-uix-tooltip"); | |
} |
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
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <cstdio> | |
#include <pthread.h> | |
#include <errno.h> | |
class fmt { | |
std::string buf_; |
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
# shellcheck shell=sh | |
# INSTALL to /etc/profile.d with perms 644 | |
# Expand $PATH to include the directory to include pip install --user apps | |
home_local_bin_path="~/.local/bin" | |
if [ -n "${PATH##*${home_local_bin_path}}" -a -n "${PATH##*${home_local_bin_path}:*}" ]; then | |
export PATH=$PATH:${home_local_bin_path} | |
fi |
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
#conanfile.py | |
from conans import ConanFile, Meson | |
class KrilliaConan(ConanFile): | |
settings = "os", "compiler", "build_type", "arch" | |
# ("", "") | |
requires = "gtest/1.8.1@bincrafters/stable" | |
generators = "pkg_config", "ycm" |
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
#!/bin/bash | |
SOURCE="$1" | |
if [ "${SOURCE}" == "" ]; then | |
echo "Must specify a source url" | |
exit 1 | |
fi | |
DEST="$2" | |
if [ "${DEST}" == "" ]; then |
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
--- qtcreator-3.0.1.orig/src/plugins/debugger/gdb/gdbprocess.cpp | |
+++ qtcreator-3.0.1/src/plugins/debugger/gdb/gdbprocess.cpp | |
@@ -59,7 +59,11 @@ QByteArray GdbProcess::readAllStandardEr | |
void GdbProcess::start(const QString &cmd, const QStringList &args) | |
{ | |
- m_gdbProc.setCommand(cmd, Utils::QtcProcess::joinArgs(args)); | |
+ QStringList sudoArgs; | |
+ sudoArgs << cmd << args; | |
+ QString sudoCmd = QString::fromUtf8("/usr/bin/sudo"); |