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
| from arduino_proxy.proxy import ArduinoProxy | |
| proxy = ArduinoProxy('/dev/ttyACM0') | |
| print "Memoria libre:", proxy.getFreeMemory() |
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
| <hostdev mode='subsystem' type='usb' managed='no'> | |
| <source> | |
| <address bus='2' device='4'/> | |
| </source> | |
| </hostdev> |
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
| <hostdev mode='subsystem' type='usb' managed='no'> | |
| <source> | |
| <vendor id='0x0930'/> | |
| <product id='0x6545'/> | |
| </source> | |
| </hostdev> |
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
| import java.io.IOException; | |
| import java.net.ServerSocket; | |
| import sun.dc.pr.PathDasher; | |
| public class JvmCrasher { | |
| public static void log(String msg) { | |
| try { | |
| Runtime.getRuntime().exec(new String[] { "/usr/bin/logger", "-t", "TestCaidaJvm", msg }).waitFor(); |
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
| import eventlet | |
| def closed_callback(): | |
| print "called back" | |
| def forward(source, dest, cb = lambda: None): | |
| while True: | |
| d = source.recv(8096) | |
| if d == '': | |
| cb() |
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
| public class ThreadStress { | |
| public static class SomeRunnable implements Runnable { | |
| public long num = 0; | |
| long time; | |
| public SomeRunnable(int time) { | |
| this.time = time; | |
| } |
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
| #!/bin/sh | |
| # | |
| # munin-node Start de Munin node | |
| # | |
| # chkconfig: 2345 55 25 | |
| # description: Starts and stops the Munin node daemon | |
| # | |
| source /opt/munin/munin-node-settings | |
| # +-> export PERL5LIB=/opt/perl-munin/lib/perl5/5.8.8:/opt/perl-munin/lib/perl5/site_perl/5.8.8:/opt/munin/usr/lib/perl5/site_perl/5.8.8 |
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
| primary_hostname = some.name.example.com | |
| acl_smtp_rcpt = acl_check_rcpt | |
| acl_smtp_data = acl_check_data | |
| never_users = root | |
| # host_lookup = * | |
| # rfc1413_hosts = * |
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/python | |
| import os | |
| import re | |
| import sys | |
| from subprocess import Popen, PIPE | |
| def main(): | |
| output = Popen(["squidclient", "mgr:info"], stdout=PIPE).communicate()[0] |
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
| # | |
| # Primero le decimos a Python (el lenguaje de programacion) que queremos usar 'SeqIO', | |
| # que es un modulo de Biopython. | |
| # | |
| from Bio import SeqIO | |
| # | |
| # El modulo 'SeqIO' posee muchas funciones, una de ellas es convert(), usada para | |
| # convertir un archivo de un formato a otro. La funcion devuelve la cantidad de registros |