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 / 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 / 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 / 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 / arduino-hex-burn.sh
Created April 29, 2015 04:33
burn .hex to arduino board through serial using vanilla bootloader
#/bin/sh
# burn myhex.hex file
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P /dev/ttyUSB0 -b57600 -D flash:w:myhex.hex:iç
# verify contents of flash against myhex.hex
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P /dev/ttyUSB0 -b57600 -D flash:v:myhex.hex:i
@yeyus
yeyus / XMLDefault.cnf.xml
Created March 2, 2015 06:58
Cisco 7960 XMLDefault.cnf.xml
<Default>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
<mgcpPorts>
<listen>2427</listen>
<keepAlive>2428</keepAlive>
@yeyus
yeyus / gist:7695050d129c8ffc3427
Created January 26, 2015 07:42
GIF recording linux
xdotool getmouselocation --shell (get mouse location)
byzanz-record --x=1101 --width=610 --y=44 --height=950 InstagramViewer.gif --duration=20 --delay=0
@yeyus
yeyus / wpa-cli-linux.txt
Created November 1, 2014 22:43
wpa through console in linux
wpa_passphrase myrouter mypassphrase > wpa.conf
iwlist scan
wpa_supplicant -Dwext -ieth1 -c/root/wpa.conf
wpa_cli status
  1. Clone https://github.com/gmacario/easy-build
  2. cd easy-build/build-yocto
  3. ./build.sh
  4. ./run.sh
  5. -- Now you should be inside the build-yocto docker container --
  6. cd /work
  7. source /opt/yocto/poky/oe-init-build-env <>
  8. bitbake -k core-image-minimal