Skip to content

Instantly share code, notes, and snippets.

Avatar

Ananta Anan5a

View GitHub Profile
View ffmpeg-vaapi-build-script-debian10.sh
#!/bin/bash
# This script is tested on Debian 10 with non-free source added
echo "Building shared ffmpeg executable with vaapi, fdkaac, zimg ..."
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/lib:/usr/lib
echo "Installing build tools ..."
apt -qqy install build-essential autoconf automake cmake libtool git nasm yasm
PROC=$(nproc)
View uuid-intercept.js
/*!
* device-uuid.js v1.0.4 (https://github.com/biggora/device-uuid/)
* Copyright 2016-2017 Alexey Gordeyev
* Licensed under MIT (https://github.com/biggora/device-uuid/blob/master/LICENSE)
*/
/*global
screen, window, navigator
*/
(function (exports) {
'use strict';
@Anan5a
Anan5a / GCD.c
Created Feb 3, 2020
Calculate GCD of two number using loop
View GCD.c
#include <stdio.h>
//Anan5a<https://github.com/Anan5a>
int main()
{
int db[1000], da[1000], i, j=1, k, gcd[300], big_da, big_db;
int num, num2;
printf("Enter two numbers: ");
scanf("%d %d", &num, &num2);
View videojs-skin-purple-red.css
.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline {
width: 10em
}
.video-js .vjs-controls-disabled .vjs-big-play-button {
display: none!important
}
.video-js .vjs-control {
width: 3em
View PPLM BN SUBTITLE.vtt
00:00:13,000 --> 00:00:16,120
অনুবাদঃ আশানুর_জয়।
00:00:16,140 --> 00:00:19,150
ধন্যবাদান্তেঃ ডাঃ মিথুন বিশ্বাস ও মোঃ আল-আমিন রহমান।
1
00:01:31,010 --> 00:01:32,050
আমি সুরিয়া(সূর্য)
View sf4-heroku.log
2018-12-23T01:45:30.112326+00:00 heroku[router]: at=info method=GET path="/signup/" host=desolate-temple-50562.herokuapp.com request_id=f541d99b-0202-46c5-8f65-6facda2125b0 fwd="116.58.203.166" dyno=web.1 connect=1ms service=272ms status=200 bytes=759 protocol=https
2018-12-23T01:45:30.112278+00:00 app[web.1]: 10.65.63.158 - - [23/Dec/2018:01:45:29 +0000] "GET /signup/ HTTP/1.1" 200 462 "-" "Mozilla/5.0 (Linux; Android 4.2.2; iris 400s Build/iris 400s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36
2018-12-23T01:45:32.060628+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=desolate-temple-50562.herokuapp.com request_id=f1b1403a-419a-4d04-8544-a044689365fe fwd="116.58.203.166" dyno=web.1 connect=1ms service=10ms status=404 bytes=683 protocol=https
2018-12-23T01:45:32.060682+00:00 app[web.1]: 10.65.63.158 - - [23/Dec/2018:01:45:32 +0000] "GET /favicon.ico HTTP/1.1" 404 471 "https://desolate-temple-50562.herokuapp.com/signup/" "Mozilla/5.0 (Linux; Android 4.2.2;
View SignupController.php
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\SessionInterface;;
use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface;
View install_ubf.sh
#!/usr/bin/sh
echo "UniBnFonts (https://github.com/r-not/unibnfonts) installer by Anan5a(https://github.com/Anan5a"
echo "Run this script as root. not sudo!"
dir='/usr/share/fonts/ubf'
file='ubf_zzzffff000x111.tar.gz'
mkdir -p $dir
echo "Downloading font..."
wget -q -O $HOME/$file https://github.com/r-not/unibnfonts/archive/master.tar.gz
echo "Extracting/Installing font"
tar -xzf $HOME/$file -C $dir
View ffmpeg.functions.php
<?php
function add_process($command, $max=1)
{
$running_list = get_process($command);
$running_count = count($running_list);
if ($running_count >= $max) {
return false;
View ffmpeg.functions.pho
<?php
function add_process($command, $max=1)
{
$running_list = get_process($command);
$running_count = count($running_list);
if ($running_count >= $max) {
return false;
You can’t perform that action at this time.