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 / 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
}
@XTechnology-TR
XTechnology-TR / tor-proxy-as-podman-containder.md
Created October 23, 2023 01:20 — forked from valyakuttan/tor-proxy-as-podman-containder.md
Configue tor as a podman container in Fedora Silverblue

Configue tor as a podman container in Fedora Silverblue

Installation

  1. Pull image from dockerhub

         $ podman pull docker.io/osminogin/tor-simple
@XTechnology-TR
XTechnology-TR / privacy_policy.markdown
Created October 21, 2023 11:31 — forked from shinzui/privacy_policy.markdown
Devver Open Source Privacy Policy

Privacy Policy

Last revised on [DATE]

The Gist

[COMPANY] will collect certain non-personally identify information about you as you use our sites. We may use this data to better understand our users. We can also publish this data, but the data will be about a large group of users, not individuals.

We will also ask you to provide personal information, but you'll always be able to opt out. If you give us personal information, we won't do anything evil with it.