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
| A $ ip r | |
| default via 10.0.3.1 dev eth0 | |
| 10.0.3.0/24 dev eth0 proto kernel scope link src 10.0.3.118 | |
| 10.62.0.0/24 dev eth1 proto kernel scope link src 10.62.0.10 | |
| 169.254.0.0/16 dev eth0 scope link metric 1013 | |
| B $ ip r | |
| default via 10.0.3.1 dev eth0 | |
| 10.0.3.0/24 dev eth0 proto kernel scope link src 10.0.3.112 | |
| 169.254.0.0/16 dev eth0 scope link metric 1008 |
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
| 0: from all lookup local | |
| 32766: from all lookup main | |
| 32767: from all lookup default |
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
| $ diff /tmp/sysctl-* | |
| 24c24 | |
| < net.ipv4.conf..rp_filter = 1 | |
| --- | |
| > net.ipv4.conf..rp_filter = 0 | |
| 44c44 | |
| < net.ipv6.conf..accept_dad = 0 | |
| --- | |
| > net.ipv6.conf..accept_dad = 1 |
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
| bridge name bridge id STP enabled interfaces | |
| pactbr1 8000.3e04027bdac7 no veth1pl10020 | |
| veth1pl12905 | |
| veth1pl3761 | |
| veth1pl5487 |
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 | |
| # Generic script for running ruby scripts as daemons using | |
| # jsvc and a java class to control the daemon. | |
| # | |
| # Contains common parameters and start/stop | |
| # Things you'll need to set on a per script/daemon basis: | |
| # SCRIPT_NAME | |
| # | |
| # Things you can set: |
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
| package com.msp; | |
| import java.math.BigDecimal; | |
| import java.sql.ResultSet; | |
| import java.sql.ResultSetMetaData; | |
| import java.sql.SQLException; | |
| import java.sql.Time; | |
| import java.sql.Timestamp; | |
| import org.jruby.Ruby; |
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
| <?xml version="1.0"?><tsung loglevel="info"> | |
| <clients> | |
| <client host="localhost" use_controller_vm="true" maxusers="10000"/> | |
| </clients> | |
| <servers> | |
| <server port="80" type="tcp" host="staging.playlouder.com"/> | |
| </servers> | |
| <load> | |
| <arrivalphase phase="1" unit="minute" duration="3"> | |
| <users unit="second" arrivalrate="200"/> |
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
| profile = 'lc' | |
| bitrates = [96, 128, 160] | |
| files = Dir['*.wav'] | |
| prog = '~/lib/nero/linux/neroAacEnc' | |
| bitrate_control = ['br', 'cbr'] | |
| files.each do |fname| | |
| bitrates.each do |rate| | |
| bitrate_control.each do |bc| |
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
| include java | |
| def benchmark(warmups, loops, &block) | |
| (0...warmups).map do | |
| start_time = java.lang.System.currentTimeMillis | |
| (0...loops).each { yield } | |
| time = java.lang.System.currentTimeMillis - start_time | |
| $stdout.write("#{time},") | |
| time | |
| end |
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 JRubyDaemon implements Daemon { | |
| private Ruby runtime; | |
| private Thread thread; | |
| private RubyModule appModule; | |
| private boolean debug; | |
| private RubyModule daemon; | |
| public void init(DaemonContext arguments) throws Exception { |
NewerOlder