Skip to content

Instantly share code, notes, and snippets.

[chris@freebsd64 libusdt]$ ./test_usdt a b i i i i i i i i
enabled
unable to disable provider: failed to unload DOF: Bad address
# elsewhere:
[chris@freebsd64 ~]$ sudo dtrace -Zn 'testlibusdt*:::{ trace(arg0); trace(arg1); trace(arg2); trace(arg3); trace(arg4); trace(arg5); trace(arg6); trace(arg7); }'
dtrace: description 'testlibusdt*:::' matched 0 probes
dtrace: buffer size lowered to 1m
~/Projects/libusdt ➔ ./test_usdt32 foo bar i i
enabled
~/Projects/libusdt ➔ sudo dtrace -Zn 'testlibusdt*:::{ trace(arg0); trace(arg1) }'
dtrace: description 'testlibusdt*:::' matched 0 probes
CPU ID FUNCTION:NAME
1 4915 foo:bar 1 2
1 4916 foo:bar 1 2
~/ruby-usdt ➔ git submodule update --init
Submodule 'ext/libusdt' (https://github.com/chrisa/libusdt) registered for path 'ext/libusdt'
Cloning into 'ext/libusdt'...
remote: Counting objects: 347, done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 347 (delta 231), reused 347 (delta 231)
Receiving objects: 100% (347/347), 76.46 KiB, done.
Resolving deltas: 100% (231/231), done.
Submodule path 'ext/libusdt': checked out 'ac9e412ff58b8b0208608ef5c764fbb3bae755ee'
~/ruby-usdt ➔ cd ext/libusdt/
15:38 <chris> To develop a plugin, you need Maven 3
15:38 <chris> FFFFUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
15:39 <chris> ➔ mvn --version
15:39 <chris> Apache Maven 3.0.3 (r1075438; 2011-02-28 17:31:09+0000)
15:39 <chris> !!!
WIN!
<fx: maven downloads the internet>
postgres=# insert into foo(b) values('foo1 ');
INSERT 0 1
postgres=# select * from foo where b = 'foo1';
(No rows)
postgres=# select * from foo where b = 'foo1 ';
-[ RECORD 1 ]-
a |
b | foo1
postgres=# create table foo (a char(10), b varchar(10));
CREATE TABLE
postgres=# insert into foo(a) values ('foo ');
INSERT 0 1
postgres=# select * from foo where a = 'foo';
a | b
------------+---
foo |
(1 row)
~ ➔ traceroute -n colon.colondot.net
traceroute to colon.colondot.net (85.119.84.19), 64 hops max, 52 byte packets
1 192.168.1.254 93.740 ms 105.424 ms 98.846 ms
2 93.97.160.1 2308.619 ms 499.684 ms *
3 * 10.1.3.178 4870.751 ms *
4 * 10.1.4.249 592.123 ms *
5 195.66.236.34 308.096 ms 942.357 ms 22.270 ms
6 85.119.80.17 19.062 ms 18.418 ms 18.344 ms
7 85.119.84.19 18.980 ms !Z 19.312 ms !Z 20.692 ms !Z
ruby-1.9.2-p320 :014 > data = [[0.0, 1374073120], [0.0, 1374073130], [0.0, 1374073140], [0.0, 1374073150], [0.0, 1374073160], [0.0, 1374073170], [0.0, 1374073180], [0.0, 1374073190], [0.0, 1374073200], [0.0, 1374073210], [0.0, 1374073220], [0.0, 1374073230], [0.0, 1374073240], [0.0, 1374073250], [0.0, 1374073260], [0.0, 1374073270], [0.0, 1374073280], [0.0, 1374073290], [0.0, 1374073300], [0.0, 1374073310], [0.0, 1374073320], [0.0, 1374073330], [0.0, 1374073340], [0.0, 1374073350], [0.0, 1374073360], [0.0, 1374073370], [0.0, 1374073380], [0.0, 1374073390], [0.0, 1374073400], [nil, 1374073410], [100.0, 1374073420]]
=> [[0.0, 1374073120], [0.0, 1374073130], [0.0, 1374073140], [0.0, 1374073150], [0.0, 1374073160], [0.0, 1374073170], [0.0, 1374073180], [0.0, 1374073190], [0.0, 1374073200], [0.0, 1374073210], [0.0, 1374073220], [0.0, 1374073230], [0.0, 1374073240], [0.0, 1374073250], [0.0, 1374073260], [0.0, 1374073270], [0.0, 1374073280], [0.0, 1374073290], [0.0, 1374073300], [0.0, 1374073310], [0.0, 1374073320]
Recursive dependency detected:
Catalyst (have: N/A; want: 5.90040)
=> JJNAPIORK/Catalyst-Runtime-5.90040.tar.gz
=> Catalyst::Plugin::Params::Nested (have: N/A; requires: 0)
=> BOBTFISH/Catalyst-Plugin-Params-Nested-0.05.tar.gz
=> Catalyst (have: N/A; requires: 5.49).
Cannot resolve.
BOBTFISH/Catalyst-Plugin-Params-Nested-0.05.tar.gz
[depend] -- NOT OK
~/Projects/venda/chef/upstream-cookbooks/x509 ➔ bundle exec rspec spec/**/*_spec.rb
............FFFF
Failures:
1) x509_certificate install new cert when certbag shows up should update certificate
Failure/Error: .with(:content, 'test-cert-text')
expected that the recipe would include Resource[file[/tmp/cert] @name="/tmp/cert"] with action expected to be [:create] but it is [:nothing], and content expected to be test-cert-text but it is
# ./spec/providers/x509_certificate_spec.rb:216:in `block (3 levels) in <top (required)>'