Skip to content

Instantly share code, notes, and snippets.

View XTechnology-TR's full-sized avatar
:shipit:
Focusing

xtechnology XTechnology-TR

:shipit:
Focusing
View GitHub Profile
@XTechnology-TR
XTechnology-TR / kabadayi.php
Last active December 21, 2025 02:56
The base configuration for WordPress wp-config.php
/*
Plugin Name: XTechnology - Kabadayı
Plugin URI: https://www.xtechnology.com.tr
Description: Bu eklentinin birçok alt özelliği olmasına rağmen, asıl amacı teknik konularda çok bilgili olmayan son kullanıcıların sistemlerinde etkinleştirilerek web sitelerini optimize etmektir. WordPress'e ait gereksiz emojiler ve iframe'ler gibi bazı hizmetleri kaldırır. CSS ve JavaScript dosyalarını site başlığından altbilgiye taşıyarak sitenin daha hızlı yüklenmesini sağlar. Ayrıca şunları da sunar: – Otomatik meta etiket optimizasyonu. – Yinelenen içerik sorunlarını önlemek için kanonik URL'ler. – Net site indeksleme için gelişmiş XML site haritaları. – Arama motoru anlayışını ve görünürlüğünü iyileştirmek için sınıfının en iyisi Schema.org entegrasyonu. – Ziyaretçiler ve tarayıcılar için eksiksiz yol izleme kontrolü. – Yükleme sürelerini azaltmaya yardımcı olan performans iyileştirmeleri. – Sosyal medya paylaşımını geliştirmek için Open Graph ve X Cards entegrasyonu. – Dinamik değişkenlerle özelleştirilebilir başlıklar v
@XTechnology-TR
XTechnology-TR / Nvidia On Hyprland.md
Created December 14, 2025 16:20 — forked from kRHYME7/Nvidia On Hyprland.md
# Hyprland Environment Variables for NVIDIA and Intel Setups

Hyprland Environment Variables for NVIDIA and Intel Setups

I made this guide because I have a hybrid GPU. In some setup like HyDE, there is a chance that the environment variables are being set for NVIDIA ONLY setup.

Environment Variable NVIDIA Only Hybrid (NVIDIA+Intel) Intel Only Explanation / Notes
LIBVA_DRIVER_NAME,nvidia ✅ Use ❌ Avoid (use iHD or comment out) ❌ Avoid (use iHD) VA-API driver for NVIDIA. Causes issues on hybrid or Intel-only setups. Use iHD for Intel VA-API.
`LIBVA
@XTechnology-TR
XTechnology-TR / btrfs-chroot-guide.md
Created December 2, 2025 23:27 — forked from f4str/btrfs-chroot-guide.md
Btrfs Chroot Guide

Btrfs Chroot Guide

Guide to chroot into Debian or Fedora systems to change the password and/or reinstall GRUB.

Mount Filesystems

Mount the btrfs subvolumes. Subvolumes @ and @home are required. Typically @cache, @log, and @swap are not needed.

sudo mount /dev/nvme0n1p2 /mnt -t btrfs -o subvol=@
@XTechnology-TR
XTechnology-TR / Understanding the Role of a Day Trader.md
Created February 11, 2025 18:02 — forked from johntday/Understanding the Role of a Day Trader.md
Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day.

Understanding the Role of a Day Trader

Date: January 27, 2025

Introduction

Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day. This method is characterized by its focus on short-term price movements and the avoidance of overnight risks. The allure of day trading lies in its potential for high returns and financial independence, offering traders the flexibility to work from virtually anywhere with an internet connection. However, this potential is counterbalanced by significant risks, including financial losses and the psychological demands of maintaining emotional control under pressure (Forbes).

The mechanics of day trading involve a variety of strategies such as scalping, momentum trading, and news-based trading, each designed to exploit market inefficiencies. These strategies require a deep understanding of market dynamics and th

@XTechnology-TR
XTechnology-TR / calendar.py
Created February 8, 2025 00:06 — forked from mustafa-qamaruddin/calendar.py
Import Custom CSV into Zipline
from zipline.utils.calendars import TradingCalendar
from datetime import time
from pandas.tseries.offsets import CustomBusinessDay
from pytz import timezone
from zipline.utils.memoize import lazyval
class CryptoCalendar(TradingCalendar):
"""
Exchange calendar for 24/7 trading.
@XTechnology-TR
XTechnology-TR / Complete MailWizz Setup
Created November 17, 2024 21:18 — forked from amanjuman/Complete MailWizz Setup
Install MailWizz on Ubuntu 22.04 using LEMP (Nginx)
## System Update and Install required softwares
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo add-apt-repository ppa:ondrej/php -y && add-apt-repository ppa:nginx/stable -y
sudo apt-get install curl cron nano nginx mariadb-server unzip zip python3-certbot-nginx php-pear php8.0-{curl,fpm,imap,gd,memcache,mbstring,mysql,pspell,sqlite3,tidy,xsl,xml,xmlrpc,zip} -y
sudo update-alternatives --set php /usr/bin/php8.0
## Create DATABASE
sudo mysql_secure_installation
mysql -u root -p
@XTechnology-TR
XTechnology-TR / secure_with_htaccess
Created November 16, 2024 09:49 — forked from putWorkDev/secure_with_htaccess
Security with cookies: - PREVENTING SESSION HIJACKING - PREVENTING SESSION FIXATION - Uses a secure connection (HTTPS) if possible
With .htaccess just need to add these flags:
php_value session.cookie_httponly 1
php_value session.cookie_secure 1
@XTechnology-TR
XTechnology-TR / email_send.md
Created November 7, 2024 16:29 — forked from mimepost/email_send.md
Some example to send test email using MimePost

Send test email using MimePost

(by @MimePost)


Using curl

curl -XPOST \
-H 'X-Auth-Token: api_token' \
@XTechnology-TR
XTechnology-TR / win11.bat
Last active October 10, 2024 16:34
Windows 11 yükleyemeyenler buraya: Bilgisayar değiştirmenize gerek yok. Tüm engelleri aşın Rufus geliştiricileri, kayıt defterini değiştirerek TPM 2.0 şartını atlatmak için yeni bir çözüm buldular. Windows 11 24H2 yüklemeden önce TPM sorunlarını aşmak için arama kısmına CMD yazın ve yönetici olarak başlatın. Ardından aşağıdaki komutu direkt olar…
reg.exe delete “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\CompatMarkers” /f 2>NUL
reg.exe delete “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Shared” /f 2>NUL
reg.exe delete “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\TargetVersionUpgradeExperienceIndicators” /f 2>NUL
reg.exe add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\HwReqChk” /f /v HwReqChkVars /t REG_MULTI_SZ /s , /d “SQ_SecureBootCapable=TRUE,SQ_SecureBootEnabled=TRUE,SQ_TpmVersion=2,SQ_RamMB=8192,”
@XTechnology-TR
XTechnology-TR / gist:055be110bb5066f6f4a3abdf7494be9e
Last active September 19, 2024 11:35
PHP Uyarısı: Tanımsız dizi anahtarı (seo-by-rank-math-pro)
Şu dosyada ki _/wp-content/plugins/seo-by-rank-math-pro/includes/modules/analytics/class-posts.php_
ranking_keyword_array_sort Fonksiyonu aşağıdakilerle güncelledim:
```
public function ranking_keyword_array_sort( $arr, $arr_order, $arr_orderby ) {
if ( 'DESC' === $arr_order ) {
uasort(
$arr,
function( $a, $b ) use ( $arr_orderby ) {