This file contains hidden or 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
<?php | |
$DEBUGGING = True; | |
$TRACECOUNT = 0; | |
if($DEBUGGING) | |
{ | |
error_reporting(E_ALL); | |
ini_set('display_errors', True); | |
) | |
This file contains hidden or 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
GUM>loadb a2000000 | |
*In HyperTerminal: Transfer->Send File->u-boot.bin with Kermit protocol* | |
GUM>protect off all | |
GUM>era 1:0-1 | |
GUM>cp.b a2000000 0 ${filesize} | |
GUM>reset |
This file contains hidden or 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
GUM>loady a2000000 | |
*In HyperTerminal: Transfer->Send File->rootfs_arm_nofpu.jffs2 with Ymodem protocol* | |
GUM>pro on 1:0-1 && jera all && cp.b a2000000 40000 ${filesize} |
This file contains hidden or 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
GUM>loady a2000000 | |
*In HyperTerminal: Transfer->Send File->uImage with Ymodem protocol* | |
GUM>katinstall 100000 | |
GUM>katload 100000 | |
GUM>bootm |
This file contains hidden or 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
Error for wireless request "Set <option name>" (<related option code>) : | |
SET failed on device <wireless device> ; Operation not permitted. |
This file contains hidden or 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
# ifconfig eth0 up | |
# iwconfig eth0 essid any | |
# ifup eth0 |
This file contains hidden or 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 socksipy | |
socksipy.setdefaultproxy(socksipy.PROXY_TYPE_SOCKS5, 'localhost', 9050) | |
# Route a telnet connection through the SOCKS proxy | |
import telnetlib | |
socksipy.wrapmodule(telnetlib) | |
tn = telnetlib.Telnet('achaea.com') | |
print tn.read_very_eager() |
This file contains hidden or 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 | |
from random import choice, randint | |
def random_chromosome(): | |
return [randint(0, 1) for i in range(32)] | |
def calc_fitness(chromo): | |
return sum(chromo) |
This file contains hidden or 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 | |
from urllib2 import urlopen | |
from socket import socket | |
from sys import argv | |
def tcp_test(server_info): | |
cpos = server_info.find(':') | |
try: | |
sock = socket() |
This file contains hidden or 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
$ chmod +x service-monitor.py |