Skip to content

Instantly share code, notes, and snippets.

@allanjos
allanjos / fedora-39-nvidia-issues.md
Last active November 16, 2023 05:11
Fedora 39 NVidia issues

Fedora 39 NVidia issues

Try 1: Rebuild NVidia kernel module with akmods.

sudo akmods --rebuild --kernels $(uname -r)

Reboot.

Try 2: Remove current NVidia kernel module and rebuild it.

Anomaly Detection Anomaly Detection for Dummies https://towardsdatascience.com/anomaly-detection-for-dummies-15f148e559c1

Introduction to Anomaly Detection in R Learn statistical tests for identifying outliers and how to use sophisticated anomaly scoring algorithms. https://www.datacamp.com/courses/introduction-to-anomaly-detection-in-r

Anomaly detection Using Generative Adversarial Networks(GAN) https://medium.com/analytics-vidhya/anomaly-detection-using-generative-adversarial-networks-gan-ca433f2ac287

@allanjos
allanjos / streaming-mobile-web.md
Last active October 5, 2022 03:30
Streaming: Mobile / Web

Streaming: Mobile / Web

FFmpeg Web

Android Video Streaming https://stackoverflow.com/questions/2511045/streaming-to-the-android-mediaplayer

@allanjos
allanjos / media-recorder.js
Created August 3, 2022 13:06
HTML 5 - MediaRecorder
let recordButton = null;
let stopButton = null;
let audioPlayer = null;
let playButton = null;
let chunks = [];
async function init() {
console.log('init()');
// Initialize UI controls
@allanjos
allanjos / MainActivity.java
Created August 3, 2022 13:04
Android OGG file decoding and playback
package br.com.olivum.player.activity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.media.AudioFormat;
import android.media.AudioManager;
import android.media.AudioTrack;
import android.media.MediaCodec;
import android.media.MediaExtractor;
@allanjos
allanjos / ruby-language-tips.md
Created January 2, 2022 23:28
Ruby Language Tips

Ruby Language Tips

Setup

RVM

List available packages:

rvm list known
@allanjos
allanjos / playing-digital-tv-channel-in-linux.md
Last active December 26, 2021 00:39
Playing Digital TV channel in Linux

Playing Digital TV channel in Linux:

ISDB-T Digital TV

It's needed to have a Digital TV receiver plugged in. It's used a MyGica Mac TV S880i device with the steps presented:

dmesg output:

[ 1103.828820] mc: Linux media interface: v0.10

[ 1103.834059] smsusb:smsusb_probe: board id=18, interface number 0

@allanjos
allanjos / ffmpeg-video_effects.md
Last active February 4, 2021 16:08
FFMmpeg - Video effects.md

Black/white:

ffmpeg -i VID_20210131_202207090.mp4 -vf format=gray VID_20210131_202207090-gray.mp4

Blur:

ffmpeg -i VID_20210131_202207090-gray.mp4 -filter_complex "[0:v]boxblur=luma_radius=10:chroma_radius=10:luma_power=1[blurred]" -map "[blurred]" VID_20210131_202207090-gray-blur.mp4

@allanjos
allanjos / AOSP.md
Last active February 21, 2023 18:21
AOSP

AOSP

Fedora

Install dependencies:

dnf install \
  @development-tools \
  android-tools \