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 <QDebug> | |
// Output: Log with spaces Logwithoutspaces Again Logging with spaces | |
int main(int argc, char *argv[]) | |
{ | |
auto log = qDebug(); | |
log << "Log" << "with" << "spaces"; | |
log.nospace(); | |
log << "Log" << "without" << "spaces"; |
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
#!/usr/bin/env bash | |
# Script to disable auto-updater on Ubuntu 16.04 | |
# Disable the automatic package updates | |
echo "Disabling automatic package updates and upgrades" | |
sudo sed -i 's/"1"/"0"/g' /etc/apt/apt.conf.d/10periodic /etc/apt/apt.conf.d/20auto-upgrades | |
# Stop and disable apt updater/upgrade timers/services | |
sudo systemctl disable --now apt-daily.timer |
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
# Create the Xorg.conf template file for intel integrated GPU | |
cat <<EOF | sudo tee /usr/share/X11/xorg.conf.d/20-intel.conf &>/dev/null | |
Section "Device" | |
Identifier "intelgpu0" | |
Option "NoDDC" "true" | |
Option "IgnoreEDID" "true" | |
Driver "intel" | |
EndSection | |
EOF |
OlderNewer