Skip to content

Instantly share code, notes, and snippets.

View itdaniher's full-sized avatar

itdaniher itdaniher

  • mosslandia
View GitHub Profile
@hatchetation
hatchetation / build_pixelpulse2.md
Last active August 29, 2015 14:18
Building pixelpulse2 for OS X

Building Pixelpulse2

OS X

Prerequisites

  1. Install Qt 5.4 https://www.qt.io/download-open-source/
  2. Install libusb: brew install --build-from-source libusb
  3. Get qt in your path: export PATH="${HOME}/Qt/5.4/clang_64/bin:${PATH}"
@kevinmehall
kevinmehall / Dockerfile
Created November 3, 2014 19:20
connect cross-compile in docker
FROM fedora:20
RUN yum install -y git cmake make libtool \
mingw32 mingw32-binutils mingw32-runtime mingw32-gcc-c++ \
mingw32-boost mingw32-boost-static.noarch \
&& yum clean all
@mishari
mishari / continental-usa-states-bb
Created July 3, 2014 14:41
Bounding box of states in USA from OSM's Nominatim
[{"place_id":"97994878","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"161950","boundingbox":["30.1375217437744","35.0080299377441","-88.4731369018555","-84.8882446289062"],"lat":"33.2588817","lon":"-86.8295337","display_name":"Alabama, United States of America","place_rank":"8","category":"boundary","type":"administrative","importance":0.83507032450272,"icon":"http:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png"}]
[{"place_id":"97421560","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"162018","boundingbox":["31.3321762084961","37.0042610168457","-114.818359375","-109.045196533203"],"lat":"34.395342","lon":"-111.7632755","display_name":"Arizona, United States of America","place_rank":"8","category":"boundary","type":"administrative","importance":0.83922181098242,"icon":"http:\/\/nominatim.openst
/// Phantom type for step 1.
pub enum Step1 {}
/// Phantom type for step 2.
pub enum Step2 {}
/// Contains data we set step by step.
pub struct Data<'a> {
/// 'a' is set in the first step.
a: Option<int>,
@Slater-Victoroff
Slater-Victoroff / gist:6681032
Last active December 23, 2015 19:09
Simple Flask Server for parsing LabView XML and doing some scant logic.
import flask
import sys
from flask import Flask, request
import random
from lxml import etree
import xmltodict
import numpy as np
import operator
@sarg
sarg / README.md
Last active May 25, 2024 17:04
rk30xx loader image unpacker

Obtaining RK3066 boot ROM.

Here are my steps.

At first, I took a look to RK30xxLoader(L)_V1.18.bin. This file appears in update.img for my device. So, I unpacked update.img using rk29Kitchen.

strings on that file returns nothing interesting, so I assumed the file is crypted

@endolith
endolith / chirpz.py
Last active January 7, 2024 11:29
Chirp Z-transforms in Python (by Paul Kienzle, Nadav Horesh, Stefan van der Walt)
"""Chirp z-Transform.
As described in
Rabiner, L.R., R.W. Schafer and C.M. Rader.
The Chirp z-Transform Algorithm.
IEEE Transactions on Audio and Electroacoustics, AU-17(2):86--92, 1969
"""
import numpy as np
@endolith
endolith / LICENSE.txt
Last active January 14, 2024 07:37
Arduino hardware true random number generator
MIT License
Copyright (c) 2012 endolith
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@dbasden
dbasden / rtlsdr-fc0012.diff
Created March 23, 2012 15:41
fc0012 for rtl-sdr (updated for saner reg values, GPIO handling and gain control)
diff --git a/src/Makefile b/src/Makefile
index 4f66cf6..5cc3414 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,9 +1,9 @@
LDFLAGS=`pkg-config --libs libusb-1.0`
-CFLAGS=-Wall -O2 `pkg-config --cflags libusb-1.0`
+CFLAGS=-Wall -DDEBUG -O2 `pkg-config --cflags libusb-1.0`
all: rtl-sdr
@kevinmehall
kevinmehall / gist:1338529
Created November 4, 2011 02:30
Quadrature Encoder with the Xmega event system
#include "usb.h"
// PORT C
#define QDEC1 (1<<2)
#define QDEC2 (1<<3)
int main(void){
sei();