Skip to content

Instantly share code, notes, and snippets.

View lyarinet's full-sized avatar

Asif Agaria lyarinet

View GitHub Profile
@lyarinet
lyarinet / css-media-queries-cheat-sheet.css
Created June 18, 2016 10:23 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@lyarinet
lyarinet / how_to_use_screen.md
Created October 4, 2016 06:39 — forked from drewlesueur/how_to_use_screen.md
How to use linux screen
@lyarinet
lyarinet / latest-ffmpeg-centos6.sh
Created October 8, 2016 13:43 — forked from mustafaturan/latest-ffmpeg-centos6.sh
Installs latest ffmpeg on Centos 6
# source: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
@lyarinet
lyarinet / convert.sh
Created June 29, 2018 12:13 — forked from ypwu1/convert.sh
Bash Script for converting video files by using ffmpeg
#!/bin/bash
#brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid
#$1 directory $2 input type $3 output type
#ffmpeg -i input.flv -vcodec libvpx -acodec libvorbis output.webm
find "$1" -type f -name "*.$2" | while read -r file; do
filename=$(basename "$file" ".$2")
dirname=$(dirname "$file")
ffmpeg -i "$dirname/$filename.$2" "$dirname/$filename.$3"
done
@lyarinet
lyarinet / README.md
Created June 29, 2018 13:33 — forked from mrbar42/README.md
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
@lyarinet
lyarinet / tetris_attack_netplay.md
Created September 7, 2018 04:08 — forked from nderscore/tetris_attack_netplay.md
Guide for configuring Retroarch with Snes9x Core for Tetris Attack netplay.

Tetris Attack

Tetris Attack Netplay Guide

Guide for configuring Retroarch with Snes9x Core for Tetris Attack netplay.

Last updated: 2017.08.13 by _nderscore

@lyarinet
lyarinet / gist:d2a13d029ca9b5a18fe0d289d3c95d6d
Created September 8, 2018 12:55 — forked from oscarrenalias/gist:5504943
Retroarch.cfg configuration file for Retroarch in OpenELEC. Modifications to the default one: joystick settings, video and audio.
## Skeleton config file for RetroArch
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ...
# This will be overridden by explicit command line options.
savefile_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/
# Save all save states (*.state) to this directory.
# This will be overridden by explicit command line options.
savestate_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/
@lyarinet
lyarinet / tvh.sh
Created November 30, 2018 07:10 — forked from DaVukovic/tvh.sh
Installs tvheadend on Ubuntu machines
#!/bin/sh
# This script installs TVHeadend on your Ubuntu 16.04.x machine
#
# Exit-codes:
# exit 1 = no root rights
# exit 2 = not using Ubuntu 16.04
# exit 3 = TVHeadend already installed (exit in install-function)
# exit 4 = TVHeadend is not installed (exit in deinstall-function)
# exit 5 = TVHeadend repo already exists
@lyarinet
lyarinet / script.sh
Created May 23, 2019 09:22 — forked from phpcodertop/script.sh
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