Skip to content

Instantly share code, notes, and snippets.

View jfussion's full-sized avatar

Joseph Edsel Bonilla jfussion

View GitHub Profile
# OS
Ubunutu 18.04 Server
# Install ffmpeg 4.x for RTMPS support.
# http://ubuntuhandbook.org/index.php/2018/10/install-ffmpeg-4-0-2-ubuntu-18-0416-04/
add-apt-repository ppa:jonathonf/ffmpeg-4
apt-get update
apt-get install ffmpeg
# ffmpeg command
$ zgrep SIGKILL php-fpm-error.log* | sort -r | head -n 200 | awk 'match($0, /:\[.*[[:digit:]]\]/) {print substr( $0, RSTART+2, RLENGTH-3 )}' | awk '{gsub(/-/, "/"); gsub(" ", ":"); print}' | uniq | xargs -I date zgrep 'date' nginx-access.log* | grep "HTTP\/1.1\"\ 502" | awk '{print $6, $7}' | awk -F \? '{print $1}' | sort | uniq -c | sort -frn
4 "GET /marketing/think-make-happen-wisconsin/wp-content/themes/Avada/assets/js/modernizr.js
4 "GET /marketing/think-make-happen-wisconsin/wp-content/themes/Avada/assets/js/jquery.fusion_maps.js
4 "GET /export/market-intelligence/posts/how-to-navigate-the-chinese-and-south-korean-marketplaces/
3 "POST /wp-cron.php
3 "GET /marketing/think-make-happen-wisconsin/wp-content/themes/Avada/assets/js/jquery.requestAnimationFrame.js
3 "GET /marketing/think-make-happen-wisconsin/wp-content/themes/Avada/assets/js/jquery.placeholder.js
3 "GET /marketing/think-make-happen-wisconsin/wp-content/themes/Avada/assets/js/jquery.easing.js
3 "
@jfussion
jfussion / hosts
Created August 11, 2017 19:00 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost