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 / 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 hugopereira84/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 ) {
<?php
/***** WORDPRESS OPTIMIZATION CODE *****/
// REMOVE EMOJIS
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
@XTechnology-TR
XTechnology-TR / backend.php
Created April 1, 2024 11:28
WordPress'i optimize edin. Gereksiz kodu wp_head'den kaldırın. Geri izlemeleri ve pingleri devre dışı bırakın. Ön uç ve arka uçtaki yorumları devre dışı bırakın ve kaldırın. oEmbed işlevselliğini kaldırın. Ön uçtaki emojileri devre dışı bırakın ve Tinymce Emoji eklentisini kaldırın. Başlıktaki bağlantı etiketlerini kaldırın. jQuery Migrate'ı kal…
<?php
/**
* Strip `width` & `height` attributes from `img` elements.
*
* @file functions.php
*/
function remove_width_and_height_attribute( $html ) {
return preg_replace( '/(height|width)="\d*"\s/', "", $html );
}
@XTechnology-TR
XTechnology-TR / Responsive-ekran-boyutlari.css
Created February 27, 2024 19:13 — forked from serhanozcan/Responsive-ekran-boyutlari.css
Responsive ekran boyutları ve css media listesi
/*
##Cihaz = Masaüstü
##Ekran = 1281px 'den yüksek çözünürlükler için
*/
@media (min-width: 1281px) {
//CSS
}