Skip to content

Instantly share code, notes, and snippets.

Aysad Kozanoglu AysadKozanoglu

Block or report user

Report or block AysadKozanoglu

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
AysadKozanoglu / sysctl.conf
Created Apr 10, 2016
high secure & perfornce debian sysctl.conf setting - debian sysctl yüksek güven ve performans ayarlari
View sysctl.conf
# Kernel sysctl configuration file for Linux
# Version 1.11 - 2015-07-07
# Aysad Kozanoglu Aysad K.
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
# Tested with: Ubuntu 14.04 LTS kernel version 3.13
AysadKozanoglu / wp.config.php
Created May 30, 2019
Disable admin-ajax on the front-end of WordPress sites and cache the resulting 404.
View wp.config.php
strpos( $_SERVER['HTTP_REFERER'], 'wp-admin' ) === false &&
strpos( $_SERVER['REQUEST_URI'], 'admin-ajax.php' ) !== false
) {
header( 'Cache-Control: max-age=30000, must-revalidate' );
header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', strtotime( '+5000 minutes' ) ) . ' GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s', strtotime( '-5000 minutes' ) ) . ' GMT' );
header( $_SERVER["SERVER_PROTOCOL"]." 404 Not Found" );
AysadKozanoglu /
Created May 28, 2019 — forked from fxkraus/
Install LSI MegaCli .deb package on Debian/Ubuntu




#author: Aysad Kozanoglu
# Debian Jessie
# wget -O - | bash
apt-get -y -qq install software-properties-common
# install repo mariadb
# see source
View canlitv.com_getStreamAndRestream
streamPath="/usr/local/nginx/html/stream"; link=$(wget -qO tv8.html | cat tv8.html | grep file | cut -d \" -f2); rm -rf $streamPath/* && ffmpeg -y -probesize 15000000 -analyzeduration 12000000 -i "$link" -user_agent "firefox browser" -strict -2 -dn -acodec copy -vcodec copy -crf 29 -hls_flags delete_segments -hls_time 10 -hls_list_size 8 -hls_segment_filename "$streamPath/tv8%d.ts" $streamPath/tv8.m3u8
View bashrc
# Shorten home dir, cygwin drives, paths that are too long
# (just bourne; no perl, sed, or bashisms!)
HOST='\033[02;36m\]\h'; HOST=' '$HOST
TIME='\033[01;31m\]\t \033[01;32m\]'
LOCATION=' \033[01;34m\]`pwd | sed "s#\(/[^/]\{1,\}/[^/]\{1,\}/[^/]\{1,\}/\).*\(/[^/]\{1,\}/[^/]\{1,\}\)/\{0,1\}#\1_\2#g"`'
BRANCH=' \033[00;33m\]$(git_branch)\[\033[00m\]\n\$ '
View php7.2 install debian_jessie
#author: Aysad Kozanoglu
# QUICK launch script
# wget -O - | bash
View vim nginx icinga2 syntax highlight
# author: Aysad Kozanoglu
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
AysadKozanoglu / install openvpn 2.4 ubuntu 16.04 and debian
Last active Jan 22, 2019
install openvpn 2.4 ubuntu 16.04 and debian jessie
View install openvpn 2.4 ubuntu 16.04 and debian
curl -s | apt-key add
# ubuntu 16.04
echo "deb xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
#debian jessie
echo "deb jessie main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
apt update
apt install -y openvpn
AysadKozanoglu / vimrc-config
Created Dec 20, 2018
my ultimate vim config
View vimrc-config
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
" Features {{{1
" These options and commands enable some very useful features in Vim, that
" no user should have to live without.
You can’t perform that action at this time.