This file contains 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
[System.Collections.Generic.HashSet[String]]$oldUsers = @("Val1", "Val2", "Val3", "Val4") # first collection | |
[System.Collections.Generic.HashSet[String]]$newUsers = @("Val1", "Val2", "Val3") # second collection | |
$newUsers.ExceptWith($oldUsers) | |
$newUsers |
This file contains 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
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability –Online |
This file contains 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
################### File Generated by GOverlay ################### | |
toggle_fps_limit=F1 | |
legacy_layout=false | |
gpu_stats | |
graphs=gpu_load | |
gpu_temp | |
gpu_core_clock |
This file contains 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
usage: gamescope [options...] -- [command...] | |
Options: | |
--help show help message | |
-w, --nested-width game width | |
-h, --nested-height game height | |
-r, --nested-refresh game refresh rate (frames per second) | |
-m, --max-scale maximum scale factor | |
-i, --integer-scale force scale factor to integer | |
-W, --output-width output width |
This file contains 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
SDL_VIDEODRIVER=x11 gamemoderun gamescope -W 1920 -H 1080 -- %command% | |
mangohud gamemoderun %command% | |
SDL_VIDEODRIVER=x11 gamemoderun gamescope -w 1920 -h 1080 -W 1920 -H 1080 -- %command% | |
gamemoderun gamescope -w 1920 -h 1080 -W 1920 -H 1080 -e -b -- mangohud %command% | |
gamescope -w 3440 -h 1440 -W 1920 -H 1080 -b -- mangohud %command% | |
This file contains 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
sudo find /var/log -type f -exec truncate -s 0 {} + |
This file contains 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
<?php | |
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { | |
$uri = 'https://'; | |
} else { | |
$uri = 'http://'; | |
} | |
$uri .= $_SERVER['HTTP_HOST']; | |
header('Location: '.$uri.'/example/'); | |
exit; | |
?> |
This file contains 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
# Scheduler Task that runs automatically on the start //// https://stackoverflow.com/a/56614411 | |
schtasks /create /tn "FileMonitor" /sc onstart /delay 0000:30 /rl highest /ru system /tr "powershell.exe -file C:\Doc\Files\FileMonitor.ps1" | |
# You can list the task like this | |
schtasks /Query /TN "FileMonitor" /V /FO List | |
# or delete it | |
schtasks /Delete /TN "FileMonitor" |
This file contains 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
wevtutil el | Foreach-Object {wevtutil cl "$_"}; rm (Get-PSReadlineOption).HistorySavePath |
This file contains 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
import statsmodels.api as sm | |
# Veriler | |
y = np.array([500.0, 550.0, 556.4, 600.0, 450.0, 425.0, 300.0, 725.0, 315.0, 621.1]) | |
x = np.array([70.00, 72.00, 72.56, 77.00, 66.40, 65.10, 41.20, 82.10, 43.00, 80.00]) | |
# Doğrusal regresyon modeli | |
x = sm.add_constant(x) # Model için sabit ekleniyor | |
model = sm.OLS(y, x) | |
results = model.fit() |
NewerOlder