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
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.
View shellScript_yes_no_prompt_for_reboot.sh
#!/bin/sh
# Author: Aysad Kozanoglu
# quick launch script:
#
# wget -qO reboot.sh https://git.io/fpNpo && chmod a+x reboot.sh ; sh reboot.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;;
View nginx_serviceCheck.sh
#!/bin/sh
# Author: Aysad Kozanoglu
SERVICE='nginx'
DATE=$(date '+%Y-%m-%d %H:%M:%S')
NGINXBIN=$(which nginx)
LOGTO=/var/log/serviceChecker.log
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
@AysadKozanoglu
AysadKozanoglu / set-locale_en_US.UTF-8.sh
Last active Dec 14, 2018
set locale en_US.UTF-8 quick script
View set-locale_en_US.UTF-8.sh
#! /bin/sh
# author: Aysad kozanoglu
#
# quick launch script:
#
# wget -O - https://git.io/fpbwk | sh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
@AysadKozanoglu
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: aysadx@gmail.com
one liner auto installer scripts for debian Jessie (jessie LTS until 2020) (and derivates like ubuntu)
MariaDB singler Server installation
# source: https://gist.github.com/AysadKozanoglu/d485de4d7b6492cb0c478c098b4c63c6#file-mariadb_debian_jessie_install-sh
wget -O - https://git.io/fpuj6 | bash
nginx threads,iao, stream, ssl compile installation
@AysadKozanoglu
AysadKozanoglu / rsync_best_fast_muster.md
Last active Nov 29, 2018
rsync best fast file transfer muster (90MB/s on a 1Gbit NIC)
View rsync_best_fast_muster.md

#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
AysadKozanoglu / simple_chat_network.sh
Created Nov 27, 2018
simple chat on network (do not use it on public net )
View simple_chat_network.sh
# 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
View dialog_percentage.sh
# apt install dialog
echo 40 | dialog --title " PANEL installer" --gauge "installing needed packages - please wait..." 8 50
@AysadKozanoglu
AysadKozanoglu / nginx_compile_install.sh
Last active Nov 26, 2018
nginx compile install with openssl
View nginx_compile_install.sh
#!/bin/sh
#author: Aysad Kozanoglu
#email: aysadx@gmail.com
# QUICK LAUNCH script
# wget -O - https://git.io/fpuAV | bash
#
# check before running this script if nginx is running or apache is installed
# if yes then remove/disable them
@AysadKozanoglu
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.