sudo apt upgrade -y && sudo apt update -y && sudo apt autoremove -y && sudo apt install wget -y && wget https://raw.githubusercontent.com/brettjrea/Scripts_Fix/master/fixscripts.sh && wget https://raw.githubusercontent.com/brettjrea/Debian_Bullseye_Upgrade_Script/master/upgrade.sh && sudo bash fixscripts.sh && sudo bash upgrade.sh && sudo apt autoremove -y && sudo apt clean -y set -o emacs
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 | |
# update and upgrade packages | |
sudo apt update -y && sudo apt upgrade -y | |
# remove unused packages | |
sudo apt autoremove -y | |
# install curl | |
sudo apt install curl -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 | |
### Disable Prompts. | |
export DEBIAN_FRONTEND=noninteractive | |
###Update & Upgrade. | |
apt update -y && apt dist-upgrade -y | |
###Configure available releases to LTS. | |
sed -i 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgrades | |
###Change from Focal to Jammy. | |
sed -i 's/focal/jammy/g' /etc/apt/sources.list | |
apt update -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
# Install VS Code | |
$vscodeInstaller = "https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user" | |
$vscodeInstallerPath = "$env:TEMP\vscode_installer.exe" | |
Invoke-WebRequest -Uri $vscodeInstaller -OutFile $vscodeInstallerPath | |
Start-Process -FilePath $vscodeInstallerPath -ArgumentList "/VERYSILENT /NORESTART /SUPPRESSMSGBOXES" -Wait | |
# Install Remote Development (extension pack) | |
$remoteDevelopmentExtensionPack = "ms-vscode-remote.vscode-remote-extensionpack" | |
code --install-extension $remoteDevelopmentExtensionPack |
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
# Step 1: Open Windows Powershell from powerusers menu | |
Start-Process powershell -Verb runAs | |
# Step 2: Enable Windows Optional Feature Microsoft-Windows-Subsystem-Linux | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
Write-Host "Windows Optional Feature Microsoft-Windows-Subsystem-Linux is enabled." | |
# Enable Hyper-V | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All | |
wsl --set-default-version 2 |
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 | |
### Disable Prompts. | |
export DEBIAN_FRONTEND=noninteractive | |
###Update & Upgrade. | |
apt update -y && apt dist-upgrade -y | |
###Configure available releases to LTS. | |
sed -i 's/Prompt=lts/Prompt=normal/g' /etc/update-manager/release-upgrades | |
###Change from Buster to Bullseye. | |
sed -i 's/buster/bullseye/g' /etc/apt/sources.list | |
apt update -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
git diff --no-index file1 file2 > diff.txt |
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
javadoc --ignore-source-errors -d [output path] [input path] |
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
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/java/.devcontainer/base.Dockerfile | |
# [Choice] Java version (use -bullseye variants on local arm64/Apple Silicon): 11, 17, 11-bullseye, 17-bullseye, 11-buster, 17-buster | |
ARG VARIANT="17-bullseye" | |
FROM mcr.microsoft.com/vscode/devcontainers/java:0-${VARIANT} | |
# [Option] Install Maven | |
ARG INSTALL_MAVEN="false" | |
ARG MAVEN_VERSION="" | |
# [Option] Install Gradle |
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
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/java | |
{ | |
"name": "Java", | |
"build": { | |
"dockerfile": "Dockerfile", | |
"args": { | |
// Update the VARIANT arg to pick a Java version: 11, 17 | |
// Append -bullseye or -buster to pin to an OS version. | |
// Use the -bullseye variants on local arm64/Apple Silicon. |