Skip to content

Instantly share code, notes, and snippets.

View yeyus's full-sized avatar
🍝

Jesús F. Trujillo yeyus

🍝
View GitHub Profile
@yeyus
yeyus / ffmpeg-rtmpdump-install.md
Last active August 29, 2015 14:22
ffmpeg with rtmpdump support
  1. Requirements
libfdk-aac
libx265-dev
libx264-dev
yasm
build-essential 
checkinstall 
git 
libfaac-dev 
@yeyus
yeyus / toHash.js
Created July 24, 2015 22:59
Checksum algorithm for PRO-652/PRO-197 scanners
toHash = function(d) { return (parseInt("FFFF", 16) - d.split(" ").map(function(e) { return parseInt(e, 16); }).reduce(function(p,n) {return p + n})).toString(16); }
@yeyus
yeyus / freqEncoding_pro652.txt
Created July 28, 2015 21:12
frequency encoding for PRO-652/197
1299.95000 - B0 BC 1F 3C 6F 22 EE A6
2079920 10939938 2289318
1299.97500 - D8 BC 1F 3C 6F 22 EE CE
2079960 +40 10940110 2289358 +40
1299.98750 - EC BC 1F 3C 6F 22 EE FA
2079980 +40 16444962 2289402 +44
1299.99375 - F6 BC 1F 3C 6F 22 EE E0
2079990 +10 -------- 2289376 -26
1300.00000 - 00 BD 1F 3C 6F 22 EF 16
2080000
@yeyus
yeyus / test.go
Created February 23, 2017 05:33
Talker Alias 7bit vs 8bit encoding/decoding
package main
import "fmt"
func main() {
data := []byte{
0x01,
0xFF,
0xFF,
0xFF,
@yeyus
yeyus / carnaval.service
Created February 24, 2017 21:46
systemd service to record a program everyday
[Unit]
Description=Grabador carnaval sur
[Service]
WorkingDirectory=/home/yeyus/carnaval2017
ExecStart=/usr/bin/streamripper "http://195.55.74.212/rtva/radioandalucia.mp3?GKID=32fafc36e05911e6a89200163ea2c744" -R 0 -l 46800 -D "carnavalsur_%d"
Type=oneshot
[Install]
WantedBy=multi-user.target

21014-DB REV B

U1

TMS320

TMS320 VC5509AZHH 4A-89A03KW

@yeyus
yeyus / monztor-usb-monitor-setup.md
Last active May 19, 2018 22:05
iMo Monztor 10" USB monitor

First we need to tell the monitor to expose the screen interface and remove the fake cd-rom interface.

$ sudo usb_modeswitch -v 0x17e9 -p 0x0288 -u 1
Look for default devices ...
   product ID matched
Get the current device configuration ...
 Found devices in default mode (1)
Access device 006 on bus 001
Current configuration number is 2
@yeyus
yeyus / resistors.txt
Created August 2, 2019 01:27
nVidia cards
TESLA K10 - 10DE:118F
GRID K2 - 10DE:11BF
----
RESISTORS
device name R1 R2 R3 R4
GT 640 25k none 10k none
GTX 650 25k none 35k none
@yeyus
yeyus / dmesg.txt
Created November 18, 2019 01:55
Hitachi SMR Drive
[168781.454969] sd 0:0:0:0: [sda] 19532873728 512-byte logical blocks: (10.0 TB/9.10 TiB)
[168781.454972] sd 0:0:0:0: [sda] 4096-byte physical blocks
[168781.454973] sd 0:0:0:0: [sda] 37256 zones of 524288 logical blocks
[168781.455421] sda: detected capacity change from 0 to 10000831348736
#1-------------------------------------------------------
[168853.000483] sd 0:0:0:0: [sda] REPORT ZONES lba 0 failed with 0/8
[168853.000538] sda: failed to revalidate zones
[168853.032055] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[168853.032058] sd 0:0:0:0: [sda] 4096-byte physical blocks
[168853.032137] sda: detected capacity change from 10000831348736 to 0