- Author: Donny Kurnia
- Release Date: Jun 5, 2018
- Original Post
Take note this is my personal edited version and the command related to Arch has been changed to work on my Arch system.
Take note this is my personal edited version and the command related to Arch has been changed to work on my Arch system.
sudo touch /etc/modprobe.d/zz-nvidia-modeset.conf | |
sudo echo "options nvidia_drm modeset=1" > /etc/modprobe.d/zz-nvidia-modeset.conf | |
echo "Where XY is the name of the kernel, for example linux419." | |
echo "..." | |
echo "Run the following command:" | |
echo "mkinitcpio -p linuxXY" |
require('./server'); | |
const { app, BrowserWindow } = require('electron') | |
let win; | |
function createWindow () { | |
// Create the browser window. | |
win = new BrowserWindow({ | |
width: 1200, | |
height: 720, |
#!/bin/bash | |
sudo pacman -S snapd --noconfirm | |
sudo systemctl restart snapd.service | |
sudo snap install chromium | |
/snap/bin/chromium |
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
using namespace std; | |
// mutex used to lock other threads from gaining access to shared resource | |
mutex m_mutex; | |
// shared print function for cout | |
void shared_print(char c, int v) { |
#!/bin/bash | |
#Disable touchpad when external mouse is plugged in | |
gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled-on-external-mouse | |
#Install TLP for better control over temperature and CPU frequency on Intel P-State | |
sudo add-apt-repository ppa:linrunner/tlp | |
sudo apt-get install tlp tlp-rdw | |
sudo nano /etc/default/tlp | |
sudo tlp-stat -s |
#!/bin/bash | |
# Root? | |
if [ "$(id -u)" != "0" ]; then | |
exec sudo "$0" "$@" | |
fi | |
fan_speeds() | |
{ | |
echo "Available fan speeds on this iMac:" |