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 | |
| # | |
| # Lenovo Legion 5 Patch Utility | |
| # | |
| # This script aims to simplify the application of various patches required for Lenovo Legion 5 15ARH05. | |
| # For convenience you can run this script with `bash <(curl https://gist.githubusercontent.com/jbuncle/7dacde983b3c33b3b816b10e2fd2308a/raw/build-patched-kernel.sh)` | |
| # | |
| # References: | |
| # - Original bug and related patch: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190 | |
| # - Touchpad patch file: https://www.spinics.net/lists/linux-input/msg69458.html |
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
| ## YOUTUBE VIDEO PART I: https://youtu.be/iZzx1keKztY | |
| ## | |
| import pyautogui | |
| from time import sleep | |
| ## | |
| # пауза и досрочное прекращение | |
| pyautogui.PAUSE = 1.5 | |
| pyautogui.FAILSAFE = True | |
| ## |
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
| # Captive portal setup | |
| ######################################################## | |
| sudo apt-get update -qq | |
| sudo apt-get install -qq dnsmasq vim hostapd ufw dnsutils netstat-nat conntrack nginx php5 php5-common php5-fpm | |
| sudo mkdir /usr/share/nginx/html/portal | |
| sudo useradd nginx | |
| sudo chown nginx:www-data /usr/share/nginx/html/portal | |
| sudo chmod 755 /usr/share/nginx/html/portal | |
| ######################################################## |