Skip to content

Instantly share code, notes, and snippets.

View sjpi's full-sized avatar

mm-ll sjpi

View GitHub Profile

#zoom download mp4 from recording

  1. open dev tools
    Open the developer tools in your browser.

  2. search for the <video> tag
    Search for the <video> tag within the HTML code.

  3. copy the source url
    Copy the source URL of the video player.

@sjpi
sjpi / reverse-urlrewrite.haproxy.cfg
Created June 30, 2023 17:02 — forked from nk23x/reverse-urlrewrite.haproxy.cfg
HAProxy reverse proxy configuration with URL rewriting for two backends
global
log 127.0.0.1 local2
maxconn 2048
tune.ssl.default-dh-param 2048
defaults
mode http
log global
option httplog
option dontlognull
@sjpi
sjpi / nginx-tuning.md
Created September 14, 2022 21:57 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

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.

@sjpi
sjpi / boot_setup.sh
Created July 25, 2021 16:28 — forked from spheromak/boot_setup.sh
first boot shell script for vm guests
#!/bin/bash
# vim: set tabstop=2 noexpandtab:
# Jesse Nelson <[email protected]>
#
# Custom setup script to init early networking after VM initialization
# This script should be run before network init scripts as it preps the network
#
# The idea is to pass down ip config settings through boot params so that this
# script can configure the network on first boot Anaconda will take care of this
# on machines that are kickstarted, but this lets us just be 100%
@sjpi
sjpi / docker-compose.yaml
Created May 31, 2021 18:43 — forked from coltenkrauter/docker-compose.yaml
Traefik V2 Docker Compose file with LetsEncrypt and HTTPS redirect - Traefik dashboard and simple whoami service
# Tutorial: https://blog.creekorful.com/2020/01/how-to-expose-traefik-2-dashboard-securely-docker-swarm/
version: '3'
services:
reverse-proxy:
image: traefik:2.3
command:
# - '--log.level=DEBUG'
- '--api=true'
- '--api.dashboard=true'
@sjpi
sjpi / JavascriptRecon.md
Created February 17, 2021 21:37
My Javascript Recon Process - BugBounty

Description

This is a simple guide to perform javascript recon in the bugbounty

Steps

  • The first step is to collect possibly several javascript files (more files = more paths,parameters -> more vulns)