(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
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
| ### Preseed configuration for Debian | |
| # 1. Setup a webserver on proxmox to host this | |
| # copy this file to /var/www/html/preseed.cfg | |
| # 2. Download https://www.debian.org/distrib/netinst iso | |
| # 3. Create a proxmox vm and atach the netinst iso | |
| # 4. Boot the VM and at Debian boot menu press escape and type the following | |
| # auto url=http://server/preseed.cfg | |
| # Locale | |
| d-i debian-installer/language string en |
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/sh | |
| di() { | |
| for deb_file in "$@"; do | |
| local package_name=$(basename "$deb_file" | cut -d'_' -f1) | |
| if dpkg -l | grep -q "^ii $package_name "; then | |
| echo "$package_name is already installed, skipping installation." | |
| else | |
| dpkg -i "$deb_file" | |
| fi |
Some notes on what I was testing...
Working on getting Commodore and Amiga BBS and terminals going.
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
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
| # have your pi automatically log in to x and want to remotely view the screen with rdp | |
| # | |
| sudo apt install freerdp2-shadow-cli | |
| cp /etc/xdg/lxsession/LXDE-pi/autostart .config/lxsession/LXDE-pi/autostart | |
| echo @freerdp-shadow-cli -auth >>.config/lxsession/LXDE-pi/autostart |
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
| @echo off | |
| net.exe session 1>NUL 2>NUL || (Echo This script requires elevated rights. & Exit /b 1) | |
| set key=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WslService | |
| set val=Start | |
| set new=0x0 | |
| set old= | |
| for /F "skip=2 tokens=3" %%r in ('reg query %key% /v %val%') do set old=%%r | |
| echo old=%old% |
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
| @echo off | |
| net.exe session 1>NUL 2>NUL || (Echo This script requires elevated rights. & Exit /b 1) | |
| set key=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System | |
| set val=ConsentPromptBehaviorAdmin | |
| set new=0x0 | |
| set old= | |
| echo 0 = Elevate without prompting | |
| echo 1 = Prompt for credentials on the secure desktop |
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
| $dir = get-childitem -path E:\tv -directory -Exclude "*sonar*" | |
| foreach ($series in $dir){ | |
| $show = get-item $series | |
| $show_lwt = $show.LastWriteTime | |
| $seasons = get-childitem -directory $series | |
| foreach ($season in $seasons){ | |
| $showseason = get-item "$series\$season" | |
| $season_lwt = $showseason.LastWriteTime |
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 [ ! -f "$HOME/bin/composer.phar" ]; then | |
| sudo apt-get update | grep -P "\d\K upgraded" | |
| sudo apt-get -y install curl php-cli php-mbstring git unzip | grep -P "\d\K installed" | |
| if [[ ! -f "composer-setup.php" ]]; then | |
| php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
| fi | |
| HASH="$(wget -q -O - https://composer.github.io/installer.sig)" | |
| HASHFILE=$(php -r "echo hash_file('SHA384','composer-setup.php');") |