du -k | sort -nr | more
Or human readable output:
du -sh
http://snippets.aktagon.com/snippets/86-how-to-list-and-sort-directories-by-size-in-linux-unix
du -k | sort -nr | more
du -sh
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:dialogMode="floating"
jcr:primaryType="cq:EditConfig" cq:disableTargeting="{Boolean}true"/>
cygcheck -p strings.exe
Property | Getter | Description |
current | getCurrent() | The item (from the collection) for the current round of iteration |
index | getIndex() | The zero-based index for the current round of iteration |
count | getCount() | The one-based count for the current round of iteration |
first | isFirst() | Flag indicating whether the current round is the first pass through the iteration |
last | isLast() | Flag indicating whether the current round is the last pass through the iteration |
begin | getBegin() | The value of the begin attribute |
end | getEnd() | The value of the end attribute |
step | getStep() | The value of the step attribute |
Your event 10pm Oct 14 repeats every 60 days
billion = 1000000000 sec_365 = 31536000 # (60 * 60 * 24 *365) sec_366 = 31622400 # leap years sec_day = 86400 # 1day = 86400seconds sec_hour = 3600 # 1hour = 3600seconds sec_min = 60 years = 0 days = 0 hours = 0 minutes = 0 seconds = 0 def billionConvertToTime(secs): global years global days global hours global minutes global seconds if secs < sec_min: seconds = secs return years, days, hours, minutes, seconds elif secs > sec_365: if years % 4 == 0: # leap years secs = secs - sec_366 years += 1 billionConvertToTime(secs) else: secs = secs - sec_365 years += 1 billionConvertToTime(secs) elif secs > sec_day: secs = secs - sec_day days += 1 billionConvertToTime(secs) elif secs > sec_hour: secs = secs - sec_hour hours += 1 billionConvertToTime(secs) elif secs > sec_min: secs = secs - sec_min minutes += 1 billionConvertToTime(secs) billionConvertToTime(billion) print ("One billion seconds equals to %s years, %s days, %s hours, %s minutes and %s seconds" % (years, days, hours, minutes, seconds))Output:
-Dorg.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=60000
[rel="prev"] { /* styling for "previous links" */ } [rel="next"] { /* styling for "next" links */ }
a[href^="https:"] { /* style properties exclusive to secure pages */ } [href$=".zip"]:before, [href$=".gz"]:before { content: '\E004'; /* unicode for the zip folder icon */ }
/* BAD - The CSS for the class approach */ .new-window-icon:after { content: '[new window icon]'; } .twitter-icon:before { content: '[twitter icon]'; } /* GOOD - The CSS for the attribute selector approach */ [target="_blank"]:after { content: '[new window icon]'; } [href*="twitter.com/"]:before { content: '[twitter icon]'; }
a { color: blue; text-decoration: underline; } a[rel="external"]:after { content: '[icon for external links]'; }
[user_dir]/.m2/repository/[dependency]/[dependency_version]/...
mvn installto force download the dependencies
// Mistake var str = "David is an Arsenal fan, which means David is great"; str.replace("David", "Darren"); // "Darren is an Arsenal fan, which means David is great" // Desired str.replace(/David/g, "Darren"); // "Darren is an Arsenal fan, which means Darren is great"
str.replace(/david/gi, "Darren") // "Darren will always be an Arsenal fan, which means Darren will always be great"
var nodesArr = Array.prototype.slice.call(document.querySelectorAll("div")); // "true" array of DIVs var argsArr = Array.prototype.slice.call(arguments); // changes arguments to "true" array
var clone = myArray.slice(0); // naive clone
var clone = myArray.slice(0); // naive clone
[ { name: "Robin Van PurseStrings", age: 30 }, { name: "Theo Walcott", age: 24 }, { name: "Bacary Sagna", age: 28 } ].sort(function(obj1, obj2) { // Ascending: first age less than the previous return obj1.age - obj2.age; }); // Returns: // [ // { name: "Theo Walcott", age: 24 }, // { name: "Bacary Sagna", age: 28 }, // { name: "Robin Van PurseStrings", age: 30 } // ]
var myArray = yourArray = [1, 2, 3]; // :( myArray = []; // "yourArray" is still [1, 2, 3] // The right way, keeping reference myArray.length = 0; // "yourArray" and "myArray" both []
var mergeTo = [4,5,6], var mergeFrom = [7,8,9]; Array.prototype.push.apply(mergeTo, mergeFrom); mergeTo; // is: [4, 5, 6, 7, 8, 9]
if(navigator.geolocation) { // Do some stuff }
if("geolocation" in navigator) { // Do some stuff }
$("a.trigger").on("click", function(e) { e.stop(); // Do more stuff });
$("a.trigger").on("click", function(e) { e.preventDefault(); // Do more stuff });
{ "extensions": [ "vm", "tpl" ] }4) Do "Ctrl + Shift + P"
mount -o remount,rw /
GroupLocalService groupService = GroupLocalServiceUtil.getService(); groupService.Note that the "." at the end is requried
Input Type | Description | HTML Markup |
---|---|---|
date | A control for entering the date. | <input type="date"> |
datetime | Date and time using UTC date and time format | <input type="datetime"> |
datetime-local | Date and time according to your local time | <input type="datetime-local"> |
month | Month and year | <input type="month"> |
time | The time of day | <input type="time"> |
week | Allows you to pick the week and year. | <input type="week"> |
color | Allows you to enter asimple color value (which is in hexadecimal color notation) | <input type="color""> |
email | Validates the input using the standard email format | <input type="email"> |
tel | Gives you the ability to validate telephone numbers format against a pattern | <input type="tel"> |
search | Searches a data set (like a <datalist> HTML element) | <input type="search"> |
range | A slider control for picking a number in between two numbers | <input type="range"> |
number | Accepts numbers only | <input type="number"> |
url | Accepts URLs only | <input type="url"> |
Name: <android_sdk>
Value: <C:\Program Files\Android\android-sdk> or wherever you installed it
Name: <JAVA_HOME >
Value: < C:\Program Files\Java\jdk1.7.0_07> or wherever you installed the JDK.
;%JAVA_HOME%\bin;%android_sdk%\tools;%android_sdk%platform-tools
echo 1 > /data/local/lge_adb.conf