Skip to content

Instantly share code, notes, and snippets.

View AlexZ005's full-sized avatar
💭
What's happening?

AlexZ005

💭
What's happening?
View GitHub Profile
[manjaro manjaro]# btrfs check --repair /dev/sda2
enabling repair mode
parent transid verify failed on 45465600 wanted 85472 found 85467
parent transid verify failed on 45465600 wanted 85472 found 85467
Ignoring transid failure
Checking filesystem on /dev/sda2
UUID: fc21feaa-71af-4b3b-8282-4a0e1ee7b2ec
repair mode will force to clear out log tree, are you sure? [y/N]: y
Fixed 0 roots.
checking extents
@AlexZ005
AlexZ005 / Hyper-V NAT for Windows Server 2016
Created October 8, 2018 21:37
Configuring NAT for Hyper-V Virtual Machines on Windows Server 2016
#1. Host machine
# Create new switch
New-VMSwitch -SwitchName NAT -SwitchType Internal
# Check current VM network adapters
Get-VMNetworkAdapter -VMName DC,FS
# Connect current adapters to created NAT switch
Connect-VMNetworkAdapter -VMName DC,FS -SwitchName NAT
# Add network adapters for both VM's with selected virtual switch
#Add-VMNetworkAdapter -VMName DC,FS -SwitchName NAT
// ----------------------------------------------------------------------------------------
// Slight modification of "Toon Cloud" by Antoine Clappier - March 2015
//
// Licensed under:
// A Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
// http://creativecommons.org/licenses/by-nc-sa/4.0/
// ----------------------------------------------------------------------------------------
//#define TAU 6.28318530718
@setlocal enableextensions enabledelayedexpansion
@echo off
set VAR=EXLETTE
for /f "skip=1" %%L in ('wmic logicaldisk where volumename^="Elements" Get Caption') do @call :SetVar %%L
set VAR=EXDEST
for /f "skip=1" %%L in ('wmic logicaldisk where volumename^="THESAURUS" Get Caption') do @call :SetVar %%L
echo Deleted files will be moved to !EXDEST:~0,-1!/DELETE/Backup-rsync-temp/Photo/