Skip to content

Instantly share code, notes, and snippets.

View denys-popov's full-sized avatar
🔮
Black Magic

Denys Popov denys-popov

🔮
Black Magic
View GitHub Profile
@mrbar42
mrbar42 / README.md
Last active March 14, 2025 21:14
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
@sysboss
sysboss / query_athena.py
Created May 21, 2018 15:41
SQL Query Amazon Athena using Python
#!/usr/bin/env python3
#
# Query AWS Athena using SQL
# Copyright (c) Alexey Baikov <sysboss[at]mail.ru>
#
# This snippet is a basic example to query Athen and load the results
# to a variable.
#
# Requirements:
# > pip3 install boto3 botocore retrying
@arduanov
arduanov / tsung install
Last active February 20, 2020 23:13
ulimit
echo "fs.file-max=1048576" >> /etc/sysctl.conf
echo "net.core.rmem_max = 16777216" >> /etc/sysctl.conf
echo "net.core.wmem_max = 16777216" >> /etc/sysctl.conf
echo "net.ipv4.tcp_rmem = 4096 87380 16777216" >> /etc/sysctl.conf
echo "net.ipv4.tcp_wmem = 4096 65536 16777216" >> /etc/sysctl.conf
sysctl -p
echo "* soft nofile 1048576" >> /etc/security/limits.conf
echo "* hard nofile 1048576" >> /etc/security/limits.conf
@MurageKibicho
MurageKibicho / Functions.py
Created June 10, 2025 15:24
Dual EC Backdoor in Python
#https://leetarxiv.substack.com/p/dual-ec-backdoor-coding-guide
from fastecdsa.curve import P256
from fastecdsa.point import Point
from random import randint
class DualEC():
def __init__(self, seed, P, Q):
self.seed = seed # Initial integer state of RNG
self.P = P # First elliptic curve point (public parameter)
self.Q = Q # Second elliptic curve point (could be maliciously chosen)