Skip to content

Instantly share code, notes, and snippets.

@jakubsuchybio
jakubsuchybio / spolujizda.md
Last active December 20, 2020 10:40
!Important

x jedu pres Dejvice 15:20 a Smichov 15:30 do Pribrami, 1 volny misto

x jedu pres Dejvice 15:20 a Smichov 15:30 do Pribrami, 2 volny mista

x jedu v 5:50 do Prahy, 1 volny misto

x jedu v 5:50 do Prahy, 2 volny mista

Mam Cernou Teslu Model 3 spz EL6 68AE, cena jizdnyho 70,- a kdyztak tel 720 449 349.

@jakubsuchybio
jakubsuchybio / tutorial.md
Created May 8, 2020 23:50 — forked from Hengjie/tutorial.md
How to passthrough SATA drives directly on VMWare ESXI 6.5 as RDMs

How to passthrough SATA drives directly on VMWare EXSI 6.5 as RDMs

There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.

A word about VMWare ESXI 6.7

There is now an option while editing your VM's settings to add a New raw disk when you click `Add ha

@jakubsuchybio
jakubsuchybio / data.csproj
Last active November 4, 2020 21:40
csproj additional folders copy
<ItemGroup>
<DataFiles Include="$(ProjectDir)Data\**\*.*" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Copy SourceFiles="@(DataFiles)" DestinationFiles="@(DataFiles->'$(TargetDir)Data\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
<Target Name="AddPayloadsFolder" AfterTargets="Publish">
<Copy SourceFiles="@(DataFiles)" DestinationFiles="@(DataFiles->'$(PublishDir)Data\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
@jakubsuchybio
jakubsuchybio / ad_force_time_update
Last active August 29, 2015 14:17
Active Directory force time update
Import-Module ActiveDirectory
$list = Get-ADComputer -Filter * | Where { $_.DistinguishedName -like "*Computers*" }
foreach ($computer in $list) {
echo $computer.name
if (Test-Connection -Cn $computer.name -BufferSize 16 -Count 1 -ea 0 -quiet ) {
[string]$compname = $computer.name
w32tm /resync /nowait /computer:$compname
} else {
echo DOWN!