`sudo lshw`
`sudo lshw -businfo`
- CPU physcial info:
sudo lshw -businfo | grep cpu
- CPU details:
cat /proc/cpuinfo
- CPU architecture:
lscpu | grep -i arch
- CPU detailed info:
cpuid
- RAM physical info:
sudo lshw -businfo | grep memory
#!/bin/bash | |
sudo apt-get remove docker docker-engine docker.io | |
curl -fsSL get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
echo "Please enter username to add to Docker group to run Docker as non-root user:" | |
read username |
!#/bin/bash | |
package_name=python3.5 | |
# Get list of all installed apps | |
apt list --installed | grep $package_name | |
# Uninstall old version of Python | |
apt-get remove $old_package_name |
# Install Ubuntu on VM - shared folder enabled | |
# Install Guest Addition Disk | |
/media/username/VBox_GAs_5.2.6\VBoxLinuxAdditions.run | |
# Update packages | |
apt-get update | |
# Grant access to user to access shared folder | |
adduser $username vboxsf # needs reboot |
#!/bin/bash | |
sudo apt-get -y update | |
# Install required libraries | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
# Add Key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
#!/bin/bash | |
# Set personal variables | |
echo "Git Username: " | |
read GIT_USER | |
echo "Git email: " | |
read GIT_EMAIL | |
# Set environment as development or production | |
echo "Environment: [prd/dev]? " |
@ECHO OFF | |
SET UnzipperPATH="C:\Program Files\7-Zip\7z.exe" | |
SET HL7EditorPATH="C:\Program Files\7edit.com\7Edit 2.x\7edit.exe" | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
FOR %%f IN (*.zip) DO ( | |
CALL :Unzip %%~nf | |
SET /P DeleteZip="Delete Zip File? [y/n]: " | |
IF /I !DeleteZip!==y DEL /Q %%~nf.zip |
@ECHO ON | |
SET SourceDir=%1 | |
SET DestUNC=%2 | |
:: Remove quotes around the path | |
SET SourceDir=%SourceDir:~1,-1% | |
SET DestUNC=%DestUNC:~1,-1% | |
SET LogPath="%SourceDir%\MoveProcesslog.txt" | |
SET MaxLogSize=500000 |
function CreateFailureFlagFile { | |
$script:FailureFilePath = "$(Get-Location)\\_Failure-$(Get-Date -format yyyyMMdd).txt" | |
ECHO 'Issue occured during processing of MoveFolders-EmailLowDiskFreeSpace.ps1 - Please refer to log file in same directory named TransferLog.txt' | Out-File -FilePath $FailureFilePath | |
} | |
function GetConfigs { | |
try { | |
$script:LogPath = Join-Path -Path $(Get-Location).Path -ChildPath "TransferLog.txt" | |
MoveLogToOldLogIfLarge |