Mirrors will be sorted by their current response times and then te mirror list will be exported and saved to the following directory:
/etc/pacman.d/mirrorlist
- Fetch and add each and every mirror to the list:
#!/bin/bash | |
if [ "$(id -u)" != "0" ]; then | |
exec sudo "$0" "$@" | |
fi | |
change_mac() { | |
echo -n "Choose network interface. (enp4s0f2): " | |
read nic | |
ifconfig $nic down |
#!/bin/bash | |
# Root? | |
if [ "$(id -u)" != "0" ]; then | |
exec sudo "$0" "$@" | |
fi | |
fan_speeds() | |
{ | |
echo "Available fan speeds on this iMac:" |
#!/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 |
#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 | |
sudo pacman -S snapd --noconfirm | |
sudo systemctl restart snapd.service | |
sudo snap install chromium | |
/snap/bin/chromium |
require('./server'); | |
const { app, BrowserWindow } = require('electron') | |
let win; | |
function createWindow () { | |
// Create the browser window. | |
win = new BrowserWindow({ | |
width: 1200, | |
height: 720, |
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" |
Take note this is my personal edited version and the command related to Arch has been changed to work on my Arch system.