echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
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
<sly data-sly-use.component="template.html" | |
data-sly-call="${component.template @ properties=properties}" /> |
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
package com.example.csv; | |
import com.opencsv.bean.ConverterDate; | |
import com.opencsv.exceptions.CsvDataTypeMismatchException; | |
import java.lang.reflect.InvocationTargetException; | |
import java.time.LocalDate; | |
import java.time.LocalTime; | |
import java.time.format.DateTimeFormatter; | |
import java.time.temporal.Temporal; | |
import java.util.Locale; |
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
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); |
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
@Component( | |
service = Servlet.class, | |
property = { | |
"sling.servlet.extensions=html", | |
"sling.servlet.selectors=foo", | |
"sling.servlet.paths=/bin/foo", | |
"sling.servlet.paths=/bin/bar", | |
"sling.servlet.methods=get", | |
"sling.servlet.resourceTypes=nt:file", | |
"sling.servlet.resourceTypes=project/components/component" |
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
package com.mk.core.services; | |
import com.adobe.granite.workflow.PayloadMap; | |
import com.day.cq.replication.ReplicationAction; | |
import com.day.cq.replication.ReplicationActionType; | |
import com.day.cq.wcm.api.NameConstants; | |
import com.day.cq.workflow.WorkflowException; | |
import com.day.cq.workflow.WorkflowService; | |
import com.day.cq.workflow.WorkflowSession; | |
import com.day.cq.workflow.exec.WorkflowData; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
NewerOlder