Skip to content

Instantly share code, notes, and snippets.

free 4 ever

Aysad Kozanoglu AysadKozanoglu

free 4 ever
View GitHub Profile
AysadKozanoglu / do_not_log.conf
Created Apr 29, 2016 — forked from kfl62/do_not_log.conf
nginx configuration file, (do not log robots.txt and favicon.ico requests)
View do_not_log.conf
# Designed to be included in any server {} block.
location = /favicon.ico {
log_not_found off;
access_log off;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
AysadKozanoglu / index.html
Created Apr 29, 2016 — forked from morganestes/index.html
A pure HTML and CSS navigation bar based on something you might see in an iOS application. Forked from odd-e's original. Original -
View index.html
<ul id="nav">
<li class="home mid"><a href="#"></a></li>
AysadKozanoglu / nginx.conf
Created Aug 26, 2016 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
AysadKozanoglu / UUID.php
Created Oct 15, 2016 — forked from dahnielson/UUID.php
Pure PHP UUID generator
View UUID.php
* UUID class
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
AysadKozanoglu / Multiple accounts with Mutt E-Mail
Last active Nov 15, 2016 — forked from miguelmota/
Multiple accounts with Mutt E-Mail Client
View Multiple accounts with Mutt E-Mail
How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg


Directories and files

AysadKozanoglu / crossdomain.conf
Created Jan 30, 2017 — forked from rbranson/crossdomain.conf
nginx Flash XML policy server
View crossdomain.conf
# Add this to your nginx.conf under http { }
server {
listen 843;
server_name localhost;
location / {
rewrite ^(.*)$ /crossdomain.xml;
AysadKozanoglu /
Created Jan 30, 2017 — forked from olasd/
Stream video to youtube via ffmpeg
#! /bin/bash
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://" # URL de base RTMP youtube

Linux simple performance tweaks

Change the I/O Scheduler

Open $ vim /etc/default/grub then add elevator=noop next to GRUB_CMDLINE_LINUX_DEFAULT. Run $ update-grub and $ cat /sys/block/sda/queue/scheduler to be sure that noop is being used:

$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler
[noop] deadline cfq
AysadKozanoglu / graphite_send
Created Oct 8, 2017 — forked from skx/graphite_send
Shell script to submit "metrics" to graphite.
View graphite_send
# About
# -----
# This script sends simple system-metrics to a remote graphite server.
# Metrics
# -------
# The metrics currently include the obvious things such as:
You can’t perform that action at this time.