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
mrbar42 /
Last active Oct 15, 2019
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
ilude / KVM Attempt 1
Last active Jun 25, 2019
KVM virt-install command
View KVM Attempt 1
qemu-img create -f qcow2 /pool/vms/xp.qcow2 50G
sudo virt-install --connect qemu:///system -n xp -r 512 --disk path=/pool/vms/xp.qcow2,size=50 \
-c /pool/iso/windows/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso \
--graphics vnc,listen=,port=65322 --noautoconsole \
--os-type windows --os-variant winxp
ofrzeta / preseed.cfg
Last active May 10, 2019
Minmal preseed.cfg for Debian on KVM, German keyboard/timezone, auto LVM partitioning, serial console
View preseed.cfg
d-i debian-installer/locale string en_US
d-i keymap select de
d-i keyboard-configuration/xkb-keymap select de
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string de
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debianhost
d-i netcfg/get_domain string mydomain
d-i netcfg/wireless_wep string
agustik / vrrp
Last active Mar 12, 2018
simple keepalived status script for 2 interfaces
View vrrp
content=$(egrep '(vrrp_instance|interface|virtual_ipaddress)' -A1 $configfile | egrep -v "(\-\-|track_|virtual_)" | grep -A6 vrrp_);
#echo "$content";
instance_1=$(echo "$content" | grep "VI_1" -A4);
instance_2=$(echo "$content" | grep "VI_2" -A4);
okv / gist:2b0d9b6c1c73c036cabc
Created Jul 22, 2014
Icinga2: Configuration Syntax Highlighting using Vim
View gist:2b0d9b6c1c73c036cabc
PREFIX=~/.vim && mkdir -p $PREFIX/{syntax,ftdetect} && curl > $PREFIX/syntax/icinga2.vim && curl > $PREFIX/ftdetect/icinga2.vim
aktau /
Last active May 23, 2019
Create a preseeded (debian) hybrid ISO which can be burned to CD and dd'ed to a USB stick, don't forget to apt-get install xorriso isolinux
set -e
set -u
# hat-tips:
# -
# - the gist
mutaku /
Created Feb 28, 2012
Printer selection in a Tkinter Python GUI using lpstat and test printing with lpr
#!/usr/bin/env python
from Tkinter import *
import sys, commands, os
root = Tk()
root.title('Printer Configuration')
def getPrinter():
nIndex = printerList.curselection()[0]
AsaAyers / crowd.php
Created Jul 31, 2011
PHP Crowd Authentication
View crowd.php
* This file demonstrates using Atlassian Crowd for Single Sign On.
$crowd_app_name = 'REMOVED';
$crowd_app_password = 'REMOVED';
$crowd_url = '';
You can’t perform that action at this time.