openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
package main | |
import ( | |
"fmt" | |
"http" | |
"io/ioutil" | |
"os" | |
) | |
func main() { |
Grab ffmpeg from https://www.ffmpeg.org/download.html
It's a command line tool which means you will have to type things with your keyboard instead of clicking on buttons.
The most trivial operation would be converting gifs:
ffmpeg -i your_gif.gif -c:v libvpx -crf 12 -b:v 500K output.webm
-crf
values can go from 4 to 63. Lower values mean better quality.-b:v
is the maximum allowed bitrate. Higher means better quality.#!/bin/bash | |
ADB="/home/mrenouf/bin/adb" | |
# We need root on the host to mess with networking | |
if [[ $(whoami) != "root" ]]; then | |
echo "You must be root to run this script!" | |
exit 1 | |
fi; |
#!/bin/sh | |
# I put all my dev stuff in here | |
export DEV_PREFIX=$HOME/Dev/ | |
# Don't forget to adjust this to your NDK path | |
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/ | |
export CROSS_COMPILE=arm-linux-androideabi |
#1: Download do kernel | |
#Faça o download do site oficial do kernel | |
wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.31.tar.bz2 | |
#2: Instalar pacotes necessários para compilação: | |
#Se precisar de mais um pacote instale. Mas acredito que sejam apenas esses dai mesmo. | |
pacman -S gcc make libtools patch | |
#3: Descompactar o kernel | |
#A pasta preferencial é a /usr/src mas vc pode descompactar em outra pasta qualquer |
import serial | |
import time | |
from messaging.sms import SmsDeliver | |
ser=serial.Serial('/dev/ttyACM0', baudrate=9600, timeout=.1, rtscts=0) | |
def sendCommand(com): | |
ser.write(com+"\r\n") | |
time.sleep(2) | |
ret = [] |
# install gpsd gps-clients and python | |
import gps | |
gpsd = gps.gps() | |
gpsd.stream(gps.WATCH_ENABLE|gps.WATCH_NEWSTYLE) | |
for report in gpsd: | |
if report['class'] == 'TPV': | |
print report['lat'] |