Skip to content

Instantly share code, notes, and snippets.

View vittee's full-sized avatar

Wittawas Nakkasem vittee

  • LINE BK
  • Bangkok, Thailand
  • 01:36 (UTC +07:00)
View GitHub Profile
@vittee
vittee / liquidsoap.tmLanguage
Created June 28, 2017 16:10
Quick and dirty VS Code Syntax Highlighter for Liquidsoap scripting language.
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "liquidsoap",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
},
@vittee
vittee / centos7-no-enforce.sh
Created January 15, 2018 15:54
CentOS7 Disable SELinux + Increase Max File
setenforce 0
sed -i -E s/SELINUX=.+/SELINUX=disabled/g /etc/sysconfig/selinux
sysctl -w fs.file-max=500000
echo fs.file-max=500000 >> /etc/sysctl.conf
@vittee
vittee / install.sh
Last active January 15, 2018 16:08
CentOS7 PHP7.0 Nginx Apache
mkdir -p downloads
cd downloads
yum install epel-release wget net-tools -y
yum install vim -y
yum install httpd httpd-devel httpd-tools -y
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
yum install yum-utils -y
yum-config-manager --enable remi-php70
@vittee
vittee / curl-install
Last active January 15, 2018 16:09
Install
curl -- https://gist.githubusercontent.com/vittee/058b1142237fe21a3009b767e429e9bf/raw/7b935c848024c1143940d7a299c0389830c51be7/install.sh | sh
@vittee
vittee / @FFMpeg
Last active December 8, 2022 18:45 — forked from keiya/README.md
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)
FFMpeg to Icecast2 Streaming Samples
====================================
Examples usage of various codecs with FFMpeg.
## Samples
- flac.sh : An Icecast Source Client
- for Windows (Cygwin is required)
- and macOS (`brew install ffmpeg`)
- another_examples.sh : Samples
- FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3