Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Ahmet Imamoglu ahmeti

🎯
Focusing
Block or report user

Report or block ahmeti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ahmeti
ahmeti / 1-apache-remove.sh
Last active Jul 28, 2019
Amazon AWS üzerinde Ubuntu 18.04, Nginx, Php 7.2, Mysql 8 Kurulumu
View 1-apache-remove.sh
sudo service apache2 stop
sudo apt-get purge apache2*
sudo apt-get autoremove
whereis apache2
sudo rm -rf /etc/apache2
View Postgresql-1.sql
CREATE DATABASE test_db ENCODING='UTF-8' LC_COLLATE='tr_TR.UTF-8' TEMPLATE=template0;
View ExcelMacroFunction1.vb
''' Hücreye ait yorum bilgisini döndürür.
''' Örnek Kullanım; =getComment(A2)
'''
Function getComment(xCell As Range) As String
On Error Resume Next
getComment = xCell.Comment.Text
End Function
View Wordpress-Auto-Featured-Image.php
View Php-Utf-8-Email-Example1.php
<?php
function mail_utf8($from,$from_name,$to,$adi,$subject,$body=''){
// Konu
$subject = "=?UTF-8?B?".base64_encode(urldecode($subject))."?=";
// Header bilgisi
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
View UbuntuMysql1.sh
$ sudo ufw status
Status: active
To Action From
-- ------ ----
22 LIMIT Anywhere
443 ALLOW Anywhere
80 ALLOW Anywhere
22 (v6) LIMIT Anywhere (v6)
@ahmeti
ahmeti / session_decode.php
Last active Nov 16, 2018
Get Decode Session Variables From PHPSESSID
View session_decode.php
<?php
# .env file variables
# OLD_SESSION_PATH=/var/tmp/
# OLD_SESSION_PRF=sess_
function getUserIdFromOldSession()
{
if( ! isset($_COOKIE['PHPSESSID']) ){
return false;
You can’t perform that action at this time.