# Disable SteamOS read-only mode
# I hope you know what you are doing
sudo steamos-readonly disable
# Initialize and populate pacman keys
sudo pacman-key --init
This file contains hidden or 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
| # /etc/X11/xorg.conf.d/10-monitor.conf | |
| Section "Monitor" | |
| Identifier "Monitor0" | |
| VendorName "Unknown" | |
| ModelName "Unknown" | |
| HorizSync 28.0 - 81.0 | |
| VertRefresh 43.0 - 75.0 | |
| Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
| Option "PreferredMode" "1920x1080_60.00" | |
| EndSection |
This file contains hidden or 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 | |
| function get_active_window() { | |
| printf "0x%08x" $(xdotool getactivewindow) | |
| } | |
| function get_current_opacity() { | |
| window="$1" | |
| opacity=$(xprop -id $window | grep _NET_WM_WINDOW_OPACITY | awk '{print $3}') | |
| if [ -z $opacity ]; then |
This file contains hidden or 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
| # /etc/netplan/01-kvmbridge.yaml | |
| network: | |
| version: 2 | |
| renderer: networkd | |
| ethernets: | |
| enp2s0: | |
| dhcp4: yes | |
| dhcp6: no | |
| bridges: |
This file contains hidden or 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
| { | |
| "name": "eeprom_backup-20220601-145239", | |
| "time": "2022-06-01 14:52:39", | |
| "version": 1, | |
| "data": { | |
| "steps": { | |
| "command": "M92", | |
| "params": { | |
| "X": 80.0, | |
| "Y": 80.0, |
This file contains hidden or 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
| To disable GUI on boot, run: | |
| `sudo systemctl set-default multi-user.target` | |
| To enable GUI again issue the command: | |
| `sudo systemctl set-default graphical.target` | |
| To start Gnome session on a system without a current GUI just execute: | |
| sudo systemctl start gdm3.service |
This file contains hidden or 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
| adb shell | |
| pm uninstall -k --user 0 com.micredit.in | |
| pm uninstall -k --user 0 com.xiaomi.payment | |
| pm uninstall -k --user 0 com.miui.videoplayer | |
| pm uninstall -k --user 0 com.mi.globalbrowser | |
| pm uninstall -k --user 0 com.miui.weather2 | |
| pm uninstall -k --user 0 com.miui.player |
This file contains hidden or 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 iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 | |
| sudo apt install iptables-persistent |
This file contains hidden or 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 | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Me wants sudo!" | |
| exit | |
| fi | |
| echo " | |
| ************************************************************************************** | |
| This script will try to compile and setup nginx as a dns load balancer. |
NewerOlder