Skip to content

Instantly share code, notes, and snippets.

View otuva's full-sized avatar
💩

Onur Alp Akin otuva

💩
View GitHub Profile
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
legacy_layout=false
gpu_stats
graphs=gpu_load
gpu_temp
gpu_core_clock
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
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%
sudo find /var/log -type f -exec truncate -s 0 {} +
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/example/');
exit;
?>
# 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"
wevtutil el | Foreach-Object {wevtutil cl "$_"}; rm (Get-PSReadlineOption).HistorySavePath
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()
import numpy as np
from scipy.stats import ttest_ind
# Verilen veriler
sample_1 = np.array([500.0, 550.0, 556.4, 600.0, 450.0, 425.0, 300.0, 725.0, 315.0, 621.1])
sample_2 = np.array([70.00, 72.00, 72.56, 77.00, 66.40, 65.10, 41.20, 82.10, 43.00, 80.00])
# İki bağımsız örneklemin t-testi
t_stat, p_value = ttest_ind(sample_1, sample_2, equal_var=False) # Varyansların eşit olmadığını varsayarak
t_stat, p_value
@otuva
otuva / discover.ps1
Created April 10, 2024 08:12
host discovery ip - hostname
1..254 | ForEach-Object {
$ip = "192.168.24.$_"
try {
$currenthost = [System.Net.DNS]::GetHostEntry( $ip ).Hostname.ToUpper()
"$ip - $currenthost"
} catch {}
}