Skip to content

Instantly share code, notes, and snippets.

View faryar76's full-sized avatar
🏠
Working from home

faryar faryar76

🏠
Working from home
View GitHub Profile
@faryar76
faryar76 / redsocks.conf
Created December 30, 2022 09:20 — forked from afriza/redsocks.conf
Setup iptables for RedSocks in OpenWRT
base {
// debug: connection progress & client list on SIGUSR1
log_debug = on;
// info: start and end of client session
log_info = on;
/* possible `log' values are:
* stderr
* file:/path/to/file
@faryar76
faryar76 / dl.php
Created November 8, 2020 07:50 — forked from fzerorubigd/dl.php
A simple download script with resume and multi-part support
<?php
date_default_timezone_set('GMT');
//1- file we want to serve :
$data_file = "/home/f0rud/Aalto Talk with Linus Torvalds [Full-length].mp4";
$data_size = filesize($data_file); //Size is not zero base
$mime = 'application/otect-stream'; //Mime type of file. to begin download its better to use this.
$filename = basename($data_file); //Name of file, no path included
@faryar76
faryar76 / filebase.php
Last active March 2, 2019 16:43 — forked from timothymarois/filebase.php
Filebase (V2) Proposal
<?php
$config = [];
$database = new Database($config);
// DATABASE TABLES
// -----------------------------------