Skip to content

Instantly share code, notes, and snippets.

View yuvadm's full-sized avatar

Yuval Adam yuvadm

View GitHub Profile
@yuvadm
yuvadm / README.md
Last active February 14, 2024 13:30
Somagic SMI-2021CBE Firmware
@yuvadm
yuvadm / keybase.md
Created March 24, 2014 18:31
Keybase proof

Keybase proof

I hereby claim:

  • I am yuvadm on github.
  • I am yuvadm (https://keybase.io/yuvadm) on keybase.
  • I have a public key whose fingerprint is FA7D AB5C D5EF F11A 7333 01CA CC21 15C1 2D99 D2F0

To claim this, I am signing this object:

@yuvadm
yuvadm / dsl604+.md
Last active October 18, 2015 09:38
D-Link DSL-604+ Serial

Serial params

  • Baud rate: 9600
  • Parity: 8N1

Header pin JP1

1----2----3----[]----5
TX   GND  Vcc  GND   RX
@yuvadm
yuvadm / youtube_history.py
Last active April 12, 2022 21:38
YouTube History Scraping Script
'''
YouTube History Scraping Script by Yuval Adam
Requires Selenium and PhantomJS
A major FUCK YOU to Youtube/Google for not having a proper API for this
<^>(-_-)<^>
'''
from selenium import webdriver
# Notes for installing on Samsung Series 9
# UEFI boot: LVM on LUKS
#
# See the full blog post:
# http://jasonwryan.com/blog/2013/01/25/uefi/
# check you are booted in uefi
modprobe efivars
ls /sys/firmware/efi/vars
/usr/bin/env perl -e use XML::Parser
/usr/bin/env perl -e use XML::Parser
==> Downloading http://freedesktop.org/software/pulseaudio/releases/pulseaudio-2.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/pulseaudio-2.1.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/pulseaudio-2.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pulseaudio/2.1 --disable-jack --disable-hal --disable-bluez --disable-avahi --with-udev-rules-dir=/usr/local/Cellar/pulseaudio/2.1/lib/udev/rules.d --with-mac-sysroot= --with-mac-version-min=10.8 --disable-dbus
./configure --prefix=/usr/local/Cellar/pulseaudio/2.1 --disable-jack --disable-hal --disable-bluez --disable-avahi --with-udev-rules-dir=/usr/local/Cellar/pulseaudio/2.1/lib/udev/rules.d --with-mac-sysroot= --with-mac-version-min=10.8 --disable-dbus
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
@yuvadm
yuvadm / geo.py
Created February 20, 2013 18:40
Google Maps API geocoding with Hebrew support
import requests
def bulk_gecode(addresses):
res = {}
url = 'http://maps.googleapis.com/maps/api/geocode/json'
for address in addresses:
# print 'fetching ' + address
res = requests.get(url, params={
'address': address,
'sensor': 'false'
@yuvadm
yuvadm / rtl_fm_demod.sh
Last active January 19, 2025 20:51
rtl_fm demodulation guide
# rtl_fm demodulation guide
# based on excerpts from: http://kmkeen.com/rtl-demod-guide/index.html
# requires rtl-sdr (rtl_fm bundled), sox for audio, multimon for pager decoding
# broadcast FM radio
rtl_fm -W -f 89.1M | play -r 32k -t raw -e signed-integer -b 16 -c 1 -V1 -
# police scanner
rtl_fm -N -E -f 154.42M -f 154.75M -f 154.82M -f 154.89M -s 12k -o 4 -g 49.2 -l 70 | play -r 12k ...
@yuvadm
yuvadm / heatmap.coffee
Created February 2, 2013 15:10
Raw code that builds a mapbox.js layer utilizing heatmap.js
# some raw code that builds a mapbox.js layer utilizing heatmap.js
class D3Layer
constructor: (@map, points) ->
@enabled = true
@svg = d3.select(@map.parent)
.append('svg')
.attr('class', 'd3layer')
@heat = d3.select(@map.parent)
.append('div')