restore partion
diskpart
list disk
select disk #
clean
create partition primary
select partition 1
format quick
Welcome to my world
diskpart
list disk
select disk #
clean
create partition primary
select partition 1
format quick
Robocopy Log Dateien filter with Regex in Notepad++
REM Zeilen, die FEHLER enthalten
REM ^(.*)FEHLER
REM
REM Zeilen mit neuen Dateien
REM ^(.*)EXTRA Datei(.*)$
REM
REM Zeilen mit neuen Verzeichnissen
REM ^(.*)ZUS\. Verz(.*)$
REM
REM Doppelte Zeilen
REM ^(.*?)$\s+?^(?=.*^\1$)
REM
REM Leere Zeilen
REM ^\s*$
# oldname, newname $Computers = import-csv .\Rename.csv $adminUser = Get-Credential # "PREFIX- +" "+ $SerNum" $Computers = Import-Csv ServerNames.csv -Header OldName, NewName Foreach ( $Computer in $Computers ) { Rename-Computer -ComputerName $Computer.OldName -NewName $Computer.NewName -DomainCredential $adminUser -Force -PassThru }
Run the DISM tool
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
git reset --hard <commit-hash-one-before-the-bad-commit>
git push --force
git revert <bad-commit-hash>
git push
git update-index --chmod=+x script.sh
git config --global alias.chmod "update-index --chmod"
Start cmd as Administrator
cd C:\Program Files\VideoLan\VLC
vlc-cache-gen .\plugins
/etc/init.d/postgresql92 rebuild /etc/init.d/postgresql92 start
That is a pretty annoying error message. To get rid of it
apt install pve-kernel-helper
To create a new empty branch in Git, we can use the --orphan
command line option
git checkout --orphan
The command above creates the new empty branch and switches into it.
Once the empty branch s created, we can can delete files from the working directory, so they are not committed in to the new branch
git rm -rf .
Now you are in the empty branch without any inherited files or commits.
If you want to push your empty branch to a remote repository, do the following
git commit --alow-empty -m "Init" git push origin
Note, that if you try to merge another branch into the empty one, you will receive the error: fatal: refusing to merge unrelated histories
Use the --allow-unrelated-history
option to force the merge into the empty branch.
git merge --allow-unrelated-history