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 / 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.
# Author: Aysad Kozanoglu
# quick launch script:
# wget -qO && chmod a+x ; sh
while true; do
read -p "Do you wish to reboot server?" yn
case $yn in
[Yy]* ) echo "OK, server will boot in 5 sec..."; sleep 4; shutdown -r now; break;;
# Author: Aysad Kozanoglu
DATE=$(date '+%Y-%m-%d %H:%M:%S')
NGINXBIN=$(which nginx)
if ps ax | grep -v grep | grep $SERVICE > /dev/null
AysadKozanoglu /
Last active Dec 14, 2018
set locale en_US.UTF-8 quick script
#! /bin/sh
# author: Aysad kozanoglu
# quick launch script:
# wget -O - | sh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
AysadKozanoglu / Quick_autoInstaller_scripts.txt
Last active Dec 10, 2018
one line download and install scripts based on github und gist repos for debian jessie (lts 2020)
View Quick_autoInstaller_scripts.txt
# Author: Aysad Kozanoglu
# Email:
one liner auto installer scripts for debian Jessie (jessie LTS until 2020) (and derivates like ubuntu)
MariaDB singler Server installation
# source:
wget -O - | bash
nginx threads,iao, stream, ssl compile installation
AysadKozanoglu /
Last active Nov 29, 2018
rsync best fast file transfer muster (90MB/s on a 1Gbit NIC)

#auhtor: Aysad Kozanoglu

realizing a file transfer over 50MB-90MB/s on 1Gbit NIC

from remote to local

rsync -avHAXx --numeric-ids --progress -e "ssh -T -c arcfour -o Compression=no -x" user@[source]:[source_dir] [dest_dir]
AysadKozanoglu /
Created Nov 27, 2018
simple chat on network (do not use it on public net )
# replace 192.168.x.x with your ip
# apt install mawk
# the server
mawk -W interactive '$0="Aysad: "$0' | nc -l -p 9000 192.168.x.x
# the clients
mawk -W interactive '$0="clientUser1: "$0' | nc 192.168.x.x 9000
# apt install dialog
echo 40 | dialog --title " PANEL installer" --gauge "installing needed packages - please wait..." 8 50
AysadKozanoglu /
Last active Nov 26, 2018
nginx compile install with openssl
#author: Aysad Kozanoglu
# wget -O - | bash
# check before running this script if nginx is running or apache is installed
# if yes then remove/disable them
AysadKozanoglu / data.json
Last active Nov 24, 2018
shuffle json object
View data.json
// Author: Aysad Kozanoglu
externData = [
"name": "cola",
"epreis": "1.50"
You can’t perform that action at this time.