public interface AbstractEnum {
String toString();
@JsonValue
String getValue();
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
import com.mongodb.client.MongoClient; | |
import com.mongodb.client.MongoClients; | |
import de.flapdoodle.embed.mongo.MongodExecutable; | |
import de.flapdoodle.embed.mongo.MongodProcess; | |
import de.flapdoodle.embed.mongo.MongodStarter; | |
import de.flapdoodle.embed.mongo.config.MongoCmdOptions; | |
import de.flapdoodle.embed.mongo.config.MongodConfig; | |
import de.flapdoodle.embed.mongo.config.Net; | |
import de.flapdoodle.embed.mongo.config.Storage; | |
import de.flapdoodle.embed.mongo.distribution.Version; |
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
@SuppressWarnings({"unchecked", "unused"}) | |
public class JsonParser { | |
private List<String> pathList; | |
public JsonParser(String json) throws JSONException { | |
this.pathList = new ArrayList<>(); | |
setJsonPaths(json); | |
} |
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
## Add Data Only Nested Array Without Update All Data | |
``` | |
mongoTemplate.updateFirst( | |
Query.query(Criteria.where("machineId").is(machineId).and("sensorData.key").is(key)), | |
new Update().push("sensorData.$.sensorValues", sensorValue), | |
MachineData.class); | |
``` |
Here are some usage examples to download an entire site:
convert links for local viewing:
wget --mirror --convert-links --page-requisites --no-parent -P /path/to/download/to https://example-domain.com
without converting:
--> wget --mirror --page-requisites --no-parent -P /path/to/download/to https://example-domain.com
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
"$(dirname "$(readlink -f "$0")")" |
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
if ps -o cmd= -p $(ps -o ppid= -p $$) | grep -q gnome; then | |
nohup terminator &> /dev/null & | |
sleep 0.1s | |
exit | |
fi |
This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.
Documentation links
- FFMpeg, Muxers, Encoders, Protocols
- FFMPEG multiple outputs
- VLC Docu, Advanced Use