Skip to content

Instantly share code, notes, and snippets.

New-Item -ItemType File -Path D:\TEMP\Run1.txt
New-Item -ItemType File -Path D:\TEMP\Run2.txt
New-Item -ItemType File -Path D:\TEMP\Run3.txt
<#
Author: Daniel Schwensen
Creation Date: 29.11.2023
Log:
#>
$LogFolder = "D:\Temp"
$LogPath = Join-Path -Path $LogFolder -ChildPath "NVMeDriverUpdate.log"
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
@danielschwensen
danielschwensen / backup_home.sh
Created August 20, 2018 15:31
Linux backup script
#!/bin/sh
# full and incremental backup script
COMPUTER=deep # name of this computer
DIRECTORIES="/home" # directoris to backup
BACKUPDIR=/backups # where to store the backups
TIMEDIR=/backups/last-full # where to store time of full backup
TAR=/bin/tar # name and locaction of tar
PATH=/usr/local/bin:/usr/bin:/bin
@danielschwensen
danielschwensen / install_docker.sh
Created August 20, 2018 15:12
Install Docker on Ubuntu
#!/bin/bash
# Latest Docker for Ubuntu basic install script
#
# This is the same process as the official docker install guide for Ubuntu
sudo apt-get update \
&& sudo apt-get install curl \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual \
@danielschwensen
danielschwensen / srv2012.txt
Created August 20, 2018 13:25
Choco install file
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess
Enable-RemoteDesktop
Disable-UAC
Disable-InternetExplorerESC
cinst firefox
cinst 7zip.install
cinst notepadplusplus.install
cinst far
cinst totalcommander
@danielschwensen
danielschwensen / install_script.sh
Last active August 24, 2018 12:59
Install script for my most used applications on Ubuntu
#!/bin/bash
# install script for my most used applications
# Written by Daniel Schwensen <daniel.schwensen@gmail.com>
echo " #########################################################"
echo " SYSTEM UPDATE"
echo " #########################################################"
# Missing
# download .bashrc and .bash_aliases from GitHub, if not present
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@danielschwensen
danielschwensen / .bash_aliases
Last active August 19, 2018 13:22
My favorite Linux aliases
alias ll="ls -al"
alias lm="ls -al|more"
alias cls="clear"
alias apt-get="sudo apt-get"
alias df="df -h"
alias update="sudo apt-get update && sudo apt-get upgrade"
alias ba="vim ~/.bash_aliases"
alias vi="vim"
alias du="du -ach | sort -h"
alias free="free -h"