ps -ef | grep httpd | wc -l
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
% concat, binary | |
B1= <<1,2>>. | |
B2= <<3,4>>. | |
B3= <<B1/binary, B2/binary>>. | |
% <<1,2,3,4>> |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.provider.Settings.Secure; | |
import android.telephony.TelephonyManager; | |
import java.io.UnsupportedEncodingException; | |
import java.util.UUID; | |
public class DeviceUuidFactory { |
package com.benli.app.utils; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.provider.Settings.Secure; | |
import android.telephony.TelephonyManager; | |
import android.util.Log; | |
import java.io.UnsupportedEncodingException; | |
import java.util.UUID; |
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb) | |
################### | |
## Configuration ## | |
################### | |
FFMPEG_CPU_COUNT=$(nproc) | |
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype" | |
FFMPEG_HOME=/usr/local/src/ffmpeg |
#!/bin/sh | |
# Based on instructions found here: http://wiki.razuna.com/display/ecp/FFMpeg+Installation+on+CentOS+and+RedHat#FFMpegInstallationonCentOSandRedHat-InstallX264 | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
#!/bin/bash | |
#This script will compile and install a static ffmpeg build with support for nvenc un ubuntu. | |
#See the prefix path and compile options if edits are needed to suit your needs. | |
#install required things from apt | |
installLibs(){ | |
echo "Installing prerequisites" | |
sudo apt-get update | |
sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \ |
function getGenericInterceptor(className, func, parameters) { | |
args = [] | |
for (i = 0; i < parameters.length; i++) { | |
args.push('arg_' + i) | |
} | |
var script = "result = this.__FUNCNAME__(__SEPARATED_ARG_NAMES__);\nlogmessage = '__CLASSNAME__.__FUNCNAME__(' + __SEPARATED_ARG_NAMES__ + ') => ' + result;\nconsole.log(logmessage);\nreturn result;" | |
script = script.replace(/__FUNCNAME__/g, func); | |
script = script.replace(/__SEPARATED_ARG_NAMES__/g, args.join(', ')); | |
script = script.replace(/__CLASSNAME__/g, className); |
FROM ubuntu:20.04 | |
RUN apt-get -qq update && apt-get -qq upgrade | |
ENV NGINX_VERSION nginx-1.19.3 | |
ENV FFMPEG_VERSION snapshot | |
ENV NGINX_RTMP_MODULE_VERSION 1.2.1 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ENV TZ=America/New_York |