Skip to content

Instantly share code, notes, and snippets.

View juzam's full-sized avatar

Giovanni Angoli juzam

  • Italia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am juzam on github.
  • I am gangoli (https://keybase.io/gangoli) on keybase.
  • I have a public key whose fingerprint is 8103 AC90 94B8 BDEA BAC3 298D 0255 DFFC 6D1F 1B40

To claim this, I am signing this object:

@juzam
juzam / Mqtt-Launcher Blinkstick.md
Last active August 29, 2015 14:13
BlinkStick Square mqtt-launcher https://github.com/jpmens/mqtt-launcher config on Windows (cygwin, requires python, paho-mqtt and blinkstick debug command line util: https://www.blinkstick.com/system/releases/windows/blinkstick-command-line.zip)

Simple mqtt-launcher setup.

install python and paho-mqtt (pip install paho-mqtt) in your cygwin environment. dowload the blinkstick debug client and unzip it in your desired directory (/usr/local/bin in the example)

the topic structure in the example is this:

blinkstick/serialn/pixelindex

where serialn is the serial number of your blinkstick device.

@juzam
juzam / iss_stream
Last active August 7, 2017 22:47
Stream Ustream.tv ISS live video feed locally without using web player, re-encode the stream as audio only (using livestreamer and vlc)
# prerequisites: livestreamer http://docs.livestreamer.io/ with ustream plugin (python-librtmp required)
# video lan client: http://www.videolan.org/
# grab the video stream and expose the stream locally as is on port 8082
livestreamer http://www.ustream.tv/channel/9408562 worst --player-continuous-http --player-external-http --player-external-http-port 8082
# grab the locally streamed video feed and transcode it audio only (mp3,16k/s,44100)
vlc -vvvv http://livestreamerip:8082 --loop --no-sout-video --sout-keep --sout '#gather:transcode{vcodec=none,acodec=mp3,ab=16,channels=1,samplerate=44100}:http{mux=raw,dst=:8083}'
@juzam
juzam / rPi3-ap-setup.sh
Last active April 18, 2016 10:20 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo "Must be root"
exit
fi
if [[ $# -ne 1 ]]; then
echo "You need to set a password!"
echo "Usage:"
@juzam
juzam / apt-main.yml
Last active November 21, 2016 17:00
Visual Studio code for Linux (apt) Ansible install tasks, suitable to be put in a role.
- name: Install bintray GPG key
apt_key: keyserver=keyserver.ubuntu.com id=379CE192D401AB61 state=present
- name: Install headmelted GPG key
apt_key: url="https://bintray.com/user/downloadSubjectPublicKey?username=headmelted"
- name: Install headmelted repository
apt_repository: repo="deb https://dl.bintray.com/headmelted/deb-code-oss wheezy main" state=present
- name: Install Visual Studio Code
- name: Install Hypriot/Schatzkiste GPG key
apt_key: url="https://packagecloud.io/Hypriot/Schatzkiste/gpgkey"
- name: Install Hypriot/Schatzkiste repository
apt_repository: repo="deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main" state=present
- name: Install arm-machine
apt: name={{ item }} state=installed update-cache=yes
with_items:
- docker-machine
@juzam
juzam / Dockerfile.golang:1.7.4-wheezy-armv6l
Created January 1, 2017 15:24
Golang 1.7.4 ARM v6l Dockerfile
FROM armhf/buildpack-deps:wheezy-scm
# gcc for cgo
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
@juzam
juzam / wifi_positioning_system.py
Created January 8, 2017 11:56 — forked from initbrain/NOTICE.md
Python Wi-Fi Positioning System, use Google Maps Geolocation API, tested on GNU/Linux (require iw) and Mac OS X (require airport), special thanks go to contributors!
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Julien Deudon (initbrain) - 20/03/2012
# modified to run on OS X by James Armitage - 25/06/2012
# modified to process in python by Dan Gleebits - 26/06/2012
# modified to parse the xml output of airport by Vincent Ohprecio - 01/10/2012
# modified to work with the new Google geolocation API by Giovanni Angoli (juzam) - 03/01/2017
# merging all modifications by Julien Deudon (initbrain) - 06/01/2017
from commands import getoutput, getstatusoutput
@juzam
juzam / Dockerfile
Last active August 31, 2017 15:37
ot-recorder .deb build Dockerfiles/scripts
FROM debian:stretch
RUN apt-get update && apt-get install -y build-essential libcurl4-openssl-dev libmosquitto-dev liblua5.2-dev libsodium-dev libconfig-dev
# fpm
RUN apt-get install -y ruby ruby-dev rubygems gcc make
RUN gem install --no-ri --no-rdoc fpm
RUN apt-get install -y vim git && git clone https://github.com/owntracks/recorder.git
@juzam
juzam / fakenews.js
Last active December 1, 2017 09:58
GreaseMonkey/Tampermonkey script to substitute every occurrence of "fake news" with a more accurate description.
// ==UserScript==
// @name Grande Minchiata
// @namespace http://juzam.net/
// @version 0.1
// @description fake news = minchiate
// @author [email protected]
// @match http://*/*
// @include *
// @grant none
// ==/UserScript==