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
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 / 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 / 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
View MariaDB_Debian_jessie_install.sh
#author: Aysad Kozanoglu
#email: aysadx@gmail.com
# Debian Jessie
# QUICK LAUNCH script
# wget -O - https://git.io/fjWjB | bash
#
apt-get -y -qq install software-properties-common
# install repo mariadb
# see source
@AysadKozanoglu
AysadKozanoglu / data.json
Last active Nov 24, 2018
shuffle json object
View data.json
// Author: Aysad Kozanoglu
externData = [
{
"name": "cola",
"epreis": "1.50"
},
{
View php7.2 install debian_jessie
#!/bin/sh
#author: Aysad Kozanoglu
#email: aysadx@gmail.com
#
# QUICK launch script
# wget -O - https://git.io/fhxNt | bash
#
@AysadKozanoglu
AysadKozanoglu / nginx.conf
Created Nov 15, 2018 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
View nginx.conf
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@AysadKozanoglu
AysadKozanoglu / nginx0_trmp_live_stream.sh
Last active Nov 8, 2018
nginx rtmp live stream install & config
View nginx0_trmp_live_stream.sh
apt-get -y install build-essential libpcre3 libpcre3-dev libssl-dev unzip
wget http://nginx.org/download/nginx-1.14.1.tar.gz
wget https://github.com/sergey-dryabzhinsky/nginx-rtmp-module/archive/dev.zip
unzip dev.zip
tar zxvf nginx-1*
cd nginx-1*
./configure --sbin-path=/usr/local/sbin --user=www-data --group=www-data --with-stream --with-threads --with-file-aio --add-module=../nginx-rtmp-module-dev
You can’t perform that action at this time.