Skip to content

Instantly share code, notes, and snippets.

View lyarinet's full-sized avatar

Asif Agaria lyarinet

View GitHub Profile
@mrbar42
mrbar42 / README.md
Last active August 15, 2025 17:51
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8

Using the fs-net libtransistor fork

This guide assumes you are already familliar with setting up RetroArch with libtransistor.

Clone the fs-net branch from https://github.com/davidbuchanan314/libtransistor:

git clone https://github.com/davidbuchanan314/libtransistor --recursive -b fs-net

Build libtransistor as usual.

@nitinegoro
nitinegoro / Firebase_push.php
Created March 2, 2018 17:39
Codeigniter Firebase Push Notification
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Single Sender FIrebase Push To Android
*
* @package Codeigniter
* @author Vicky Saputra <http://vicky.work
**/
class Firebase_push
{
@jdeathe
jdeathe / centos-wildcard-certbot.md
Last active November 29, 2021 10:33
Installation and Usage of Certbot on CentOS to Obtain a Let’s Encrypt Wildcard TLS/SSL Certificate.

Requesting a Wildcard Certificate with Certbot on CentOS

To request a Let's Encrypt wildcard certificate there are the following prerequisites:

  • The client must support ACME v2 (i.e Certbot >= 0.22.0)
  • The DNS-01 challenge type must be used.
  • The --server option or configuration directive must be changed to the appropriate v2 endpoint.

Installation

Install certbot-auto

@phpcodertop
phpcodertop / script.sh
Created April 14, 2018 22:44
install ipvtl trial and hack its trial
#!/bin/bash
echo "Downloading ipvtl Software \n"
cd /home
wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active September 1, 2025 09:15
Online Resources For Web Developers (No Downloading)
ffmpeg -i $1 -vn -acodec libvorbis -ab 128k -dash 1 $2/audio.webm
ffmpeg -i $1 -c:v libvpx-vp9 -keyint_min 150 \
-g 150 -tile-columns 4 -frame-parallel 1 -f webm -dash 1 \
-an -vf scale=160:190 -b:v 250k -dash 1 $2/video_160x90_250k.webm \
-an -vf scale=320:180 -b:v 500k -dash 1 $2/video_320x180_500k.webm \
-an -vf scale=640:360 -b:v 750k -dash 1 $2/video_640x360_750k.webm \
-an -vf scale=640:360 -b:v 1000k -dash 1 $2/video_640x360_1000k.webm \
-an -vf scale=1280:720 -b:v 1500k -dash 1 $2/video_1280x720_1500k.webm \
-an -vf scale=1920:1080 -b:v 5300k -dash 1 $2/video_1920x1080_5300k.webm
@tingplenting
tingplenting / ffmpeg_tuts.md
Last active September 2, 2025 15:37
ffmpeg cli for youtube

Extract audio from a YouTube video file

ffmpeg -i INPUT.mp4 -ab 256k OUTPUT.mp3

Cut 3s length

ffmpeg -y -ss 00:00:03 -i INPUT.mp4 -codec copy OUTPUT.mp4
@stoyanovgeorge
stoyanovgeorge / avg_speed.sh
Last active November 3, 2024 19:13
An one line command to get the average RX and TX speed of a particular interface (eth0) over $INT seconds in bytes per second. You need to divide by 128 to get it in Kbps or by 131072 (128*1024) for Mbps.
#!/bin/bash
INT=2; RXDIR=/sys/class/net/eth0/statistics/rx_bytes; TXDIR=/sys/class/net/eth0/statistics/tx_bytes; RXSTART=$(cat $RXDIR); TXSTART=$(cat $TXDIR); sleep $INT; RXEND=$(cat $RXDIR); TXEND=$(cat $TXDIR); RXBPS="$(((RXEND-RXSTART)/INT))"; TXBPS="$(((TXEND-TXSTART)/INT))"; echo "$RXBPS" "$TXBPS"