Skip to content

Instantly share code, notes, and snippets.

free 4 ever

Aysad Kozanoglu AysadKozanoglu

free 4 ever
View GitHub Profile
fametrano / bitcoin-seedbox-node.MD
Last active Nov 11, 2020 — forked from Zorlin/bc-seedbox-node.MD
Running Bitcoin Core full nodes on FeralHosting
View bitcoin-seedbox-node.MD

Running Bitcoin Core full nodes on FeralHosting

Running a full node can help the Bitcoin network significantly.

There's lots of benefits to running your own node and most people can run one at home.

For those who can't, or for those that want to run an extra one, the options are usually limited to virtual private servers (VPS) or dedicated servers (expensive).

Enter seedboxes - usually inexpensive, but provide plenty of disk space and resources to run a full node.

mrbar42 /
Last active Jun 16, 2021
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
zuzzas /
Last active Jun 19, 2021
Create Debian netinstall iso with preseed file
set -e
set -u
# hat-tips:
# -
# - the gist
# required packages (apt-get install)
# xorriso
ilude / KVM Attempt 1
Last active May 14, 2021
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
haisum /
Last active Apr 19, 2021
Automated bash script to setup dovecot postfix mysql email server on ubuntu 14.04
#!/usr/bin/env bash
# Script to install postfix
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
denji /
Last active Jun 22, 2021
NGINX tuning for best performance

Moved to git repository:

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

aktau /
Last active Nov 16, 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