find /var/log/radius/radacct -type f -name "reply*" -mtime +60 -exec rm -rf {} \;
-mtime N — more than N days without being edited
-exec CMD {} \; — comands, {} means the files which be found.
find /var/log/radius/radacct -type f -name "reply*" -mtime +60 -exec rm -rf {} \;
-mtime N — more than N days without being edited
-exec CMD {} \; — comands, {} means the files which be found.
public static void main(String[] args) {
try {
String abc = "0043006F0077006D0061002E002E002E90808ACB";
System.out.print(getString(abc));
} catch (Exception e) {
System.out.println("err");
}
}
public static String getString(String strValue) {
StringBuilder str = new StringBuilder();
String temp;
for (int i = 0; i < strValue.length(); i = i + 4) {
temp = strValue.substring(i, i + 4);
str.append((char) Integer.parseInt( temp, 16 ));
}
return str.toString();
}
put "TableName", "rowkey", "cf:fieldname", [0].pack("N")
N => byte array
put "TableName", "rowkey", "cf:fieldname", [0].pack("Q>")
Q => 64-bit unsigned, native endian
=> change endian to big endian
Defaults:webuser requirettyI think the correct process of the information system is more important than beautiful code.
Ref. Removing outline on image map area
HTML
<img class="map" src="..." usemap="..." hidefocus="true" />
CSS
img.map, map area{
outline: none;
}
echo "<script>console.log( 'Debug Objects: " . $data . "' );</script>";
SELECT * FROM table WHERE FIND_IN_SET(ID, '2,5,6,7,8,9,11,21,33,45')
git diff --name-only branchname
If we have these rowkey list data.
To get rowkey which contain “abc”
scan 'TableName', FILTER => "RowFilter(=, 'substring:abc')"
We will get these.
But if we want only get “xx_abc”
scan 'TableName', FILTER => "RowFilter(=, 'substring:abc')", FILTER => "RowFilter(!=, 'substring:abc_')"