Skip to content

Instantly share code, notes, and snippets.

View henriqueutsch's full-sized avatar

Henrique Utsch henriqueutsch

View GitHub Profile
#!/bin/bash
# Instalação em uma única linha
# wget https://gist.githubusercontent.com/henriqueutsch/b8dd875037442ca74f81/raw/5e9bdbc149b4 0d2db8ed4d1d000f0f2a4583d547/install_raspcam.sh;chmod +x install_raspcam.sh;./install_raspcam.sh
# https://miguelmota.com/blog/raspberry-pi-camera-board-video-streaming/
# Enable Camera
# sudo raspi-config
# habilitar cam
#http://hacktracking.blogspot.com.br/2013/02/yowsup-cli-send-whatsapp-messages-from.html
#https://github.com/tgalal/yowsup
#https://github.com/tgalal/yowsup/wiki/%5BLegacy%5D-yowsup-cli
#http://penselinux.com.br/yowsup-whatsapp-em-terminal-linux/
#https://github.com/tgalal/yowsup/issues/183
#https://github.com/tgalal/yowsup/issues/500
#http://stackoverflow.com/questions/9780717/bash-pip-command-not-found
#http://stackoverflow.com/questions/2941995/python-ignore-incorrect-padding-error-when-base64-decoding
#https://sunilsharma3639.wordpress.com/2014/09/30/send-push-notifications-from-rails-server-to-ios-devices/
#http://www.vivaolinux.com.br/dica/Usando-o-Yowsup-para-enviar-comandos-ao-Shell
#pi@raspberrypi ~ $ octoprint
# * Running on http://0.0.0.0:5000/
# https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian
# octoprint --host=127.0.0.1 --port=8080
sudo apt-get install python-serial python-wxgtk2.8 python-pyglet
cd
git clone https://github.com/beardface/Printrun
# http://docs.octoprint.org/en/master/events/index.html
# https://github.com/foosel/OctoPrint/wiki/Configuration#events
server:
host: 192.168.0.100
port: 8080
events:
enabled: True
subscriptions:
- event: Startup
@henriqueutsch
henriqueutsch / gist:3f95db1a7e17f0d46325
Last active August 29, 2015 14:19
HMDX JAM + RASPBERRY PI BLUETOOTH
brew install pv
sudo su
diskutil unmountDisk /dev/disk2
dd bs=8 if=Documents/Raspberry/2015-02-16-raspbian-wheezy.img | pv -pptrbe -i 2 -s 3276800000 | dd of=/dev/disk2
sudo apt-get update
sudo apt-get install -y bluetooth bluez blueman xauth alsa-utils bluez-alsa bluez-utils bluez-tools mplayer
sudo apt-get install -y bluez pulseaudio-module-bluetooth python-gobject python-gobject-2
sudo nano /etc/bluetooth/audio.conf
Disable=Media
Salva isso como mp3
http://www.receita.fazenda.gov.br/pessoajuridica/cnpj/cnpjreva/captcha/gerarSom.asp
Converte pra flac
http://stackoverflow.com/questions/18266785/sox-for-converting-flac-file-to-320-bit-mp3
sox input.mp3 output.flac
Envia para google speech e recebe um json
require 'json'
require 'net/http'
require 'json'
my_hash = JSON.parse('{"hello": "goodbye"}')
puts my_hash.class => Hash
puts my_hash["hello"] => goodbye
Processo de auditoria automatizada com fiscalização pública
O processo atual de auditoria não é sulficiente detalhada para uma auditoria profunda dos gastos dos parlamentares deixando uma abertura para a corrupção e desvio de dinheiro.
Acre 8
Alagoas 9
Amazonas 8
Amapá 8
@henriqueutsch
henriqueutsch / Links
Created July 8, 2015 12:55
Links QG7
https://itunes.apple.com/br/app/baldurs-gate-enhanced-edition/id515114051?mt=8