This file contains 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/php | |
<?php | |
function ascii_hex ($char) { | |
$ret = ''; | |
for ($i=0;$i<strlen($char);++$i) | |
$ret .= dechex(ord($char{$i})); | |
if (strlen($ret) < 2) return '0'.$ret; | |
return $ret; | |
} |
This file contains 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
bundle edit_line that_foo_line_be_gone | |
{ | |
replace_patterns: | |
"^foo is a foo line$" | |
comment => "that foo line be gone! that bar line be there!", | |
replace_with => exchange_foo_line_with_bar_line; | |
} | |
body replace_with exchange_foo_line_with_bar_line | |
{ |
This file contains 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
[root@horst ~]# while (true); do hidd --search ; sleep 1; done | |
Searching ... | |
Connecting to device B8:F6:B1:0C:CE:1C | |
Can't get device information: Connection reset by peer | |
Searching ... | |
Connecting to device B8:F6:B1:0C:CE:1C | |
Can't get device information: Transport endpoint is not connected | |
Searching ... | |
Connecting to device B8:F6:B1:0C:CE:1C | |
Can't get device information: Transport endpoint is not connected |
This file contains 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
classes: | |
"MinAny" or => { | |
"Min00", "Min01", "Min03", "Min04", "Min05", "Min06", "Min07", "Min08", "Min09", | |
"Min10", "Min11", "Min13", "Min14", "Min15", "Min16", "Min17", "Min18", "Min19", | |
"Min20", "Min21", "Min23", "Min24", "Min25", "Min26", "Min27", "Min28", "Min29", | |
"Min30", "Min31", "Min33", "Min34", "Min35", "Min36", "Min37", "Min38", "Min39", | |
"Min40", "Min41", "Min43", "Min44", "Min45", "Min46", "Min47", "Min48", "Min49", | |
"Min50", "Min51", "Min53", "Min54", "Min55", "Min56", "Min57", "Min58", "Min59", | |
}; |
This file contains 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
-module(mylist). | |
-export([tail_reverse/1, tail_reverse/2, reverse/1]). | |
reverse([]) -> []; | |
reverse([H|T]) -> reverse(T)++[H]. | |
tail_reverse(L) -> tail_reverse(L, []). | |
tail_reverse([], Accumulator) -> Accumulator; | |
tail_reverse([H|T], Accumulator) -> tail_reverse(T, [H|Accumulator]). |
This file contains 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
var https = require('https'); | |
var tuples = new Array( | |
Math.floor(Math.random(254)*100), | |
Math.floor(Math.random(254)*100), | |
Math.floor(Math.random(254)*100), | |
Math.floor(Math.random(254)*100)); | |
var ip = tuples.join('.'); | |
var MAX_URLS = 30; |
This file contains 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
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: To do so, start the server, then issue the following commands: | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: /usr/bin/mysqladmin -u root password 'new-password' | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: /usr/bin/mysqladmin -u root -h ip-10-246-121-195 password 'new-password' | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: Alternatively you can run: | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: /usr/bin/mysql_secure_installation | |
Dec 20 17:59:32 ip-10-246-121-195 mysqld_safe[8839]: |
This file contains 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
--- percona-server-5.5-5.5.28-rel29.2/debian/percona-server-server-5.5.postinst 2012-12-07 20:06:23.000000000 +0000 | |
+++ patched_percona-server-server-5.5.postinst 2012-12-20 18:31:03.731742992 +0000 | |
@@ -206,13 +206,13 @@ | |
" Create_user_priv='Y', Event_priv='Y', Trigger_priv='Y' "`; | |
fix_privs=`/bin/echo -e \ | |
"USE mysql;\n" \ | |
- "ALTER TABLE user ADD column Create_view_priv enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N'; " \ | |
- "ALTER TABLE user ADD column Show_view_priv enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N'; " \ | |
- "ALTER TABLE user ADD column Create_routine_priv enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N'; " \ | |
- "ALTER TABLE user ADD column Alter_routine_priv enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N'; " \ |
This file contains 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
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child 19532 higher than MAX_FD in cf_popen, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child higher than MAX_FD in cf_pclose, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child 19533 higher than MAX_FD in cf_popen, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child higher than MAX_FD in cf_pclose, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child 19535 higher than MAX_FD in cf_popen, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child higher than MAX_FD in cf_pclose, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child 19537 higher than MAX_FD in cf_popen, check for defunct children | |
Dec 21 15:41:10 ip-10-48-18-8 cf3[19531]: File descriptor 137 of child higher t |
This file contains 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
body common control | |
{ | |
bundlesequence => { | |
"foo", | |
}; | |
inputs => { | |
"libraries/cfengine_stdlib.cf", | |
}; | |
} |
OlderNewer