Skip to content

Instantly share code, notes, and snippets.

View manniru's full-sized avatar

MUHAMMAD MANNIR AHMAD manniru

View GitHub Profile
@manniru
manniru / free_m3u8.m3u
Created December 18, 2022 20:11 — forked from Fazzani/free_m3u8.m3u
Free m3u8 streams
http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8
http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8
http://cdn-fms.rbs.com.br/vod/hls_sample1_manifest.m3u8
http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8?sd=10&rebase=on
http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8
@manniru
manniru / GIT DB Export Hook
Created December 11, 2022 11:58 — forked from anish137i/GIT DB Export Hook
Git pre commit hook to export database
#!/bin/bash
DBUSER="root"
DBPASS=""
DB="test"
SCHEMAPATH="__sql"
if [ ! -d "$SCHEMAPATH" ]; then
mkdir $SCHEMAPATH
if [ "$(uname)" == "Darwin" ]; then
@manniru
manniru / gist:022aa885b174b883b268a5fd8aeec167
Created December 11, 2022 10:54 — forked from prcaen/gist:3413601
Backup database periodically
# At 9, 13, 16 and 19 hour every monday, tuesday, wednesday, thursday and friday
* 9,13,16,19 * * 1,2,3,4,5 root /Applications/XAMPP/xamppfiles/bin/mysqldump -u root --all-databases | gzip > /Users/pierrick/Documents/Backups/Sites/database_`date +"%m_%d_%Y_%H_%M"`.sql.gz
@manniru
manniru / Hik-motion.MD
Created November 5, 2022 13:55 — forked from gipsh/Hik-motion.MD
Hikvision GET and SET motion detection

GET MD settings

curl -u admin:xxxxxxx http://192.168.0.10/ISAPI/System/Video/inputs/channels/2/MotionDetection
@manniru
manniru / hik cheatsheet
Created November 4, 2022 05:10 — forked from sandikodev/hik cheatsheet
cheatsheet
https://www.hikvision.com/content/dam/hikvision/en/support/download/how-to/ipc/How%20to%20Get%20IPC%20MJPEG%20Stream%20via%20HTTP%20Commands.pdf
https://www.hikvision.com/ueditor/net/upload/2017-05-26/df89f1cb-b905-4182-bdb0-661de58584c1.pdf
http://mega-avr.net/file/programmy/IP-camera/HIKVISION/2.SDK/ISAPI/HIKVISION%20ISAPI_2.0-RaCM%20Service.pdf
http://86.49.187.98/Hikvision/Jak%20na%20to/Kamery_DVR_NVR/How%20to%20integrate%20with%20Hikvision%20LPR%20function%20via%20ISAPI.pdf
ftp://ftp.luis.ru/Raznoe/LTV_SDK/LTV_IP_S-Series_API/ISAPI_2.0-PTZ%20Service.pdf
https://11936797612864389938.googlegroups.com/attach/4fbec897364cf/HUNT%20RTSP%20and%20HTTP%20urls.pdf?part=0.1&view=1&vt=ANaJVrHQtZY6rc7ss5P8_hPsEVoagPjQD-5pcKxIXCHiEoNn_sOCsAnV9jRxTekz3i2T19u1bYlYbIRU9JzZJBs7y8vo855cip2x5rNoB0tq5jviERXBNUM
http://en0.ch/2020/08/add-temperature-to-hikvision-camera-overlay/
324284193-HIKCGI-Image-Display-Function.pdf
// https://www.reddit.com/r/ethdev/comments/7jyzlw/50_in_ether_prize_for_puzzle_in_this_tweet/
// npm i bip39 ethereumjs-wallet allcombinations shuffle-array
const bip39 = require("bip39");
const hdkey = require('ethereumjs-wallet/hdkey');
const allcombinations = require('allcombinations');
const shuffle = require('shuffle-array');
let words = 'bright summer public tenant avocado chef depend romance school reason help start';
@manniru
manniru / urandom.sh
Created October 27, 2022 01:02 — forked from dwallraff/urandom.sh
Generate random passwords with urandom
cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w 32 | head -n 5
# cat /dev/urandom | tr -dc 'a-zA-Z0-9._!@#$%^&*()' | fold -w 8 | head -n 500000 > wordlist.txt
# cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w 12 | head -n 4
# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
# cat /dev/urandom | base64 | tr -d '[^:alnum:]' | cut -c1-10 | head -2
# cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 4
# cat /dev/urandom| tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?='|fold -w 12| head -n 4| grep -i '[!@#$%^&*()_+{}|:<>?=]'
# < /dev/urandom tr -dc '[:print:]' |fold -w 10| head -n 10
# tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n2
@manniru
manniru / uuid.sh
Created October 17, 2022 04:20 — forked from markusfisch/uuid.sh
Generate a random UUID in bash
#!/usr/bin/env bash
# Generate a pseudo UUID
uuid()
{
local N B C='89ab'
for (( N=0; N < 16; ++N ))
do
B=$(( $RANDOM%256 ))
@manniru
manniru / index.php
Created October 14, 2022 01:32 — forked from shishakohle/index.php
Upload files with PHP
<html>
<head>
<title></title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<p>Select image to upload:</p>
<p><input type="file" name="fileToUpload" id="fileToUpload"></p>
<p><input type="submit" value="Upload Image" name="submit"></p>
####### Apache Installation
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
brew install httpd
#Now we just need to configure things so that our new Apache server is auto-started
sudo brew services start httpd
#You can see Apache running on the browser by default http://localhost:8080