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 > print date('Y-m-d H:i:s', time()); | |
| Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in php shell code on line 1 | |
| 2013-04-03 19:22:23 |
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
| #!/opt/chef-server/embedded/lib/erlang/bin/escript | |
| -define(SELF, 'me@127.0.0.1'). | |
| -define(ERCHEF, 'erchef@127.0.0.1'). | |
| -define(ERCHEF_COOKIE, 'erchef'). | |
| -define(DEFAULT_KEY_PATH, '/etc/chef-server'). | |
| %% File 00600 mode permission specified the Erlang way. See | |
| %% file:write_file_info for details. | |
| -define(OWNER_RW, 8#00400 + 8#00200). |
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 --git i/lib/Net/MCollective/Client.pm w/lib/Net/MCollective/Client.pm | |
| index a749e54..db04f30 100644 | |
| --- i/lib/Net/MCollective/Client.pm | |
| +++ w/lib/Net/MCollective/Client.pm | |
| @@ -117,7 +117,11 @@ sub discover { | |
| ); | |
| } | |
| - my @identities = map { $_->senderid } grep { $_->status } @replies; | |
| + my @identities = map { $_->senderid } |
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 20 write:entry | |
| libc.so.1`__write+0x15 | |
| libperl.so`PerlIOUnix_write+0x46 | |
| libperl.so`Perl_PerlIO_write+0x47 | |
| libperl.so`PerlIOBuf_flush+0x50 | |
| libperl.so`Perl_PerlIO_flush+0x45 | |
| libperl.so`PerlIOBuf_write+0x11d | |
| libperl.so`Perl_PerlIO_write+0x47 | |
| libperl.so`Perl_do_print+0xa7 | |
| libperl.so`Perl_pp_print+0x195 |
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
| - data-source="/render?from=-3hours&format=json<%= @instance.resources.webs.map {|w| '&target=gmetad.*.' + w.hostname.tr('.', '_') + '.load_one' } | |
| + data-source="<%= render(:partial => 'webserver_load', :locals => { 'format' => 'json' }).html_safe %>"> |
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
| chris@ubuntu32:~/linux$ sudo dtrace -n io:::start'{ @agg[execname] = count(); }' | |
| dtrace: description 'io:::start' matched 2 probes | |
| ^C | |
| gnome-settings- 2 | |
| basename 3 | |
| clear_console 3 | |
| dircolors 3 | |
| dirname 3 | |
| expr 3 |
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
| [chris@1c89eadf-3091-4306-ac1b-a75c3050ca29 ~/node-dtrace-provider]$ sudo /usr/sbin/dtrace -Z -s json.d -c 'node jsonargs.js' | |
| dtrace: script 'json.d' matched 0 probes | |
| dtrace: pid 9006 has exited | |
| CPU ID FUNCTION:NAME | |
| 0 62731 json1:json1 json: {"foo":42,"bar":"forty-two"} | |
| 0 62731 json1:json1 int: 42 string: forty-two |
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
| /* | |
| * DTrace Tunable Variables | |
| * | |
| * The following variables may be tuned by adding a line to /etc/system that | |
| * includes both the name of the DTrace module ("dtrace") and the name of the | |
| * variable. For example: | |
| * | |
| * set dtrace:dtrace_destructive_disallow = 1 | |
| * | |
| * In general, the only variables that one should be tuning this way are those |
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
| converge_by ("run #{command} to enable #{@new_resource}") do | |
| run_command( | |
| :command => command | |
| ) | |
| Chef::Log.info("#{@new_resource} enabled") | |
| 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
| diff --git i/usdt.c w/usdt.c | |
| index 7a25621..078f437 100644 | |
| --- i/usdt.c | |
| +++ w/usdt.c | |
| @@ -148,7 +148,7 @@ usdt_provider_enable(usdt_provider_t *provider) | |
| return (-1); | |
| } | |
| - if ((usdt_strtab_add(&strtab, provider->name)) < 0) { | |
| + if ((usdt_strtab_add(&strtab, provider->name)) == 0) { |