This file contains 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 | |
# In both host and container, add the nVidia repros (see https://nvidia.github.io/nvidia-container-runtime/) | |
set -x | |
which curl > /dev/null || apt install curl | |
# add the repo key: | |
curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | sudo apt-key add - | |
# add the 'nvidia container runtime' repo to apt's sources | |
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) |
This file contains 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 | |
# Global variables | |
SSH_CONFIG="/etc/ssh/sshd_config" | |
SSH_CONFIG_D="/etc/ssh/sshd_config.d/60-cloudimg-settings.conf" | |
# Function to update system repositories | |
update_system() { | |
sudo apt update && sudo apt upgrade -y | |
} |
This file contains 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 to configure Git to use a Personal Access Token (PAT) | |
setup_pat() { | |
echo "Configuring Git to use a Personal Access Token (PAT)..." | |
read -p 'Enter your GitHub username: ' github_username | |
echo "Please generate a PAT from https://github.com/settings/tokens and copy it." | |
read -sp 'Enter your GitHub Personal Access Token: ' github_pat | |
echo |
This file contains 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
Add-Type -AssemblyName System.Windows.Forms | |
while ($true) | |
{ | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
$x = ($pos.X % 500) + 1 | |
$y = ($pos.Y % 500) + 1 | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
Start-Sleep -Seconds 10 | |
} |
This file contains 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 | |
#Uninstall docker old versions | |
sudo apt remove --yes docker docker-engine docker.io containerd runc || true | |
#Set up the docker repository | |
sudo apt update | |
sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
sudo add-apt-repository \ |
This file contains 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 | |
powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/c,net stop spooler & DEL /F /S /Q %systemroot%\System32\spool\PRINTERS\* & net start spooler' -Verb runAs" |
This file contains 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
docker run -it -d --name=xteve -p 34400:34400 -v /volume1/nasbox/Docker/xteve/xteve_home:/home/xteve/.xteve bl0m1/xtevedocker:latest | |
docker run -it -d --name=xteve --network=host --restart=always -v/volume1/nasbox/Docker/xteve:/home/xteve/conf dnsforge/xteve:latest |
This file contains 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
esphome: | |
name: airwick_kitchen | |
platform: ESP8266 | |
board: nodemcuv2 | |
wifi: | |
ssid: "ssid" | |
password: "pass" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
This file contains 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
#https://releases.ubuntu.com/20.04/ubuntu-20.04-live-server-amd64.iso | |
#https://github.com/pbatard/rufus/releases/download/v3.10/rufus-3.10p.exe | |
sudo groupadd docker | |
sudo usermod -aG docker ${USER} | |
logout |
NewerOlder