This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change to name of TARGET-VM. | |
$vm='CHANGE_ME' | |
# Change to PCI device location (π‘ Location). | |
$Location = 'CHANGE_ME' | |
# Enable CPU features. | |
Set-VM -GuestControlledCacheTypes $true -VMName $vm | |
# Host-Shutdown rule must be changed for the VM. | |
Set-VM -Name $vm -AutomaticStopAction TurnOff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* IFFT Filter script, to execute an applet only if it's dark outside. Works position based. | |
* Just change the lat long below to your wanted location. | |
*/ | |
const pos = {lat: 52.XYZ, long: 7.XYZ}; | |
// Just placeholder for codecompletion! | |
// let Meta:any; | |
// let MakerWebhooks:any; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open the Merge-Review, navigate to the "Changes (x)" tab, and paste the following code into the developer console. | |
var totalRemoved = 0; | |
var totalAdded = 0; | |
for(var i = 0; i < $(".file-row-stats > .cgreen").length; i++) | |
{ | |
totalAdded += parseInt($(".file-row-stats > .cgreen")[i].innerText); | |
totalRemoved += parseInt($(".file-row-stats > .cred")[i].innerText); | |
} | |
console.log(`Added: \t\t${totalAdded}\nRemoved: \t${totalRemoved}\nTotal: \t\t${totalAdded + totalRemoved}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import os | |
print("JPEG to PNG converter with Color replacement started.") | |
sourceDirectory = ".\source_images" | |
targetDirectory = ".\converted_images" | |
minColorValue = 235 | |
maxColorValue = 255 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
How to define a variable. | |
Just stick a new node in a property group. | |
--> | |
<PropertyGroup> | |
<!-- This node in a property group will define a variable --> | |
<TestVariable>Test Variable Value</TestVariable> | |