Ctrl + Alt + Space
<kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Space</kbd>
curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /usr/share/keyrings/google-chrome.gpg | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
sudo apt update | |
sudo apt install google-chrome-stable |
#!/bin/bash | |
# Update and upgrade system packages | |
sudo apt update && sudo apt upgrade -y | |
# Install Development Tools | |
sudo apt install -y nano git jq wget curl gpg | |
sudo apt install -y ca-certificates apt-transport-https gnupg | |
sudo apt install -y unzip p7zip unrar | |
sudo apt install -y build-essential software-properties-common python3 python3-pip |
#!/bin/bash | |
JSON_URL="https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json" | |
# Check if the system is Debian-based | |
if ! command -v lsb_release &> /dev/null || [ "$(lsb_release -is)" != "Debian" -a "$(lsb_release -is)" != "Ubuntu" ]; then | |
echo "This script is for Debian-based systems only. ❌" | |
exit 1 | |
fi |
# Adding current user to www-data | |
sudo adduser $USER www-data | |
# change ownership to user:www-data and | |
sudo chown $USER:www-data -R /var/www/html | |
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html | |
# change file permissions of existing files and folders to 755/644 | |
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \; | |
sudo find /var/www/html -type f -exec chmod g=rws "{}" \; |
Ctrl + Alt + Space
<kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>Space</kbd>
#!/bin/bash | |
# disable the output of messages to the console if users log in under non-existent names | |
exec 2>/dev/null | |
# name of the group that is allowed access on weekends | |
group="admin" | |
# check if the user $ PAM_USER belongs to the admin group: no - 0, yes -1 | |
check_group=$(id -Gn $PAM_USER | grep -w $group | awk '{print $2}' | wc -l) |
# Encode inputfile.tar.gz as a series of video frames | |
# Frames are written to frames/frameNNNN.png | |
from PIL import Image | |
with open('inputfile.tar.gz', 'rb') as f: | |
data = f.read() | |
WIDTH = 120 | |
HEIGHT = 90 | |
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8) |
#!/bin/sh | |
### | |
# vpngate.net client for OpenWRT | |
# | |
# This script allows to pull server list from vpngate public VPN server registry and filter | |
# it by country, score, maximum ping and uptime. | |
# | |
# Once server that matches requested criteria found, script will setup openvpn | |
# instance via UCI and perform connection test. |