sudo pacman -Syu linux-headers broadcom-wl-dkmssudo mkinitcpio -p linux| #!/bin/bash | |
| set -e | |
| echo "[0/5] Checking basic dependencies..." | |
| if ! command -v cpio &> /dev/null; then | |
| echo "cpio not found, installing..." | |
| sudo pacman -S --noconfirm cpio | |
| fi | |
| echo "[1/5] Installing dependencies..." |
| #!/bin/bash | |
| set -e | |
| # Configurações | |
| DISK="/dev/nvme0n1" | |
| HOSTNAME="ArchBook" | |
| USERNAME="derkian" | |
| USERPASS="derkian" | |
| LOCALE="pt_BR.UTF-8 UTF-8" | |
| LANGUAGE="pt_BR.UTF-8" |
While installing Arch Linux with Broadcom BCM4360, you need to install and configure NetworkManager and dhcpcd while on chroot.
If you, like me, skipped the configuration of these during chroot, and the internet stopped working after the installation, don’t worry, I’ve got you covered.
lsblk| 1 - Enable the nonfree repos. By adding "non-free" to your "/etc/apt/sources.list" file or do it in "Software & Updates" app. | |
| 2 - Run the following commands: | |
| sudo apt-get update | |
| sudo apt-get install broadcom-sta-* | |
| 3 - If this does not work, you must compile your kernel with the driver; | |
| sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms |
| 1 - Adding a User to the sudo Group | |
| The easiest way to give a user sudo access is to add them to the sudo group. By default, Debian is configured in a way that members of the sudo group are permitted to use the sudo command. | |
| sudo usermod -aG sudo username | |
| Replace username with the name of the user you want to grant sudo privileges. | |
| 2 - Verify the User is Part of the sudo Group | |
| To ensure the user has been added to the group, you can use the groups command: |
| import re | |
| import unidecode | |
| def remove_accents(text): | |
| return unidecode.unidecode(text) | |
| def replace_function(match): | |
| return match.group(0).replace(match.group(2), remove_accents(match.group(2))) | |
| file_path = 'file.html' |
| from googleapiclient.discovery import build | |
| import re | |
| youtube = build('youtube', 'v3', developerKey='API_KEY') | |
| channel_id = 'CHANNEL_ID' | |
| def get_uploads_playlist_id(channel_id): | |
| response = youtube.channels().list( | |
| part='contentDetails', |
| #!/bin/bash | |
| # Hey, this is a mirroring bare script, but if you just want a simple backup try this: https://gist.github.com/iandark/d79d08a75f444647afa82744af8fea60 | |
| # This shell script reads a CSV file, where you can pass an origin repository and makes a whole backup into another repository. | |
| # | |
| # The expected format of the CSV file is below. | |
| # | |
| # +--------------------------------------------+-----------------------------------------------+ | |
| # | Origin | Backup | | |
| # +--------------------------------------------+-----------------------------------------------+ |