Skip to content

Instantly share code, notes, and snippets.

@kicktv
kicktv / login.html
Created November 17, 2024 14:23
form login responsive css
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">
<title>login php</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {font-family: Arial, Helvetica, sans-serif;}
form {
//border: 3px solid #f1f1f1;
border: 3px solid #a0f49d;
@kicktv
kicktv / Menu-Responsive-No-Javascript.html
Last active November 17, 2024 14:26
Responsive Menu css only No Javascript
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Menu Responsive No Javascript</title>
<style>
body {margin: 0; font-family: Helvetica, sans-serif; background-color: #e3dede;}
a {color: #ffffff; //white}
/* header */
@kicktv
kicktv / menu.html
Last active November 17, 2024 21:12
menu navbar responsive
<!-- preview html https://gist.githack.com/kicktv/067686f6f446854b4b41e55acff9c2d6/raw/menu.html -->
<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- App title -->
<title>Responsive Pure CSS Menu</title>
<!-- Link css file -->
<!-- <link rel="stylesheet" href="https://raw.githack.com/Ivy-Walobwa/responsive-pure-css-menu/main/style.css"> -->
@kicktv
kicktv / video-stream.php
Last active October 29, 2024 18:41
Streaming video with PHP Html5
<?php
/*
// php stream video to browser
// this script supports Video of forward and backward movement
// It does not support remote link For video
*/
$file = 'video.mp4';
$fp = @fopen($file, 'rb');
@kicktv
kicktv / user-agents.txt
Created October 19, 2024 15:16
A list of major user agent strings for different browsers and devices
Chrome/Windows: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome/Windows: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome/Windows: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome/macOS: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome/Linux: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome/iPhone: Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1
Chrome/iPhone (request desktop): Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87 Version/11.1.1 Safari/605.1.15
Chrome/iPad: Mozilla/5.0 (iPad; CPU OS 14_3 like Mac OS X) AppleWebKit/605.1.1
@kicktv
kicktv / fm.php
Last active March 15, 2024 17:52
File Manager PHP (single file)
<?php
/**
* source =>https://gist.github.com/jhedev96/f6aaf58fd7d937bfaa34fd31e2baf23f
* File Manager Script
*/
// Default language ('en' and other from 'filemanager-l10n.php')
$lang = 'en';
// Auth with login/password (set true/false to enable/disable it)
@kicktv
kicktv / force-download-remote-file.php
Last active October 23, 2022 15:23
php force download remote file
<?php
//php force download remote file
// Remote download URL
$remoteURL = 'http://www.html-editor.tk/videos/sintel.mp4';
// Force download
header('Content-type: application/octet-stream');
header("Content-Disposition: attachment; filename=".basename($remoteURL));
ob_end_clean();
@kicktv
kicktv / get-remote-filesize.php
Last active May 25, 2020 00:09
php get remote file size
<?php
//php get remote file size
$url = "http://www.html-editor.tk/videos/sintel.mp4";
$head = array_change_key_case(get_headers($url, TRUE));
$size = $head['content-length'];
echo $size;
?>