Skip to content

Instantly share code, notes, and snippets.

View mhcifci's full-sized avatar

Mahmut Can ÇİFÇİ mhcifci

View GitHub Profile
@mhcifci
mhcifci / instagram-photo-downloader.php
Last active September 9, 2018 15:47
Downloading instagram photos with link function
<?php
/**
*
* Author: Mahmut Can
* Date: 20.07.2018
* # Instagram Photo Downloader #
*
**/
@mhcifci
mhcifci / codeigniter-htaccess-file
Last active December 13, 2018 23:59
codeigniter-htaccess-file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
# Another rule {Delete inside of (application/config/config.php) row $config['index_page'] = 'index.php'; replace $config['index_page'] = '';}
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@mhcifci
mhcifci / ci_helper.php
Created March 11, 2022 07:42
CodeIgniter 3 - Menu Active Function
<?php
/* Use function in helper file */
function activeMenu($menu = ""){
if ($menu != "") {
$t = &get_instance();
if ($t->uri->segment(2) == $menu) {
return "active";
}
@mhcifci
mhcifci / twitter_unfollow_2022.js
Created March 21, 2022 13:13
Twitter Takipten Çıkma Kodu 2022 | Unfollow.JS
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
const $confirmButton = '[data-testid="confirmationSheetConfirm"]';
const retry = {
count: 0,
limit: 3,
};
const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight);
@mhcifci
mhcifci / Cause of “Error: MySQL Shutdown Unexpectedly” in XAMPP
Created June 5, 2023 17:38
MySQL'de Error Shutdown Unexpectedly Hatası için Bat Dosyası
@echo off
cd C:\xampp
cd mysql
ren data data_old
mkdir data
xcopy /e /y backup\* data