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
#require "bundler/capistrano" | |
require "rvm/capistrano" | |
# General | |
set :application, "test_capistrano" | |
set :domain, "test_capistrano.mxt.com.br" | |
set :user, "mxt" | |
set :runner, "mxt" | |
set :use_sudo, false | |
set :deploy_to, "/home/mxt/rails/#{application}" |
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 | |
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; |
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
set mailserver localhost | |
set daemon 120 with start delay 240 | |
set logfile syslog facility log_daemon | |
set httpd port 2812 | |
allow localhost | |
set alert [email protected] | |
check host internet with address 80.254.111.254 | |
if failed icmp type echo count 5 with timeout 30 seconds |
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
# UBI mount | |
# source: | |
# http://mytechrants.wordpress.com/2010/01/20/ubiubifs-on-nandsim/ | |
# http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFS | |
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15 | |
cat /proc/mtd | |
ubiformat /dev/mtd0 -f system.ubi | |
modprobe ubi mtd=0 |
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
UBI issues | |
modprobe mtd | |
modprobe mtdblock | |
modprobe mtdram total_size=200000 erase_size=128 | |
modprobe ubi | |
ubiformat /dev/mtd0 | |
ubiattach /dev/ubi_ctrl -m 0 | |
ubimkvol /dev/ubi0 -N VOLUME -s 192MiB |
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
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
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
Simply run: | |
python -m SimpleHTTPServer |
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
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 = [] |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) |
NewerOlder