This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char buff[3]; | |
char recv = 0; | |
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
if(Serial.available() > 0) { | |
buff[recv] = Serial.read(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
_____ _ _ _____ ____ | |
| ___(_) ___ ___| |_ __ _| ___/ ___| | |
| |_ | |/ _ \/ __| __/ _` | |_ \___ \ | |
| _| | | __/\__ \ || (_| | _| ___) | | |
|_| |_|\___||___/\__\__,_|_| |____/ | |
Fiesta 2 Raw Extract | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
function StripComments(data) { | |
return data.replace(/(?:\/\*(?:[\s\S]*?)\*\/)|(?:([\s])+\/\/(?:.*)$)/gm, '$1'); | |
} | |
function CleanLines(data) { | |
if(data instanceof Array) { | |
for(var n in data) | |
data[n] = data[n].trim(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import serial | |
import struct | |
ser = serial.Serial("/dev/ttyUSB0", 115200, timeout=2) | |
msgid = { | |
0x10 : "GPS", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in folder/* | |
do | |
if grep -q "Delivered-To: email@nobody" "$i" | |
then | |
mv "$i" destfolder/ | |
else | |
echo "NOK" # Doesnt have Delivery To | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#encoding:UTF-8 | |
import os, smtplib, shutil, syslog, subprocess, cgi, commands, re, MySQLdb | |
from datetime import date, timedelta | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from htmlentitydefs import codepoint2name | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(seq 0 $1) | |
do | |
wget http://cdn.photosynth.net/ps2/$2/packet/l1/img`printf %04d ${i%.*}`.jpg | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
_____ ____ _ | |
| ___| __/ ___|| | ___ _ | |
| |_ | '__\___ \| |/ / | | | | |
| _|| | ___) | <| |_| | | |
|_| |_| |____/|_|\_\\__, | | |
|___/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
from urllib import urlencode | |
import urllib2 | |
from time import sleep | |
import os | |
from subprocess import Popen, PIPE | |
import Image | |
from cStringIO import StringIO | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
_______ ______ | |
|_ _\ \ / / ___| | |
| | \ \ / /\___ \ | |
| | \ V / ___) | | |
|_| \_/ |____/ | |
Teske Virtual System |